Fix Symbol usage in the spry module
This commit is contained in:
parent
f9bed998f1
commit
d3132391bd
|
@ -5,7 +5,7 @@ import std/[sequtils, tables]
|
|||
|
||||
import spryvm/spryvm
|
||||
|
||||
import preserves
|
||||
import ../preserves
|
||||
|
||||
type
|
||||
PreservesNode* = ref object of Value
|
||||
|
@ -56,8 +56,8 @@ proc toSpry(pr: Preserve[void], spry: Interpreter): Node =
|
|||
result = ByteStringNode(value: cast[string](pr.bytes))
|
||||
of pkSymbol:
|
||||
result =
|
||||
if pr.symbol == "null": newNilVal()
|
||||
else: newLitWord(spry, pr.symbol)
|
||||
if pr.symbol == Symbol"null": newNilVal()
|
||||
else: newLitWord(spry, string pr.symbol)
|
||||
of pkRecord:
|
||||
var comp = RecordNode()
|
||||
proc f(pr: Preserve[void]): Node = toSpry(pr, spry)
|
||||
|
|
Loading…
Reference in New Issue