Merge pull request #6 from birth-software/var
Simple variable declarations
This commit is contained in:
commit
c73b6ff018
1186
bootstrap/main.cpp
1186
bootstrap/main.cpp
File diff suppressed because it is too large
Load Diff
9
tests/simple_variable_declaration/main.nat
Normal file
9
tests/simple_variable_declaration/main.nat
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
fn[cc(.c)] main [export] () s32
|
||||||
|
{
|
||||||
|
>a: s32 = 2;
|
||||||
|
>b: s32 = 2;
|
||||||
|
{
|
||||||
|
>c: s32 = a - b;
|
||||||
|
return c;
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user