Class: Dhaka::LexerSupport::AcceptingNode
- Defined in:
- lib/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
380 381 382 |
# File 'lib/lexer/regex_grammar.rb', line 380 def accepting true end |
#action(pattern) ⇒ Object
387 388 389 |
# File 'lib/lexer/regex_grammar.rb', line 387 def action(pattern) AcceptAction.new(pattern) end |
#calculate_follow_sets ⇒ Object
395 396 |
# File 'lib/lexer/regex_grammar.rb', line 395 def calculate_follow_sets end |
#character ⇒ Object
384 385 |
# File 'lib/lexer/regex_grammar.rb', line 384 def character end |
#first ⇒ Object
391 392 393 |
# File 'lib/lexer/regex_grammar.rb', line 391 def first Set.new([self]) end |
#to_dot(graph) ⇒ Object
398 399 400 |
# File 'lib/lexer/regex_grammar.rb', line 398 def to_dot(graph) graph.node(self, :label => '#') end |