diff options
| author | azidar | 2015-07-02 14:55:04 -0700 |
|---|---|---|
| committer | azidar | 2015-07-02 14:55:04 -0700 |
| commit | a9d4b3edf92c2e366028ae940501a72444f070d7 (patch) | |
| tree | b2de559f5b688dbe705c2c16c4768250165cbdb1 /src/main/stanza/ir-parser.stanza | |
| parent | f87399045123c8bc73dabe82ecff6a9a5bdfea41 (diff) | |
Fixed stanza, optimize works, added a time printout
Diffstat (limited to 'src/main/stanza/ir-parser.stanza')
| -rw-r--r-- | src/main/stanza/ir-parser.stanza | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/stanza/ir-parser.stanza b/src/main/stanza/ir-parser.stanza index b511f640..dd7679cc 100644 --- a/src/main/stanza/ir-parser.stanza +++ b/src/main/stanza/ir-parser.stanza @@ -112,7 +112,10 @@ defsyntax firrtl : int$ != () : FPE(form, "Expected a single integer literal here.") ;Error if not a single long integer - long$ = (?i:#intorlong ?rest ...) when empty?(rest) : to-long(i) + long$ = (?i:#intorlong ?rest ...) when empty?(rest) : + match(i) : + (i:Long) : i + (i) : to-long(i) long$ != () : FPE(form, "Expected a single long integer literal here.") ;Error if not a single width |
