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
@@ -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 }