module Lrama class Grammar class Rule attr_accessor id: Integer attr_accessor _lhs: Lexer::Token attr_accessor lhs: Grammar::Symbol attr_accessor lhs_tag: Lexer::Token::Tag? attr_accessor _rhs: Array[Lexer::Token] attr_accessor rhs: Array[Grammar::Symbol] attr_accessor token_code: Grammar::Code? attr_accessor position_in_original_rule_rhs: Integer attr_accessor nullable: bool attr_accessor precedence_sym: Grammar::Symbol? attr_accessor lineno: Integer? attr_accessor original_rule: Rule def initialize: ( ?id: Integer, ?_lhs: Lexer::Token, ?lhs: Lexer::Token, ?lhs_tag: Lexer::Token::Tag?, ?_rhs: Array[Lexer::Token], ?rhs: Array[Grammar::Symbol], ?token_code: Lexer::Token::UserCode?, ?position_in_original_rule_rhs: Integer?, ?nullable: bool, ?precedence_sym: Grammar::Symbol?, ?lineno: Integer? ) -> void def display_name: () -> String def as_comment: -> String def empty_rule?: -> bool def initial_rule?: -> bool def precedence: -> Precedence? def translated_code: -> String? def with_actions: -> String def contains_at_reference?: -> bool interface _DelegatedMethods def lhs: -> Grammar::Symbol def rhs: -> Array[Grammar::Symbol] end end end end