Fjölnir (programming language)
{{Short description|Programming language}}
{{one source |date=April 2024}}
{{infobox programming language
| name = Fjölnir
| paradigm = procedural, object-oriented
| typing = strong, dynamic
| scope = lexical
| year = 1980s
| designer = Snorri Agnarsson
| operating_system = MS-DOS
| file_ext = .fjo, .fjv, .sma, .ein
}}
Fjölnir (also Fjolnir or Fjoelnir) is a programming language developed by professor Snorri Agnarsson of computer science at Háskóli Íslands (University of Iceland) that was mostly used in the 1980s. The source files usually have the extension 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.{{Cite journal|url=http://dl.acm.org/citation.cfm?doid=800225.806833|doi = 10.1145/17919.806833|title = Towards a theory of packages|year = 1985|last1 = Agnarsson|first1 = Snorri|last2 = Krishnamoorthy|first2 = M. S.|journal = ACM SIGPLAN Notices|volume = 20|issue = 7|pages = 117–130}} 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
{
main ->
stef(;)
stofn
skrifastreng(;"Hello, world!"),
stofnlok
}
"GRUNNUR"
;
External links
- [http://www.hi.is/~snorri/087133-03/fjolnir.zip Fjölnir package (DOS, works in older versions of Windows)]{{Webarchive|url=https://web.archive.org/web/20221209085312/https://notendur.hi.is/snorri/087133-03/fjolnir.zip | date=2022-12-09 }}
- [http://www.hi.is/~snorri/087133-03/fjolnir.pdf PDF about Fjölnir (In Icelandic)] {{Webarchive|url=https://web.archive.org/web/20041209213633/http://www.hi.is/~snorri/087133-03/fjolnir.pdf |date=2004-12-09 }}
- [http://www.99-bottles-of-beer.net/language-fjoelnir-259.html 99 Bottles of Beer in Fjölnir]
- [http://www.hi.is/~snorri/fjolnirdev The original source for both Fjölnir 1 and Fjölnir 2; coded in Fjölnir itself.]{{Dead link|date=December 2023}}
References
{{DEFAULTSORT:Fjolnir (Programming Language)}}
Category:Non-English-based programming languages
{{compu-lang-stub}}