Class: Antelope::Grammar::Token::Nonterminal

Inherits:
Antelope::Grammar::Token show all
Defined in:
lib/antelope/grammar/token/nonterminal.rb

Overview

Defines a nonterminal token.

Instance Attribute Summary

Attributes inherited from Antelope::Grammar::Token

#from, #id, #name, #to, #type

Instance Method Summary collapse

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.

Returns:

  • (Boolean)


9
10
11
# File 'lib/antelope/grammar/token/nonterminal.rb', line 9

def nonterminal?
  true
end