projects
/
Faustine.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Nested vectors are implemented, including parser and class nstio.
[Faustine.git]
/
interpreter
/
nstlexer.mll
diff --git a/interpreter/nstlexer.mll
b/interpreter/nstlexer.mll
new file mode 100644
(file)
index 0000000..
65196c7
--- /dev/null
+++ b/
interpreter/nstlexer.mll
@@ -0,0
+1,15
@@
+{
+open Nstparser
+open Types
+}
+
+rule token = parse
+ [' ' '\t' '\n' ] { token lexbuf }
+
+| ['0'-'9']+ as a { CONST a }
+| '.' { POINT }
+
+| '[' { LPAR }
+| ']' { RPAR }
+| ',' { COMMA }
+| eof { EOF }