Category:Arturo: Difference between revisions
m
minor edit
Drkameleon (talk | contribs) No edit summary |
Drkameleon (talk | contribs) m (minor edit) |
||
(12 intermediate revisions by 2 users not shown) | |||
Line 2:
|exec=interpreted
|strength=strong
|checking=dynamic
|express=implicit
|site=
|tags=arturo
|gc=yes}}
* Code is just a list of words and symbols
▲It is built on some very simple and straightforward principles:
* Words and symbols within a block are interpreted - when needed - according to the context
* No reserved words or keywords - look for them as hard as you can; there are absolutely none
<syntaxhighlight lang="arturo">
factorial: function [n][
if? n > 0 -> n * factorial n-1
else -> 1
]
loop 1..19 [x]->
print ["Factorial of" x "=" factorial x]
</syntaxhighlight>
===Implementation===▼
The main compiler is implemented in [[Nim]]/[[C]] as a Bytecode interpreter / Stack-based VM and should run in most architectures.
The main goals are: expressiveness, brevity, performance and portability. (With that exact order)
▲===Implementation===
===License===
Line 46 ⟶ 34:
===Todo===
[[Tasks not implemented in Arturo]]
{{language programming paradigm|Dynamic}}
{{language programming paradigm|Functional}}
{{language programming paradigm|Imperative}}
▲{{language programming paradigm|Object-oriented}}
▲{{language programming paradigm|Functional}}
{{language programming paradigm|Reflective}}
|