From 5994b98069cec82f0b18a6a1629cc9973fc9e0bf Mon Sep 17 00:00:00 2001 From: Marc Coquand Date: Tue, 26 Dec 2023 16:22:42 -0600 Subject: Add support for email --- lib/parser.mly | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/parser.mly') diff --git a/lib/parser.mly b/lib/parser.mly index 6172963..e6bcb6d 100644 --- a/lib/parser.mly +++ b/lib/parser.mly @@ -15,6 +15,7 @@ %token INT %token LBRACE %token RBRACE +%token EMAIL %token STRING %start prog %% @@ -28,6 +29,7 @@ id_or_other: | NAME { "name" } | UUIDV4 { "uuidv4" } | INCREMENT { "increment" } + | EMAIL { "email" } expr: @@ -49,6 +51,9 @@ row: | row_title = id_or_other; NAME; COMMA; r = row { Name (row_title, r) } | row_title = id_or_other; NAME { Name (row_title, End) } + | row_title = id_or_other; EMAIL; COMMA; r = row { Email (row_title, r) } + | row_title = id_or_other; EMAIL { Email (row_title, End) } + | row_title = id_or_other; INCREMENT; COMMA; r = row { Increment (row_title, r) } | row_title = id_or_other; INCREMENT { Increment (row_title, End) } -- cgit v1.2.3