Category:EMal: Difference between revisions
Content added Content deleted
(Created page with "{{stub}}{{language|EMal}}") |
No edit summary |
||
Line 1: | Line 1: | ||
{{language|EMal |
|||
|exec=interpreted |
|||
|strength=weak |
|||
|checking=dynamic |
|||
|express=explicit |
|||
|site=https://emal-lang.sourceforge.io |
|||
|tags=emal |
|||
|gc=yes}} |
|||
EMal is a prototyping programming language that supports english and italian syntax. |
|||
EMal wants to be expressive and easy to be read. |
|||
This is an example |
|||
<syntaxhighlight lang="emal"> |
|||
type FibonacciInEnglish |
|||
fun fibonacci = int by int n |
|||
if n < 2 do return n |
|||
else do return fibonacci(n - 1) + fibonacci(n - 2) |
|||
end |
|||
end |
|||
writeLine(fibonacci(10)) |
|||
tipo FibonacciInItalian |
|||
funzione fibonacci = intero da intero n |
|||
se n < 2 |
|||
ritorna n |
|||
altrimenti |
|||
ritorna fibonacci(n - 1) + fibonacci(n - 2) |
|||
fine |
|||
fine |
|||
scriviLinea(fibonacci(10)) |
|||
</syntaxhighlight> |
|||
===Implementation=== |
|||
The main interpreter is implemented in [[C#]] and directly navigates the AST, it should run in architectures where dot net is supporter, and has no external dependencies. |