projects
/
Faustine.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add 21 primitives to Faustine.
[Faustine.git]
/
interpretor
/
lexer.mll
diff --git
a/interpretor/lexer.mll
b/interpretor/lexer.mll
index
4f2f525
..
9659a41
100644
(file)
--- a/
interpretor/lexer.mll
+++ b/
interpretor/lexer.mll
@@
-33,7
+33,7
@@
rule token = parse
| "exp" { IDENT Exp}
| "sqrt" { IDENT Sqrt}
| "log" { IDENT Ln}
| "exp" { IDENT Exp}
| "sqrt" { IDENT Sqrt}
| "log" { IDENT Ln}
-| "logten" { IDENT L
og10
}
+| "logten" { IDENT L
g
}
| "pow" { IDENT Power}
| "abs" { IDENT Abs}
| "fmod" { IDENT Fmod}
| "pow" { IDENT Power}
| "abs" { IDENT Abs}
| "fmod" { IDENT Fmod}
@@
-43,12
+43,12
@@
rule token = parse
| "#" { IDENT Vconcat}
| "[]" { IDENT Vpick }
| "serialize" { IDENT Serialize}
| "#" { IDENT Vconcat}
| "[]" { IDENT Vpick }
| "serialize" { IDENT Serialize}
-| '>' { IDENT G
reater
}
-| '<' { IDENT L
ess
}
-| ">=" { IDENT G
ore
}
-| "<=" { IDENT L
ore
}
-| "==" { IDENT Eq
ual
}
-| "!=" { IDENT
Different
}
+| '>' { IDENT G
t
}
+| '<' { IDENT L
t
}
+| ">=" { IDENT G
eq
}
+| "<=" { IDENT L
eq
}
+| "==" { IDENT Eq}
+| "!=" { IDENT
Neq
}
| "max" { IDENT Max}
| "min" { IDENT Min}
| "prefix" { IDENT Prefix}
| "max" { IDENT Max}
| "min" { IDENT Min}
| "prefix" { IDENT Prefix}