mirror of
https://github.com/GayPizzaSpecifications/pork.git
synced 2026-11-04 16:02:20 +00:00
parser: implement long literal and handle overflow
This commit is contained in:
12 files changed
+55
-2
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user