mirror of
https://codeberg.org/ProgramSnail/lang_2023.git
synced 2025-12-31 11:18:16 +00:00
Revert "changes for new grammar, fixes"
This reverts commit f912cdac41.
This commit is contained in:
parent
f912cdac41
commit
03dea59d33
10 changed files with 5 additions and 59 deletions
|
|
@ -106,10 +106,10 @@ namespace var \div {
|
|||
|
||||
typeclass \eq =
|
||||
& var ( == ) : \eq -> \bool
|
||||
& var ( <> ) : \eq -> \bool
|
||||
& var ( != ) : \eq -> \bool
|
||||
|
||||
namespace var \eq {
|
||||
def ( <> ) : x = not: (self == x)
|
||||
def ( != ) : x = not: (self == x)
|
||||
}
|
||||
|
||||
//
|
||||
|
|
|
|||
|
|
@ -1,11 +0,0 @@
|
|||
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