Class Dhaka::GrammarSymbol
In: ../trunk/lib/dhaka/grammar/grammar_symbol.rb
Parent: Object

Each grammar symbol is uniquely identified by a string name. The name of a symbol can be anything (except the two reserved names ‘_Start_‘ and ‘_End_‘) and need not correspond to its character representation. For example, an ampersand in the input string could be tokenized as a symbol with a name ‘AND_OP’. You never have to directly instantiate a GrammarSymbol. It is done implicitly for you when you define a Grammar.

Methods

<=>   new   terminal  

Attributes

associativity  [RW] 
name  [R] 
non_terminal  [RW] 
nullable  [RW] 
precedence  [RW] 

Public Class methods

Public Instance methods

[Validate]