Jump to content
Wikipedia The Free Encyclopedia

Fjölnir (programming language)

From Wikipedia, the free encyclopedia
Programming language
This article relies on a single source . Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.
Find sources:"Fjölnir"programming languagenews · newspapers · books · scholar · JSTOR
(April 2024) (Learn how and when to remove this message)
Fjölnir
Paradigm procedural, object-oriented
Designedby Snorri Agnarsson
Firstappeared1980s
Typing discipline strong, dynamic
Scope lexical
OS MS-DOS
Filename extensions .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

[edit ]

Fjölnir is based on the concept of representing programs as trees, and packages by substitutions on trees using algebraic operators.[1] 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

[edit ]
;; Hello world in Fjölnir
"hello" < main
{
 main ->
 stef(;)
 stofn
 skrifastreng(;"Hello, world!"),
 stofnlok
}
*
"GRUNNUR"
;
[edit ]


References

[edit ]
  1. Agnarsson, Snorri; Krishnamoorthy, M. S. (1985). "Towards a theory of packages" . ACM SIGPLAN Notices. 20 (7): 117–130. doi:10.1145/17919.806833.


Stub icon

This programming-language-related article is a stub. You can help Wikipedia by adding missing information.

AltStyle によって変換されたページ (->オリジナル) /