diff options
author | Marc Coquand <marc@mccd.space> | 2023-12-26 09:50:20 -0600 |
---|---|---|
committer | Marc Coquand <marc@mccd.space> | 2023-12-26 09:57:20 -0600 |
commit | 9cd7fbf7658793a443ad3a3b03cee4bbace0a0d4 (patch) | |
tree | 7313831ba6ca4f1a141a9f3750bf9f72d0c36365 /lib/parser.mly | |
parent | 742c23d7c5d90b681dcbce92846d57042d2ea467 (diff) | |
download | fixgen-9cd7fbf7658793a443ad3a3b03cee4bbace0a0d4.tar.gz fixgen-9cd7fbf7658793a443ad3a3b03cee4bbace0a0d4.tar.bz2 fixgen-9cd7fbf7658793a443ad3a3b03cee4bbace0a0d4.zip |
Support setting amount to be generated
Diffstat (limited to '')
-rw-r--r-- | lib/parser.mly | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/parser.mly b/lib/parser.mly index ab9b697..e9d06bc 100644 --- a/lib/parser.mly +++ b/lib/parser.mly @@ -22,9 +22,9 @@ 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) } + | tbl = IDENTIFIER; LBRACE; amount = INT; RBRACE; COLON; r = row; NEWLINE; e = expr { Table (tbl, amount, r, e) } + | tbl = IDENTIFIER; LBRACE; amount = INT; RBRACE; COLON; r = row; SEMICOLON; e = expr { Table (tbl,amount, r, e) } + | tbl = IDENTIFIER; LBRACE; amount = INT; RBRACE; COLON; r = row { Table (tbl,amount, r, End) } ; row: |