mirror of
https://codeberg.org/ProgramSnail/lang_2023.git
synced 2025-12-29 18:28:17 +00:00
changes for new grammar, fixes
This commit is contained in:
parent
3106a64949
commit
f912cdac41
10 changed files with 59 additions and 5 deletions
11
tests/variables.lang
Normal file
11
tests/variables.lang
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
decl test-variables : \int -> \unit
|
||||
def test-variables : a = {
|
||||
var x = if a < 123 then "aaa" else "bbb"
|
||||
|
||||
var y = 543.32 in do-something:
|
||||
|
||||
var z = 543.32 in {
|
||||
for x in 1--10 do print: 111
|
||||
if scan:[int] < 11 then do-something-another: z "aaa"
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue