summary refs log tree commit diff
path: root/source/mod_student/lexer.mll
diff options
context:
space:
mode:
Diffstat (limited to 'source/mod_student/lexer.mll')
-rw-r--r--source/mod_student/lexer.mll44
1 files changed, 44 insertions, 0 deletions
diff --git a/source/mod_student/lexer.mll b/source/mod_student/lexer.mll
index f785e52..a62b8ad 100644
--- a/source/mod_student/lexer.mll
+++ b/source/mod_student/lexer.mll
@@ -58,6 +58,50 @@
       { LPAREN }
       | ")"
       { RPAREN }
+      | "{"
+      { LBRACKET }
+      | "{"
+      { RBRACKET }
+      | ":"
+      { COLON }
+      | "+"
+      { OP_PLUS }
+      | "-"
+      { OP_MINUS }
+      | "*"
+      { OP_MULT }
+      | "/"
+      { OP_DIV }
+      | "%"
+      { OP_REM }
+      | "&"
+      { OP_AND }
+      | "|"
+      { OP_OR }
+      | "=="
+      { OP_EQ }
+      | "!="
+      { OP_NEQ }
+      | "<="
+      { OP_LE }
+      | ">="
+      { OP_GE }
+      | "<"
+      { OP_LT }
+      | ">"
+      { OP_GT }
+      | "="
+      { ASSIGN }
+      | "if"
+      { IF }
+      | "else"
+      { ELSE }
+      | "while"
+      { WHILE }
+      | "return"
+      { RETURN }
+      | "length"
+      { LENGTH }
       | identifier as id
       { IDENTIFIER id }