class

Lrama::Grammar::Symbol

Inherits Reference < Object

Constructors

new(id : Lexer::Token::Base, term : Bool, alias_name : String | Nil = nil, number : Int32 | Nil = nil, tag : Lexer::Token::Tag | Nil = nil, token_id : Int32 | Nil = nil, nullable : Bool | Nil = nil, precedence : Precedence | Nil = nil, printer : Printer | Nil = nil, destructor : Destructor | Nil = nil, error_token : ErrorToken | Nil = nil)
Source

Instance methods

accept_symbol=(value : Bool)
Source
accept_symbol?
Source
alias_name
Source
alias_name=(alias_name : String | Nil)
Source
comment
Source
destructor
Source
destructor=(destructor : Destructor | Nil)
Source
display_name
Source
enum_name
Source
eof_symbol=(value : Bool)
Source
eof_symbol?
Source
error_symbol=(value : Bool)
Source
error_symbol?
Source
error_token
Source
error_token=(error_token : ErrorToken | Nil)
Source
first_set
Source
first_set=(first_set : Set(Grammar::Symbol))
Source
first_set_bitmap
Source
first_set_bitmap=(first_set_bitmap : Bitmap::Bitmap | Nil)
Source
id=(id : Lexer::Token::Base)
Source
midrule?
Source
name
Source
nterm?
Source
nullable
Source
nullable=(nullable : Bool | Nil)
Source
number
Source
number=(value : Int32)
Source
number_bitmap
Source
number_bitmap=(number_bitmap : Bitmap::Bitmap | Nil)
Source
precedence
Source
precedence=(precedence : Precedence | Nil)
Source
printer
Source
printer=(printer : Printer | Nil)
Source
tag=(tag : Lexer::Token::Tag | Nil)
Source
term?
Source
token_id
Source
token_id=(token_id : Int32 | Nil)
Source
undef_symbol=(value : Bool)
Source
undef_symbol?
Source