Fjölnir (also Fjolnir or Fjoelnir) is a
programming language
A programming language is a system of notation for writing computer programs. Most programming languages are text-based formal languages, but they may also be graphical. They are a kind of computer language.
The description of a programming ...
developed by
professor
Professor (commonly abbreviated as Prof.) is an Academy, academic rank at university, universities and other post-secondary education and research institutions in most countries. Literally, ''professor'' derives from Latin as a "person who pr ...
Snorri Agnarsson of
computer science
Computer science is the study of computation, automation, and information. Computer science spans theoretical disciplines (such as algorithms, theory of computation, information theory, and automation) to Applied science, practical discipli ...
at
Háskóli Íslands
The University of Iceland ( is, Háskóli Íslands ) is a public research university in Reykjavík, Iceland and the country's oldest and largest institution of higher education. Founded in 1911, it has grown steadily from a small civil servants' s ...
(University of Iceland) that was mostly used in the 1980s. The
source files usually have the
extension
Extension, extend or extended may refer to:
Mathematics
Logic or set theory
* Axiom of extensionality
* Extensible cardinal
* Extension (model theory)
* Extension (predicate logic), the set of tuples of values that satisfy the predicate
* E ...
fjo
or
sma
.
Features
Fjölnir is based on the concept of representing programs as trees, and packages by substitutions on trees using
algebraic operators.
For example, in the
Hello World example below,
"GRUNNUR"
is a package, the block of code between braces is a package, and
*
is an operator that substitutes names in one package with elements from another. In this case,
skrifastreng
(which writes a string to the
standard output) is imported from
"GRUNNUR"
.
Code examples
;; Hello world in Fjölnir
"hello" < main
*
"GRUNNUR"
;
External links
Fjölnir package (DOS, works in older versions of Windows)PDF about Fjölnir (In Icelandic)
The original source for both Fjölnir 1 and Fjölnir 2; coded in Fjölnir itself.
References
Non-English-based programming languages
Icelandic language
{{compu-lang-stub