class

Lrama::Grammar::Rule

Inherits Reference < Object

Constructors

new(id : Int32 | Nil = nil, _lhs : Lexer::Token::Base | Nil = nil, lhs : Grammar::Symbol | Nil = nil, lhs_tag : Lexer::Token::Tag | Nil = nil, _rhs : Array(Lexer::Token::Base) = [] of Lexer::Token::Base, rhs : Array(Grammar::Symbol) = [] of Grammar::Symbol, token_code : Lexer::Token::UserCode | Nil = nil, position_in_original_rule_rhs : Int32 | Nil = nil, nullable : Bool | Nil = nil, precedence_sym : Grammar::Symbol | Nil = nil, lineno : Int32 | Nil = nil)
Source

Instance methods

_lhs
Source
_lhs=(_lhs : Lexer::Token::Base | Nil)
Source
_rhs
Source
_rhs=(_rhs : Array(Lexer::Token::Base))
Source
as_comment
Source
contains_at_reference?
Source
display_name
Source
display_name_without_action
Source
empty_rule?
Source
id=(id : Int32 | Nil)
Source
initial_rule?
Source
lhs=(lhs : Grammar::Symbol | Nil)
Source
lhs_tag
Source
lhs_tag=(lhs_tag : Lexer::Token::Tag | Nil)
Source
lineno
Source
lineno=(lineno : Int32 | Nil)
Source
nullable
Source
nullable=(nullable : Bool | Nil)
Source
original_rule
Source
original_rule=(original_rule : Rule | Nil)
Source
position_in_original_rule_rhs
Source
position_in_original_rule_rhs=(position_in_original_rule_rhs : Int32 | Nil)
Source
precedence
Source
precedence_sym
Source
precedence_sym=(precedence_sym : Grammar::Symbol | Nil)
Source
rhs=(rhs : Array(Grammar::Symbol))
Source
token_code
Source
token_code=(token_code : Lexer::Token::UserCode | Nil)
Source
with_actions
Source