Class: Antelope::Grammar::Token::Nonterminal
- Inherits:
-
Antelope::Grammar::Token
- Object
- Antelope::Grammar::Token
- Antelope::Grammar::Token::Nonterminal
- Defined in:
- lib/antelope/grammar/token/nonterminal.rb
Overview
Defines a nonterminal token.
Instance Attribute Summary
Attributes inherited from Antelope::Grammar::Token
Instance Method Summary collapse
-
#nonterminal? ⇒ Boolean
abstract
Whether or not the token is a nonterminal.
Methods inherited from Antelope::Grammar::Token
#<=>, #===, #epsilon?, #error?, #hash, #initialize, #inspect, #invalidate_cache!, #terminal?, #to_a, #to_s, #without_transitions
Constructor Details
This class inherits a constructor from Antelope::Grammar::Token
Instance Method Details
#nonterminal? ⇒ Boolean
This method is abstract.
Whether or not the token is a nonterminal.
9 10 11 |
# File 'lib/antelope/grammar/token/nonterminal.rb', line 9 def nonterminal? true end |