Class: Dhaka::LexerSupport::LookaheadNode
Instance Attribute Summary
Attributes inherited from BinaryNode
#left, #right
Instance Method Summary
collapse
Methods inherited from CatNode
#first, #last, #nullable
Methods inherited from BinaryNode
#initialize, #to_dot
Methods inherited from ASTNode
#accepting, #checkpoint
Instance Method Details
#calculate_follow_sets ⇒ Object
235
236
237
238
239
240
|
# File 'lib/dhaka/lexer/regex_grammar.rb', line 235
def calculate_follow_sets
super
left.last.each do |leaf_node|
leaf_node.follow_set.merge(Set.new([CheckpointNode.new]))
end
end
|
#label ⇒ Object
231
232
233
|
# File 'lib/dhaka/lexer/regex_grammar.rb', line 231
def label
"/"
end
|