Class: Dhaka::LexerSupport::ZeroOrOneNode

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

Instance Attribute Summary

Attributes inherited from UnaryNode

#child

Instance Method Summary collapse

Methods inherited from UnaryNode

#calculate_follow_sets, #first, #initialize, #last, #to_dot

Methods inherited from ASTNode

#accepting, #checkpoint

Constructor Details

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

Instance Method Details

#labelObject



299
300
301
# File 'lib/dhaka/lexer/regex_grammar.rb', line 299

def label
  "?"
end

#nullableObject



303
304
305
# File 'lib/dhaka/lexer/regex_grammar.rb', line 303

def nullable
  true
end