Class: Dhaka::LexerSupport::LookaheadNode

Inherits:
CatNode show all
Defined in:
lib/lexer/regex_grammar.rb

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

Constructor Details

This class inherits a constructor from Dhaka::LexerSupport::BinaryNode

Instance Method Details

#calculate_follow_setsObject



252
253
254
255
256
257
# File 'lib/lexer/regex_grammar.rb', line 252

def calculate_follow_sets
  super
  left.last.each do |leaf_node|
    leaf_node.follow_set.merge(Set.new([CheckpointNode.new]))
  end
end

#labelObject



248
249
250
# File 'lib/lexer/regex_grammar.rb', line 248

def label
  "/"
end