end
class Parser
-special TablesCapable
+ super TablesCapable
# Associated lexer
var _lexer: Lexer
else
action_type = parser_action(state, subindex+1)
action_value = parser_action(state, subindex+2)
- high = low -1 # break
+ break
end
end
var node = new Start(null, node2)
return node
end
- if false then break # FIXME remove once unreach loop exits are in c_src
end
- abort # FIXME remove once unreach loop exits are in c_src
end
var _reduce_table: Array[ReduceAction]
# Find location of production nodes
# Uses existing token locations to infer location of productions.
private class ComputeProdLocationVisitor
-special Visitor
+ super Visitor
# Currenlty visited productions that need a first token
var _need_first_prods: Array[Prod] = new Array[Prod]
$ foreach {rules/rule}
private class ReduceAction@index
-special ReduceAction
+ super ReduceAction
redef fun action(p: Parser)
do
var node_list: nullable Object = null