mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-24 15:48:47 +00:00
Expr.expr --- associativity
This commit is contained in:
parent
b4ba38a0f7
commit
4c031ce95f
11 changed files with 98 additions and 17 deletions
3
stdlib/regression/orig/test13.log
Normal file
3
stdlib/regression/orig/test13.log
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
Succ (Add ("a", Sub ("a", "a")))
|
||||
Succ (Mul (Div (Mul ("a", "a"), "a"), "a"))
|
||||
Succ (Add (Mul ("a", "a"), Sub (Div ("a", "a"), Mul ("a", "a"))))
|
||||
3
stdlib/regression/orig/test14.log
Normal file
3
stdlib/regression/orig/test14.log
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
Succ (Add ("a", Sub ("a", "a")))
|
||||
Succ (Mul (Div (Mul ("a", "a"), "a"), "a"))
|
||||
Succ (Add (Mul ("a", "a"), Sub (Div ("a", "a"), Mul ("a", "a"))))
|
||||
4
stdlib/regression/orig/test15.log
Normal file
4
stdlib/regression/orig/test15.log
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
Succ (Eq ("a", "a"))
|
||||
Succ (Eq (Mul ("a", "a"), Mul ("a", "a")))
|
||||
Succ (Eq (Add (Mul ("a", "a"), Sub (Div ("a", "a"), Mul ("a", "a"))), Sub (Mul ("a", "a"), "a")))
|
||||
Fail ({""*" expected at"}, 1, 2)
|
||||
Loading…
Add table
Add a link
Reference in a new issue