diff options
author | Marc Coquand <marc@mccd.space> | 2023-12-26 09:34:58 -0600 |
---|---|---|
committer | Marc Coquand <marc@mccd.space> | 2023-12-26 09:57:20 -0600 |
commit | 742c23d7c5d90b681dcbce92846d57042d2ea467 (patch) | |
tree | b6cf10333e15bc7b748744f7c7af805ca77f222c /lib/parser.mly | |
parent | 8ac0e27adc8d14a77427351dede1757999c8c709 (diff) | |
download | fixgen-742c23d7c5d90b681dcbce92846d57042d2ea467.tar.gz fixgen-742c23d7c5d90b681dcbce92846d57042d2ea467.tar.bz2 fixgen-742c23d7c5d90b681dcbce92846d57042d2ea467.zip |
Add support for ints
Diffstat (limited to '')
-rw-r--r-- | lib/parser.mly | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/parser.mly b/lib/parser.mly index 3d57961..ab9b697 100644 --- a/lib/parser.mly +++ b/lib/parser.mly @@ -10,6 +10,10 @@ %token COLON %token DOT %token EOF +%token INTSYMBOL +%token <int> INT +%token LBRACE +%token RBRACE %start <ast_table option > prog %% @@ -30,4 +34,6 @@ row: | row_title = IDENTIFIER; UUIDV4 { Uuidv4 (row_title, End) } | row_title = IDENTIFIER; NAME; COMMA; r = row { Name (row_title, r) } | row_title = IDENTIFIER; NAME { Name (row_title, End) } + | row_title = IDENTIFIER; INTSYMBOL;LBRACE;min = INT;COMMA;max = INT;RBRACE;COMMA; r = row { Int (row_title,min,max,r) } + | row_title = IDENTIFIER; INTSYMBOL;LBRACE;min = INT;COMMA;max = INT;RBRACE; { Int (row_title,min,max,End) } ; |