diff options
| author | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2015-11-05 09:57:30 -0500 |
|---|---|---|
| committer | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2015-11-05 09:57:30 -0500 |
| commit | 0b559fcd4d460e464e6c58812eba742cbddd549a (patch) | |
| tree | 522cd496839df1425040f30b26e6640a71312673 | |
| parent | db1864d22ae11342a6e2e7f9a7c08da6d475184b (diff) | |
| download | roux-0b559fcd4d460e464e6c58812eba742cbddd549a.tar.gz | |
support lighter syntax for arrays
| -rw-r--r-- | lisc/parse.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lisc/parse.c b/lisc/parse.c index 54031e7..fa3194f 100644 --- a/lisc/parse.c +++ b/lisc/parse.c @@ -762,9 +762,11 @@ parsedat(void cb(Dat *)) } if (nextnl() != TNum) err("number expected"); - d.u.num = tokval.num; - cb(&d); - t = nextnl(); + do { + d.u.num = tokval.num; + cb(&d); + t = nextnl(); + } while (t == TNum); if (t == TRBrace) break; if (t != TComma) |
