A series of patterns for the Den programing language.
foo : bar
string : "hello"
float : 1.23
int : 10
+ 3 5
- 10 2
* 4 2
/ 16 2
^ 2 2 2
% 8
? > 10 : True
? = 10 : True
? < 10 : True
"string".1
"string".1..2
{ Comment Line }
{
Comment Block
}
function param1 param2
: return
function param1 param2
? = ! + param1 param2 10
: True
: False
Numbers val1 val2
Value1 : val1
Value2 : val2
add
: + Value1 Value2
sub
: - Value1 Value2
test:Numbers 10 5
test.add
By default, methods don't break. So these 3 patterns are obtained with the same code.
index : 0
loop
? = index 10 : True
+ = index 1
someClass
methodA : True
methodB : True
someClass.methodC : True