Category:EMal: Difference between revisions
Content added Content deleted
(Created page with "{{stub}}{{language|EMal}}") |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
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 read. |
|||
This is an example that, inside the same script, calculates <i>F<sub>10</sub></i> = 55 in english and in italian: |
|||
<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 FibonacciInItaliano |
|||
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> |
Latest revision as of 08:23, 15 May 2023
EMal
This programming language may be used to instruct a computer to perform a task.
Listed below are all of the tasks on Rosetta Code which have been solved using EMal.
This programming language may be used to instruct a computer to perform a task.
Official website |
---|
Execution method: | Interpreted |
---|---|
Garbage collected: | Yes |
Type strength: | Weak |
Type expression: | Explicit |
Type checking: | Dynamic |
Lang tag(s): | emal |
See Also: |
|
EMal is a prototyping programming language that supports english and italian syntax.
EMal wants to be expressive and easy to read.
This is an example that, inside the same script, calculates F10 = 55 in english and in italian:
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 FibonacciInItaliano
funzione fibonacci = intero da intero n
se n < 2
ritorna n
altrimenti
ritorna fibonacci(n - 1) + fibonacci(n - 2)
fine
fine
scriviLinea(fibonacci(10))
Subcategories
This category has the following 2 subcategories, out of 2 total.
@
- EMal Implementations (empty)
- EMal User (1 P)
Pages in category "EMal"
The following 104 pages are in this category, out of 104 total.