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, #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)


9
10
11
# File 'lib/antelope/ace/token/terminal.rb', line 9

def terminal?
  true
end