aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/lexer.mll1
-rw-r--r--lib/parser.mly2
2 files changed, 3 insertions, 0 deletions
diff --git a/lib/lexer.mll b/lib/lexer.mll
index e8a7a73..41a2abc 100644
--- a/lib/lexer.mll
+++ b/lib/lexer.mll
@@ -20,6 +20,7 @@ rule read =
| "uuidv4" { UUIDV4 }
| "name" { NAME }
| ":" { COLON }
+ | ";" { SEMICOLON }
| "," { COMMA }
| "\n" { NEWLINE }
| "." { DOT }
diff --git a/lib/parser.mly b/lib/parser.mly
index f2f53fd..3d57961 100644
--- a/lib/parser.mly
+++ b/lib/parser.mly
@@ -5,6 +5,7 @@
%token <string> IDENTIFIER
%token UUIDV4
%token NEWLINE
+%token SEMICOLON
%token NAME
%token COLON
%token DOT
@@ -18,6 +19,7 @@ prog:
expr:
| tbl = IDENTIFIER; COLON; r = row; NEWLINE; e = expr { Table (tbl,r, e) }
+ | tbl = IDENTIFIER; COLON; r = row; SEMICOLON; e = expr { Table (tbl,r, e) }
| tbl = IDENTIFIER; COLON; r = row { Table (tbl,r, End) }
;