Class: Antelope::Grammar::Token::Terminal

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

Overview

Defines a terminal token.

Direct Known Subclasses

Error

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

Constructor Details

This class inherits a constructor from Antelope::Grammar::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/grammar/token/terminal.rb', line 9

def terminal?
  true
end