Class: Dhaka::LexerSupport::AcceptingNode
- Defined in:
- lib/dhaka/lexer/regex_grammar.rb
Direct Known Subclasses
Instance Method Summary collapse
- #accepting ⇒ Object
- #action(pattern) ⇒ Object
- #calculate_follow_sets ⇒ Object
- #character ⇒ Object
- #first ⇒ Object
- #to_dot(graph) ⇒ Object
Methods inherited from ASTNode
Instance Method Details
#accepting ⇒ Object
362 363 364 |
# File 'lib/dhaka/lexer/regex_grammar.rb', line 362 def accepting true end |
#action(pattern) ⇒ Object
369 370 371 |
# File 'lib/dhaka/lexer/regex_grammar.rb', line 369 def action(pattern) AcceptAction.new(pattern) end |
#calculate_follow_sets ⇒ Object
377 378 |
# File 'lib/dhaka/lexer/regex_grammar.rb', line 377 def calculate_follow_sets end |
#character ⇒ Object
366 367 |
# File 'lib/dhaka/lexer/regex_grammar.rb', line 366 def character end |
#first ⇒ Object
373 374 375 |
# File 'lib/dhaka/lexer/regex_grammar.rb', line 373 def first Set.new([self]) end |
#to_dot(graph) ⇒ Object
380 381 382 |
# File 'lib/dhaka/lexer/regex_grammar.rb', line 380 def to_dot(graph) graph.node(self, :label => '#') end |