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
363 364 365 |
# File 'lib/dhaka/lexer/regex_grammar.rb', line 363 def accepting true end |
#action(pattern) ⇒ Object
370 371 372 |
# File 'lib/dhaka/lexer/regex_grammar.rb', line 370 def action(pattern) AcceptAction.new(pattern) end |
#calculate_follow_sets ⇒ Object
378 379 |
# File 'lib/dhaka/lexer/regex_grammar.rb', line 378 def calculate_follow_sets end |
#character ⇒ Object
367 368 |
# File 'lib/dhaka/lexer/regex_grammar.rb', line 367 def character end |
#first ⇒ Object
374 375 376 |
# File 'lib/dhaka/lexer/regex_grammar.rb', line 374 def first Set.new([self]) end |
#to_dot(graph) ⇒ Object
381 382 383 |
# File 'lib/dhaka/lexer/regex_grammar.rb', line 381 def to_dot(graph) graph.node(self, :label => '#') end |