when nimvm stmt proof of concept
This commit is contained in:
parent
178275f494
commit
49869a2b10
6 changed files with 43 additions and 13 deletions
|
|
@ -1687,6 +1687,9 @@ proc gen(p: PProc, n: PNode, r: var TCompRes) =
|
|||
gen(p, lastSon(n), r)
|
||||
of nkBlockStmt, nkBlockExpr: genBlock(p, n, r)
|
||||
of nkIfStmt, nkIfExpr: genIf(p, n, r)
|
||||
of nkWhen:
|
||||
# This is "when nimvm" node
|
||||
gen(p, n.sons[1].sons[0], r)
|
||||
of nkWhileStmt: genWhileStmt(p, n)
|
||||
of nkVarSection, nkLetSection: genVarStmt(p, n)
|
||||
of nkConstSection: discard
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue