diff options
| author | azidar | 2015-03-25 12:56:29 -0700 |
|---|---|---|
| committer | azidar | 2015-03-25 12:56:29 -0700 |
| commit | 612132bf95b529d2fafbe96e622f716ca9514679 (patch) | |
| tree | 43f938a8b778d13fcc9fe49b0cefc95c76c4665c /src/main/stanza/ir-parser.stanza | |
| parent | 167f7c32eeeda55bd868a61b445f8891d1ff3278 (diff) | |
Correctly do when expansion, minus enables and outputting lowered form
Diffstat (limited to 'src/main/stanza/ir-parser.stanza')
| -rw-r--r-- | src/main/stanza/ir-parser.stanza | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/main/stanza/ir-parser.stanza b/src/main/stanza/ir-parser.stanza index ae60194c..8f0cc8e3 100644 --- a/src/main/stanza/ir-parser.stanza +++ b/src/main/stanza/ir-parser.stanza @@ -128,8 +128,6 @@ rd.defsyntax firrtl : DefAccessor(ut(name), source, index) ((?body:#comm ...)) : Begin(body) - (letrec : (?elems:#element ...) in : ?body:#comm) : - LetRec(elems, body) (?x:#exp := ?y:#exp) : Connect(x, y) (?c:#comm/when) : @@ -143,16 +141,6 @@ rd.defsyntax firrtl : (when ?pred:#exp : ?conseq:#comm) : Conditionally(pred, conseq, EmptyStmt()) - defrule element : - (reg ?name:#symbol : ?type:#type = Register (@do ?value:#exp ?en:#exp)) : - ut(name) => Register(type, value, en) - (node ?name:#symbol : ?type:#type = ?exp:#exp) : - ut(name) => Node(type, exp) - (inst ?name:#symbol = Instance (@do ?module:#exp - (?names:#symbol => ?values:#exp @...))) : - val ports = map({ut(_) => _}, names, values) - ut(name) => Instance(UnknownType(), module, ports) - defrule exp : (?x:#exp . ?f:#int) : Index(x, ut(f), UnknownType()) |
