From 3a758953f9f934b654a5ded9cfed220e5ae8e21a Mon Sep 17 00:00:00 2001 From: Paweł Dybiec Date: Sat, 3 Nov 2018 17:57:42 +0100 Subject: Add first tokens --- source/mod_student/lexer.mll | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'source/mod_student/lexer.mll') diff --git a/source/mod_student/lexer.mll b/source/mod_student/lexer.mll index 4cd656c..f785e52 100644 --- a/source/mod_student/lexer.mll +++ b/source/mod_student/lexer.mll @@ -54,9 +54,12 @@ (* vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv * Miejsce na twoje reguły *) - + | "(" + { LPAREN } + | ")" + { RPAREN } | identifier as id - { failwith id } + { IDENTIFIER id } (* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ----------------------------------------------------------------------------- *) -- cgit 1.4.1