parser: implement long literal and handle overflow

This commit is contained in:
2023-09-12 00:25:13 -04:00
parent 7aa9d95221
commit 1b363dcf56
12 changed files with 55 additions and 2 deletions

View File

@ -39,6 +39,8 @@ class EvaluationVisitor(root: Scope) : NodeVisitor<Any> {
override fun visitListLiteral(node: ListLiteral): Any =
node.items.map { it.visit(this) }
override fun visitLongLiteral(node: LongLiteral): Any = node.value
override fun visitSymbol(node: Symbol): Any = None
override fun visitFunctionCall(node: FunctionCall): Any {