diff options
author | Marc Coquand <marc@mccd.space> | 2023-12-26 16:22:42 -0600 |
---|---|---|
committer | Marc Coquand <marc@mccd.space> | 2023-12-26 16:22:42 -0600 |
commit | 5994b98069cec82f0b18a6a1629cc9973fc9e0bf (patch) | |
tree | 1b5b093f0fb9a4f4194f9d5f20f1d1069ffe29b7 /lib/parser.mly | |
parent | 35d5620add93feaa0db394cb1db87821031f23ef (diff) | |
download | fixgen-5994b98069cec82f0b18a6a1629cc9973fc9e0bf.tar.gz fixgen-5994b98069cec82f0b18a6a1629cc9973fc9e0bf.tar.bz2 fixgen-5994b98069cec82f0b18a6a1629cc9973fc9e0bf.zip |
Add support for email
Diffstat (limited to 'lib/parser.mly')
-rw-r--r-- | lib/parser.mly | 5 |
1 files changed, 5 insertions, 0 deletions
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> INT %token LBRACE %token RBRACE +%token EMAIL %token <string> STRING %start <ast_table option > 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) } |