This articlerelies largely or entirely on asingle source. Relevant discussion may be found on thetalk page. Please helpimprove this article byintroducing citations to additional sources. Find sources: "Fjölnir" programming language – news ·newspapers ·books ·scholar ·JSTOR(April 2024) |
| Fjölnir | |
|---|---|
| Paradigm | procedural,object-oriented |
| Designed by | Snorri Agnarsson |
| First appeared | 1980s |
| Typing discipline | strong, dynamic |
| Scope | lexical |
| OS | MS-DOS |
| Filename extensions | .fjo, .fjv, .sma, .ein |
Fjölnir (alsoFjolnir orFjoelnir) is aprogramming language developed byprofessor Snorri Agnarsson ofcomputer science atHáskóli Íslands (University of Iceland) that was mostly used in the 1980s. Thesource files usually have theextensionfjo orsma.
Fjölnir is based on the concept of representing programs as trees, and packages by substitutions on trees usingalgebraic operators.[1] For example, in theHello 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 thestandard output) is imported from"GRUNNUR".
;; Hello world in Fjölnir"hello" < main{ main -> stef(;) stofn skrifastreng(;"Hello, world!"), stofnlok}*"GRUNNUR";Thisprogramming-language-related article is astub. You can help Wikipedia byadding missing information. |