new VM: implemented constructors and jump optimizer

This commit is contained in:
Araq 2013-08-07 01:40:08 +02:00
commit aefa0da8a6
7 changed files with 187 additions and 24 deletions

View file

@ -51,7 +51,7 @@ proc newStrNodeT(strVal: string, n: PNode): PNode =
result.typ = n.typ
result.info = n.info
proc ordinalValToString(a: PNode): string =
proc ordinalValToString*(a: PNode): string =
# because $ has the param ordinal[T], `a` is not necessarily an enum, but an
# ordinal
var x = getInt(a)