mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-28 01:28:48 +00:00
Generic compare
This commit is contained in:
parent
a9946113c9
commit
6181173cb8
6 changed files with 117 additions and 5 deletions
|
|
@ -589,7 +589,6 @@ module Expr =
|
|||
ignore atr (
|
||||
match s with
|
||||
| ":" -> Sexp ("cons", [x; y])
|
||||
(*| "++" -> Call (Var "strcat", [x; y]) *)
|
||||
| ":=" -> Assign (x, y)
|
||||
| _ -> Binop (s, x, y)
|
||||
)
|
||||
|
|
@ -770,7 +769,7 @@ module Infix =
|
|||
`Lefta , ["!!"];
|
||||
`Lefta , ["&&"];
|
||||
`Nona , ["=="; "!="; "<="; "<"; ">="; ">"];
|
||||
`Lefta , [(*"++";*) "+" ; "-"];
|
||||
`Lefta , ["+" ; "-"];
|
||||
`Lefta , ["*" ; "/"; "%"];
|
||||
|]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue