Class: Antelope::Ace::Token::Nonterminal

Inherits:
Antelope::Ace::Token show all
Defined in:
lib/antelope/ace/token/nonterminal.rb

Overview

Defines a nonterminal token.

Instance Attribute Summary

Attributes inherited from Antelope::Ace::Token

#from, #name, #to

Instance Method Summary collapse

Methods inherited from Antelope::Ace::Token

#<=>, #===, #epsilon?, #error?, #hash, #initialize, #inspect, #terminal?, #to_a, #to_s, #without_transitions

Constructor Details

This class inherits a constructor from Antelope::Ace::Token

Instance Method Details

#nonterminal?Boolean

This method is abstract.

Whether or not the token is a nonterminal.

Returns:

  • (Boolean)


11
12
13
# File 'lib/antelope/ace/token/nonterminal.rb', line 11

def nonterminal?
  true
end