# Uses existing token locations to infer location of productions.
private class ComputeProdLocationVisitor
super Visitor
# Uses existing token locations to infer location of productions.
private class ComputeProdLocationVisitor
super Visitor
- # Currenlty visited productions that need a first token
- var need_first_prods: Array[Prod] = new Array[Prod]
+ # Currently visited productions that need a first token
+ var need_first_prods = new Array[Prod]
# Location of the last visited token in the current production
var last_location: nullable Location = null
# Location of the last visited token in the current production
var last_location: nullable Location = null
private abstract class ReduceAction
fun action(p: Parser) is abstract
fun concat(l1, l2 : Array[Object]): Array[Object]
private abstract class ReduceAction
fun action(p: Parser) is abstract
fun concat(l1, l2 : Array[Object]): Array[Object]