mirror of https://github.com/zachjs/sv2v.git
support for ++ and -- as bare Stmts
This commit is contained in:
parent
69a5585a7f
commit
848f8cbd61
|
|
@ -543,6 +543,8 @@ Stmt :: { Stmt }
|
|||
| LHS AsgnOp Expr ";" { AsgnBlk $2 $1 $3 }
|
||||
| Identifier ";" { Subroutine $1 [] }
|
||||
| LHS "<=" opt(DelayOrEventControl) Expr ";" { Asgn $3 $1 $4 }
|
||||
| LHS IncOrDecOperator ";" { AsgnBlk (AsgnOp $2) $1 (Number "1") }
|
||||
| IncOrDecOperator LHS ";" { AsgnBlk (AsgnOp $1) $2 (Number "1") }
|
||||
StmtNonAsgn :: { Stmt }
|
||||
: ";" { Null }
|
||||
| "begin" opt(Tag) DeclsAndStmts "end" opt(Tag) { Block (combineTags $2 $5) (fst $3) (snd $3) }
|
||||
|
|
|
|||
Loading…
Reference in New Issue