Fix Symbol usage in the spry module

This commit is contained in:
Emery Hemingway 2022-12-05 16:10:49 -06:00
parent f9bed998f1
commit d3132391bd
1 changed files with 3 additions and 3 deletions

View File

@ -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)