Class: Antelope::Ace::Token::Terminal

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

Overview

Defines a terminal token.

Direct Known Subclasses

Error

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, #nonterminal?, #to_a, #to_s, #without_transitions

Constructor Details

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

Instance Method Details

#terminal?Boolean

This method is abstract.

Whether or not the token is a terminal.

Returns:

  • (Boolean)


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

def terminal?
  true
end