wrong return type
This commit is contained in:
parent
b2d298ec6f
commit
04e14cd83e
|
|
@ -2,7 +2,7 @@ import { readFileSync } from 'fs'
|
||||||
import { VM, fromValue, toValue, isValue, type Bytecode } from 'reefvm'
|
import { VM, fromValue, toValue, isValue, type Bytecode } from 'reefvm'
|
||||||
import { Compiler } from '#compiler/compiler'
|
import { Compiler } from '#compiler/compiler'
|
||||||
import { parse } from '#parser/parser2'
|
import { parse } from '#parser/parser2'
|
||||||
import { type SyntaxNode, Tree } from '#parser/node'
|
import { Tree } from '#parser/node'
|
||||||
import { globals as parserGlobals, setGlobals as setParserGlobals } from '#parser/tokenizer'
|
import { globals as parserGlobals, setGlobals as setParserGlobals } from '#parser/tokenizer'
|
||||||
import { globals as prelude } from '#prelude'
|
import { globals as prelude } from '#prelude'
|
||||||
|
|
||||||
|
|
@ -41,7 +41,7 @@ export class Shrimp {
|
||||||
return isValue(result) ? fromValue(result, this.vm) : result
|
return isValue(result) ? fromValue(result, this.vm) : result
|
||||||
}
|
}
|
||||||
|
|
||||||
parse(code: string): SyntaxNode {
|
parse(code: string): Tree {
|
||||||
return parseCode(code, this.globals)
|
return parseCode(code, this.globals)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user