2023-06-28 12:02:16 +00:00
|
|
|
# typed: true
|
|
|
|
|
|
|
|
# DO NOT EDIT MANUALLY
|
|
|
|
# This is an autogenerated file for types exported from the `racc` gem.
|
|
|
|
# Please instead update this file by running `bin/tapioca gem racc`.
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://racc//lib/racc/compat.rb#14
|
2023-06-28 12:02:16 +00:00
|
|
|
class Object < ::BasicObject
|
|
|
|
include ::Kernel
|
|
|
|
include ::PP::ObjectMixin
|
|
|
|
end
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://racc//lib/racc/parser.rb#23
|
2023-06-28 12:02:16 +00:00
|
|
|
ParseError = Racc::ParseError
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://racc//lib/racc/state.rb#924
|
2023-06-28 12:02:16 +00:00
|
|
|
class Racc::Accept
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://racc//lib/racc/state.rb#925
|
2023-06-28 12:02:16 +00:00
|
|
|
def inspect; end
|
|
|
|
end
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# The table of LALR actions. Actions are either of
|
|
|
|
# Shift, Reduce, Accept and Error.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/state.rb#811
|
2023-06-28 12:02:16 +00:00
|
|
|
class Racc::ActionTable
|
2023-12-14 15:34:15 +00:00
|
|
|
# @return [ActionTable] a new instance of ActionTable
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/state.rb#813
|
2023-06-28 12:02:16 +00:00
|
|
|
def initialize(rt, st); end
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# Returns the value of attribute accept.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/state.rb#874
|
2023-06-28 12:02:16 +00:00
|
|
|
def accept; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/state.rb#851
|
2023-06-28 12:02:16 +00:00
|
|
|
def each_reduce(&block); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/state.rb#870
|
2023-06-28 12:02:16 +00:00
|
|
|
def each_shift(&block); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute error.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/state.rb#875
|
2023-06-28 12:02:16 +00:00
|
|
|
def error; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/state.rb#823
|
2023-06-28 12:02:16 +00:00
|
|
|
def init; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/state.rb#838
|
2023-06-28 12:02:16 +00:00
|
|
|
def reduce(i); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/state.rb#834
|
2023-06-28 12:02:16 +00:00
|
|
|
def reduce_n; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/state.rb#859
|
2023-06-28 12:02:16 +00:00
|
|
|
def shift(i); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/state.rb#855
|
2023-06-28 12:02:16 +00:00
|
|
|
def shift_n; end
|
|
|
|
end
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://racc//lib/racc/exception.rb#15
|
2023-06-28 12:02:16 +00:00
|
|
|
class Racc::CompileError < ::Racc::Error; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/info.rb#17
|
2023-06-28 12:02:16 +00:00
|
|
|
Racc::Copyright = T.let(T.unsafe(nil), String)
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://racc//lib/racc/debugflags.rb#15
|
2023-06-28 12:02:16 +00:00
|
|
|
class Racc::DebugFlags
|
2023-12-14 15:34:15 +00:00
|
|
|
# @return [DebugFlags] a new instance of DebugFlags
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/debugflags.rb#34
|
2023-06-28 12:02:16 +00:00
|
|
|
def initialize(parse = T.unsafe(nil), rule = T.unsafe(nil), token = T.unsafe(nil), state = T.unsafe(nil), la = T.unsafe(nil), prec = T.unsafe(nil), conf = T.unsafe(nil)); end
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# @return [Boolean]
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/debugflags.rb#53
|
2023-06-28 12:02:16 +00:00
|
|
|
def any?; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute la.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/debugflags.rb#50
|
2023-06-28 12:02:16 +00:00
|
|
|
def la; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute parse.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/debugflags.rb#46
|
2023-06-28 12:02:16 +00:00
|
|
|
def parse; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute prec.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/debugflags.rb#51
|
2023-06-28 12:02:16 +00:00
|
|
|
def prec; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute rule.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/debugflags.rb#47
|
2023-06-28 12:02:16 +00:00
|
|
|
def rule; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute state.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/debugflags.rb#49
|
2023-06-28 12:02:16 +00:00
|
|
|
def state; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute status_logging.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/debugflags.rb#57
|
2023-06-28 12:02:16 +00:00
|
|
|
def status_logging; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute token.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/debugflags.rb#48
|
2023-06-28 12:02:16 +00:00
|
|
|
def token; end
|
|
|
|
|
|
|
|
class << self
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://racc//lib/racc/debugflags.rb#16
|
2023-06-28 12:02:16 +00:00
|
|
|
def parse_option_string(s); end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://racc//lib/racc/exception.rb#14
|
2023-06-28 12:02:16 +00:00
|
|
|
class Racc::Error < ::StandardError
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://racc//lib/racc/state.rb#931
|
2023-06-28 12:02:16 +00:00
|
|
|
def inspect; end
|
|
|
|
end
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# Represents a transition on the grammar.
|
|
|
|
# "Real goto" means a transition by nonterminal,
|
|
|
|
# but this class treats also terminal's.
|
|
|
|
# If one is a terminal transition, .ident returns nil.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/state.rb#767
|
2023-06-28 12:02:16 +00:00
|
|
|
class Racc::Goto
|
2023-12-14 15:34:15 +00:00
|
|
|
# @return [Goto] a new instance of Goto
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/state.rb#768
|
2023-06-28 12:02:16 +00:00
|
|
|
def initialize(ident, sym, from, to); end
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# Returns the value of attribute from_state.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/state.rb#777
|
2023-06-28 12:02:16 +00:00
|
|
|
def from_state; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute ident.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/state.rb#775
|
2023-06-28 12:02:16 +00:00
|
|
|
def ident; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/state.rb#780
|
2023-06-28 12:02:16 +00:00
|
|
|
def inspect; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute symbol.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/state.rb#776
|
2023-06-28 12:02:16 +00:00
|
|
|
def symbol; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute to_state.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/state.rb#778
|
2023-06-28 12:02:16 +00:00
|
|
|
def to_state; end
|
|
|
|
end
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://racc//lib/racc/grammar.rb#22
|
2023-06-28 12:02:16 +00:00
|
|
|
class Racc::Grammar
|
|
|
|
extend ::Forwardable
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# @return [Grammar] a new instance of Grammar
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#24
|
2023-06-28 12:02:16 +00:00
|
|
|
def initialize(debug_flags = T.unsafe(nil)); end
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://racc//lib/racc/grammar.rb#40
|
2023-06-28 12:02:16 +00:00
|
|
|
def [](x); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Grammar Definition Interface
|
|
|
|
#
|
|
|
|
# @raise [ArgumentError]
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#166
|
2023-06-28 12:02:16 +00:00
|
|
|
def add(rule); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# @return [Boolean]
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#171
|
2023-06-28 12:02:16 +00:00
|
|
|
def added?(sym); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# @raise [CompileError]
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#180
|
2023-06-28 12:02:16 +00:00
|
|
|
def declare_precedence(assoc, syms); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#120
|
2023-06-28 12:02:16 +00:00
|
|
|
def dfa; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#44
|
2023-06-28 12:02:16 +00:00
|
|
|
def each(&block); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#50
|
2023-06-28 12:02:16 +00:00
|
|
|
def each_index(&block); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://forwardable/1.3.2/forwardable.rb#229
|
|
|
|
def each_nonterminal(*args, **_arg1, &block); end
|
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#44
|
2023-06-28 12:02:16 +00:00
|
|
|
def each_rule(&block); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://forwardable/1.3.2/forwardable.rb#229
|
|
|
|
def each_symbol(*args, **_arg1, &block); end
|
|
|
|
|
|
|
|
# source://forwardable/1.3.2/forwardable.rb#229
|
|
|
|
def each_terminal(*args, **_arg1, &block); end
|
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#92
|
2023-06-28 12:02:16 +00:00
|
|
|
def each_useless_nonterminal; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#108
|
2023-06-28 12:02:16 +00:00
|
|
|
def each_useless_rule; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#54
|
2023-06-28 12:02:16 +00:00
|
|
|
def each_with_index(&block); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#185
|
2023-06-28 12:02:16 +00:00
|
|
|
def end_precedence_declaration(reverse); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Computation
|
|
|
|
#
|
|
|
|
# @raise [CompileError]
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#409
|
2023-06-28 12:02:16 +00:00
|
|
|
def init; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#72
|
2023-06-28 12:02:16 +00:00
|
|
|
def intern(value, dummy = T.unsafe(nil)); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute n_expected_srconflicts.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#38
|
2023-06-28 12:02:16 +00:00
|
|
|
def n_expected_srconflicts; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Sets the attribute n_expected_srconflicts
|
|
|
|
#
|
|
|
|
# @param value the value to set the attribute n_expected_srconflicts to.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#38
|
2023-06-28 12:02:16 +00:00
|
|
|
def n_expected_srconflicts=(_arg0); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#88
|
2023-06-28 12:02:16 +00:00
|
|
|
def n_useless_nonterminals; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#104
|
2023-06-28 12:02:16 +00:00
|
|
|
def n_useless_rules; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#116
|
2023-06-28 12:02:16 +00:00
|
|
|
def nfa; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#80
|
2023-06-28 12:02:16 +00:00
|
|
|
def nonterminal_base; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#130
|
2023-06-28 12:02:16 +00:00
|
|
|
def parser_class; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#58
|
2023-06-28 12:02:16 +00:00
|
|
|
def size; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute start.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#36
|
2023-06-28 12:02:16 +00:00
|
|
|
def start; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# @raise [CompileError]
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#175
|
2023-06-28 12:02:16 +00:00
|
|
|
def start_symbol=(s); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#126
|
2023-06-28 12:02:16 +00:00
|
|
|
def state_transition_table; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#120
|
2023-06-28 12:02:16 +00:00
|
|
|
def states; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#76
|
2023-06-28 12:02:16 +00:00
|
|
|
def symbols; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute symboltable.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#37
|
2023-06-28 12:02:16 +00:00
|
|
|
def symboltable; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#62
|
2023-06-28 12:02:16 +00:00
|
|
|
def to_s; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# @return [Boolean]
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#84
|
2023-06-28 12:02:16 +00:00
|
|
|
def useless_nonterminal_exist?; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# @return [Boolean]
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#100
|
2023-06-28 12:02:16 +00:00
|
|
|
def useless_rule_exist?; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#156
|
2023-06-28 12:02:16 +00:00
|
|
|
def write_log(path); end
|
|
|
|
|
|
|
|
private
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://racc//lib/racc/grammar.rb#504
|
2023-06-28 12:02:16 +00:00
|
|
|
def _compute_expand(t, set, lock); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#430
|
2023-06-28 12:02:16 +00:00
|
|
|
def add_start_rule; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#537
|
2023-06-28 12:02:16 +00:00
|
|
|
def check_rules_nullable(rules); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#578
|
2023-06-28 12:02:16 +00:00
|
|
|
def check_rules_useless(rules); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#550
|
2023-06-28 12:02:16 +00:00
|
|
|
def check_symbols_nullable(symbols); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#591
|
2023-06-28 12:02:16 +00:00
|
|
|
def check_symbols_useless(s); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Sym#expand
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#498
|
2023-06-28 12:02:16 +00:00
|
|
|
def compute_expand(t); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Rule#hash
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#449
|
2023-06-28 12:02:16 +00:00
|
|
|
def compute_hash; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Sym#heads
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#458
|
2023-06-28 12:02:16 +00:00
|
|
|
def compute_heads; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Sym#locate
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#483
|
2023-06-28 12:02:16 +00:00
|
|
|
def compute_locate; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Sym#nullable?, Rule#nullable?
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#524
|
2023-06-28 12:02:16 +00:00
|
|
|
def compute_nullable; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Sym#self_null?
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#472
|
2023-06-28 12:02:16 +00:00
|
|
|
def compute_nullable_0; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Sym#useless?, Rule#useless?
|
|
|
|
# FIXME: what means "useless"?
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#564
|
2023-06-28 12:02:16 +00:00
|
|
|
def compute_useless; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Sym#terminal?
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#465
|
2023-06-28 12:02:16 +00:00
|
|
|
def determine_terminals; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Rule#ident
|
|
|
|
# LocationPointer#ident
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#442
|
2023-06-28 12:02:16 +00:00
|
|
|
def fix_ident; end
|
|
|
|
|
|
|
|
class << self
|
2023-12-14 15:34:15 +00:00
|
|
|
# Dynamic Generation Interface
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#201
|
2023-06-28 12:02:16 +00:00
|
|
|
def define(&block); end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://racc//lib/racc/grammar.rb#207
|
2023-06-28 12:02:16 +00:00
|
|
|
class Racc::Grammar::DefinitionEnv
|
2023-12-14 15:34:15 +00:00
|
|
|
# @return [DefinitionEnv] a new instance of DefinitionEnv
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#208
|
2023-06-28 12:02:16 +00:00
|
|
|
def initialize; end
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://racc//lib/racc/grammar.rb#282
|
2023-06-28 12:02:16 +00:00
|
|
|
def _(&block); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#242
|
2023-06-28 12:02:16 +00:00
|
|
|
def _add(target, x); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# @return [Boolean]
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#262
|
2023-06-28 12:02:16 +00:00
|
|
|
def _added?(sym); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#258
|
2023-06-28 12:02:16 +00:00
|
|
|
def _delayed_add(rule); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#321
|
2023-06-28 12:02:16 +00:00
|
|
|
def _intern(x); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#282
|
2023-06-28 12:02:16 +00:00
|
|
|
def action(&block); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#266
|
2023-06-28 12:02:16 +00:00
|
|
|
def flush_delayed; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#214
|
2023-06-28 12:02:16 +00:00
|
|
|
def grammar; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#296
|
2023-06-28 12:02:16 +00:00
|
|
|
def many(sym, &block); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#303
|
2023-06-28 12:02:16 +00:00
|
|
|
def many1(sym, &block); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#231
|
2023-06-28 12:02:16 +00:00
|
|
|
def method_missing(mid, *args, &block); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#278
|
2023-06-28 12:02:16 +00:00
|
|
|
def null(&block); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#290
|
2023-06-28 12:02:16 +00:00
|
|
|
def option(sym, default = T.unsafe(nil), &block); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#225
|
2023-06-28 12:02:16 +00:00
|
|
|
def precedence_table(&block); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#310
|
2023-06-28 12:02:16 +00:00
|
|
|
def separated_by(sep, sym, &block); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#314
|
2023-06-28 12:02:16 +00:00
|
|
|
def separated_by1(sep, sym, &block); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#274
|
2023-06-28 12:02:16 +00:00
|
|
|
def seq(*list, &block); end
|
|
|
|
|
|
|
|
private
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://racc//lib/racc/grammar.rb#334
|
2023-06-28 12:02:16 +00:00
|
|
|
def _defmetasyntax(type, id, action, &block); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#345
|
2023-06-28 12:02:16 +00:00
|
|
|
def _register(target_name); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#356
|
2023-06-28 12:02:16 +00:00
|
|
|
def _wrap(target_name, sym, block); end
|
|
|
|
end
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://racc//lib/racc/grammar.rb#365
|
2023-06-28 12:02:16 +00:00
|
|
|
class Racc::Grammar::PrecedenceDefinitionEnv
|
2023-12-14 15:34:15 +00:00
|
|
|
# @return [PrecedenceDefinitionEnv] a new instance of PrecedenceDefinitionEnv
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#366
|
2023-06-28 12:02:16 +00:00
|
|
|
def initialize(g); end
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://racc//lib/racc/grammar.rb#375
|
2023-06-28 12:02:16 +00:00
|
|
|
def higher; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#392
|
2023-06-28 12:02:16 +00:00
|
|
|
def left(*syms); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#382
|
2023-06-28 12:02:16 +00:00
|
|
|
def lower; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#400
|
2023-06-28 12:02:16 +00:00
|
|
|
def nonassoc(*syms); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute reverse.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#373
|
2023-06-28 12:02:16 +00:00
|
|
|
def reverse; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#396
|
2023-06-28 12:02:16 +00:00
|
|
|
def right(*syms); end
|
|
|
|
end
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# An "indexed" set. All items must respond to :ident.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/iset.rb#16
|
2023-06-28 12:02:16 +00:00
|
|
|
class Racc::ISet
|
2023-12-14 15:34:15 +00:00
|
|
|
# @return [ISet] a new instance of ISet
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/iset.rb#18
|
2023-06-28 12:02:16 +00:00
|
|
|
def initialize(a = T.unsafe(nil)); end
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://racc//lib/racc/iset.rb#28
|
2023-06-28 12:02:16 +00:00
|
|
|
def [](key); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/iset.rb#32
|
2023-06-28 12:02:16 +00:00
|
|
|
def []=(key, val); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/iset.rb#24
|
2023-06-28 12:02:16 +00:00
|
|
|
def add(i); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/iset.rb#82
|
2023-06-28 12:02:16 +00:00
|
|
|
def clear; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/iset.rb#54
|
2023-06-28 12:02:16 +00:00
|
|
|
def delete(key); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/iset.rb#86
|
2023-06-28 12:02:16 +00:00
|
|
|
def dup; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/iset.rb#60
|
2023-06-28 12:02:16 +00:00
|
|
|
def each(&block); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# @return [Boolean]
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/iset.rb#78
|
2023-06-28 12:02:16 +00:00
|
|
|
def empty?; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/iset.rb#28
|
2023-06-28 12:02:16 +00:00
|
|
|
def include?(key); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/iset.rb#68
|
2023-06-28 12:02:16 +00:00
|
|
|
def inspect; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/iset.rb#28
|
2023-06-28 12:02:16 +00:00
|
|
|
def key?(key); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute set.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/iset.rb#22
|
2023-06-28 12:02:16 +00:00
|
|
|
def set; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/iset.rb#74
|
2023-06-28 12:02:16 +00:00
|
|
|
def size; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/iset.rb#64
|
2023-06-28 12:02:16 +00:00
|
|
|
def to_a; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/iset.rb#68
|
2023-06-28 12:02:16 +00:00
|
|
|
def to_s; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/iset.rb#39
|
2023-06-28 12:02:16 +00:00
|
|
|
def update(other); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/iset.rb#49
|
2023-06-28 12:02:16 +00:00
|
|
|
def update_a(a); end
|
|
|
|
end
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# LALR item. A set of rule and its lookahead tokens.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/state.rb#787
|
2023-06-28 12:02:16 +00:00
|
|
|
class Racc::Item
|
2023-12-14 15:34:15 +00:00
|
|
|
# @return [Item] a new instance of Item
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/state.rb#788
|
2023-06-28 12:02:16 +00:00
|
|
|
def initialize(rule, la); end
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://racc//lib/racc/state.rb#796
|
2023-06-28 12:02:16 +00:00
|
|
|
def each_la(tbl); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute la.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/state.rb#794
|
2023-06-28 12:02:16 +00:00
|
|
|
def la; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute rule.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/state.rb#793
|
2023-06-28 12:02:16 +00:00
|
|
|
def rule; end
|
|
|
|
end
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# A set of rule and position in it's RHS.
|
|
|
|
# Note that the number of pointers is more than rule's RHS array,
|
|
|
|
# because pointer points right edge of the final symbol when reducing.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#812
|
2023-06-28 12:02:16 +00:00
|
|
|
class Racc::LocationPointer
|
2023-12-14 15:34:15 +00:00
|
|
|
# @return [LocationPointer] a new instance of LocationPointer
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#814
|
2023-06-28 12:02:16 +00:00
|
|
|
def initialize(rule, i, sym); end
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# @return [Boolean]
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#840
|
2023-06-28 12:02:16 +00:00
|
|
|
def ==(ot); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#856
|
2023-06-28 12:02:16 +00:00
|
|
|
def before(len); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute symbol.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#824
|
2023-06-28 12:02:16 +00:00
|
|
|
def dereference; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# @return [Boolean]
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#840
|
2023-06-28 12:02:16 +00:00
|
|
|
def eql?(ot); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute ident.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#828
|
2023-06-28 12:02:16 +00:00
|
|
|
def hash; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# @return [Boolean]
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#846
|
2023-06-28 12:02:16 +00:00
|
|
|
def head?; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute ident.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#828
|
2023-06-28 12:02:16 +00:00
|
|
|
def ident; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#850
|
2023-06-28 12:02:16 +00:00
|
|
|
def increment; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute index.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#823
|
2023-06-28 12:02:16 +00:00
|
|
|
def index; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#833
|
2023-06-28 12:02:16 +00:00
|
|
|
def inspect; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#850
|
2023-06-28 12:02:16 +00:00
|
|
|
def next; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute reduce.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#830
|
2023-06-28 12:02:16 +00:00
|
|
|
def reduce; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute reduce.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#830
|
2023-06-28 12:02:16 +00:00
|
|
|
def reduce?; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute rule.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#822
|
2023-06-28 12:02:16 +00:00
|
|
|
def rule; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute symbol.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#824
|
2023-06-28 12:02:16 +00:00
|
|
|
def symbol; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#833
|
2023-06-28 12:02:16 +00:00
|
|
|
def to_s; end
|
|
|
|
|
|
|
|
private
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://racc//lib/racc/grammar.rb#862
|
2023-06-28 12:02:16 +00:00
|
|
|
def ptr_bug!; end
|
|
|
|
end
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://racc//lib/racc/logfilegenerator.rb#15
|
2023-06-28 12:02:16 +00:00
|
|
|
class Racc::LogFileGenerator
|
2023-12-14 15:34:15 +00:00
|
|
|
# @return [LogFileGenerator] a new instance of LogFileGenerator
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/logfilegenerator.rb#17
|
2023-06-28 12:02:16 +00:00
|
|
|
def initialize(states, debug_flags = T.unsafe(nil)); end
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://racc//lib/racc/logfilegenerator.rb#92
|
2023-06-28 12:02:16 +00:00
|
|
|
def action_out(f, state); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/logfilegenerator.rb#133
|
2023-06-28 12:02:16 +00:00
|
|
|
def outact(f, t, act); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/logfilegenerator.rb#23
|
2023-06-28 12:02:16 +00:00
|
|
|
def output(out); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Warnings
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/logfilegenerator.rb#35
|
2023-06-28 12:02:16 +00:00
|
|
|
def output_conflict(out); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Rules
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/logfilegenerator.rb#170
|
2023-06-28 12:02:16 +00:00
|
|
|
def output_rule(out); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# States
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/logfilegenerator.rb#66
|
2023-06-28 12:02:16 +00:00
|
|
|
def output_state(out); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Tokens
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/logfilegenerator.rb#184
|
2023-06-28 12:02:16 +00:00
|
|
|
def output_token(out); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/logfilegenerator.rb#48
|
2023-06-28 12:02:16 +00:00
|
|
|
def output_useless(out); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/logfilegenerator.rb#158
|
2023-06-28 12:02:16 +00:00
|
|
|
def outrrconf(f, confs); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/logfilegenerator.rb#150
|
2023-06-28 12:02:16 +00:00
|
|
|
def outsrconf(f, confs); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/logfilegenerator.rb#82
|
2023-06-28 12:02:16 +00:00
|
|
|
def pointer_out(out, ptr); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/logfilegenerator.rb#206
|
2023-06-28 12:02:16 +00:00
|
|
|
def symbol_locations(locs); end
|
|
|
|
end
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://racc//lib/racc/grammar.rb#775
|
2023-06-28 12:02:16 +00:00
|
|
|
class Racc::OrMark
|
2023-12-14 15:34:15 +00:00
|
|
|
# @return [OrMark] a new instance of OrMark
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#776
|
2023-06-28 12:02:16 +00:00
|
|
|
def initialize(lineno); end
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://racc//lib/racc/grammar.rb#780
|
2023-06-28 12:02:16 +00:00
|
|
|
def inspect; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute lineno.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#786
|
2023-06-28 12:02:16 +00:00
|
|
|
def lineno; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#780
|
2023-06-28 12:02:16 +00:00
|
|
|
def name; end
|
|
|
|
end
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://racc//lib/racc/parser.rb#188
|
2023-06-28 12:02:16 +00:00
|
|
|
class Racc::Parser
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://racc//lib/racc/parser.rb#283
|
2023-06-28 12:02:16 +00:00
|
|
|
def _racc_do_parse_rb(arg, in_debug); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/parser.rb#483
|
2023-06-28 12:02:16 +00:00
|
|
|
def _racc_do_reduce(arg, act); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# common
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/parser.rb#386
|
2023-06-28 12:02:16 +00:00
|
|
|
def _racc_evalact(act, arg); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/parser.rb#236
|
2023-06-28 12:02:16 +00:00
|
|
|
def _racc_init_sysvars; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/parser.rb#224
|
2023-06-28 12:02:16 +00:00
|
|
|
def _racc_setup; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/parser.rb#333
|
2023-06-28 12:02:16 +00:00
|
|
|
def _racc_yyparse_rb(recv, mid, arg, c_debug); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/parser.rb#266
|
2023-06-28 12:02:16 +00:00
|
|
|
def do_parse; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# The method to fetch next token.
|
|
|
|
# If you use #do_parse method, you must implement #next_token.
|
|
|
|
#
|
|
|
|
# The format of return value is [TOKEN_SYMBOL, VALUE].
|
|
|
|
# +token-symbol+ is represented by Ruby's symbol by default, e.g. :IDENT
|
|
|
|
# for 'IDENT'. ";" (String) for ';'.
|
|
|
|
#
|
|
|
|
# The final symbol (End of file) must be false.
|
|
|
|
#
|
|
|
|
# @raise [NotImplementedError]
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/parser.rb#279
|
2023-06-28 12:02:16 +00:00
|
|
|
def next_token; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# This method is called when a parse error is found.
|
|
|
|
#
|
|
|
|
# ERROR_TOKEN_ID is an internal ID of token which caused error.
|
|
|
|
# You can get string representation of this ID by calling
|
|
|
|
# #token_to_str.
|
|
|
|
#
|
|
|
|
# ERROR_VALUE is a value of error token.
|
|
|
|
#
|
|
|
|
# value_stack is a stack of symbol values.
|
|
|
|
# DO NOT MODIFY this object.
|
|
|
|
#
|
|
|
|
# This method raises ParseError by default.
|
|
|
|
#
|
|
|
|
# If this method returns, parsers enter "error recovering mode".
|
|
|
|
#
|
|
|
|
# @raise [ParseError]
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/parser.rb#539
|
2023-06-28 12:02:16 +00:00
|
|
|
def on_error(t, val, vstack); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/parser.rb#588
|
2023-06-28 12:02:16 +00:00
|
|
|
def racc_accept; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/parser.rb#593
|
2023-06-28 12:02:16 +00:00
|
|
|
def racc_e_pop(state, tstack, vstack); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/parser.rb#600
|
2023-06-28 12:02:16 +00:00
|
|
|
def racc_next_state(curstate, state); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/parser.rb#606
|
2023-06-28 12:02:16 +00:00
|
|
|
def racc_print_stacks(t, v); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/parser.rb#615
|
2023-06-28 12:02:16 +00:00
|
|
|
def racc_print_states(s); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# For debugging output
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/parser.rb#562
|
2023-06-28 12:02:16 +00:00
|
|
|
def racc_read_token(t, tok, val); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/parser.rb#575
|
2023-06-28 12:02:16 +00:00
|
|
|
def racc_reduce(toks, sim, tstack, vstack); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/parser.rb#569
|
2023-06-28 12:02:16 +00:00
|
|
|
def racc_shift(tok, tstack, vstack); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/parser.rb#622
|
2023-06-28 12:02:16 +00:00
|
|
|
def racc_token2str(tok); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Convert internal ID of token symbol to the string.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/parser.rb#628
|
2023-06-28 12:02:16 +00:00
|
|
|
def token_to_str(t); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Exit parser.
|
|
|
|
# Return value is +Symbol_Value_Stack[0]+.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/parser.rb#552
|
2023-06-28 12:02:16 +00:00
|
|
|
def yyaccept; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Leave error recovering mode.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/parser.rb#557
|
2023-06-28 12:02:16 +00:00
|
|
|
def yyerrok; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Enter error recovering mode.
|
|
|
|
# This method does not call #on_error.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/parser.rb#546
|
2023-06-28 12:02:16 +00:00
|
|
|
def yyerror; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/parser.rb#328
|
2023-06-28 12:02:16 +00:00
|
|
|
def yyparse(recv, mid); end
|
|
|
|
|
|
|
|
class << self
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://racc//lib/racc/parser.rb#220
|
2023-06-28 12:02:16 +00:00
|
|
|
def racc_runtime_type; end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://racc//lib/racc/parser.rb#209
|
2023-06-28 12:02:16 +00:00
|
|
|
Racc::Parser::Racc_Main_Parsing_Routine = T.let(T.unsafe(nil), Symbol)
|
2023-12-14 15:34:15 +00:00
|
|
|
|
2023-06-28 12:02:16 +00:00
|
|
|
Racc::Parser::Racc_Runtime_Core_Id_C = T.let(T.unsafe(nil), String)
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/parser.rb#211
|
2023-06-28 12:02:16 +00:00
|
|
|
Racc::Parser::Racc_Runtime_Core_Version = T.let(T.unsafe(nil), String)
|
2023-12-14 15:34:15 +00:00
|
|
|
|
2023-06-28 12:02:16 +00:00
|
|
|
Racc::Parser::Racc_Runtime_Core_Version_C = T.let(T.unsafe(nil), String)
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/parser.rb#191
|
2023-06-28 12:02:16 +00:00
|
|
|
Racc::Parser::Racc_Runtime_Core_Version_R = T.let(T.unsafe(nil), String)
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/parser.rb#212
|
2023-06-28 12:02:16 +00:00
|
|
|
Racc::Parser::Racc_Runtime_Type = T.let(T.unsafe(nil), String)
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/parser.rb#190
|
2023-06-28 12:02:16 +00:00
|
|
|
Racc::Parser::Racc_Runtime_Version = T.let(T.unsafe(nil), String)
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/parser.rb#210
|
2023-06-28 12:02:16 +00:00
|
|
|
Racc::Parser::Racc_YY_Parse_Method = T.let(T.unsafe(nil), Symbol)
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://racc//lib/racc/statetransitiontable.rb#261
|
2023-06-28 12:02:16 +00:00
|
|
|
class Racc::ParserClassGenerator
|
2023-12-14 15:34:15 +00:00
|
|
|
# @return [ParserClassGenerator] a new instance of ParserClassGenerator
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/statetransitiontable.rb#263
|
2023-06-28 12:02:16 +00:00
|
|
|
def initialize(states); end
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://racc//lib/racc/statetransitiontable.rb#268
|
2023-06-28 12:02:16 +00:00
|
|
|
def generate; end
|
|
|
|
|
|
|
|
private
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://racc//lib/racc/statetransitiontable.rb#293
|
2023-06-28 12:02:16 +00:00
|
|
|
def define_actions(c); end
|
|
|
|
end
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://racc//lib/racc/grammar.rb#790
|
2023-06-28 12:02:16 +00:00
|
|
|
class Racc::Prec
|
2023-12-14 15:34:15 +00:00
|
|
|
# @return [Prec] a new instance of Prec
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#791
|
2023-06-28 12:02:16 +00:00
|
|
|
def initialize(symbol, lineno); end
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://racc//lib/racc/grammar.rb#796
|
2023-06-28 12:02:16 +00:00
|
|
|
def inspect; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute lineno.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#803
|
2023-06-28 12:02:16 +00:00
|
|
|
def lineno; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#796
|
2023-06-28 12:02:16 +00:00
|
|
|
def name; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute symbol.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#802
|
2023-06-28 12:02:16 +00:00
|
|
|
def symbol; end
|
|
|
|
end
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://racc//lib/racc/state.rb#953
|
2023-06-28 12:02:16 +00:00
|
|
|
class Racc::RRconflict
|
2023-12-14 15:34:15 +00:00
|
|
|
# @return [RRconflict] a new instance of RRconflict
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/state.rb#954
|
2023-06-28 12:02:16 +00:00
|
|
|
def initialize(sid, high, low, tok); end
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# Returns the value of attribute high_prec.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/state.rb#962
|
2023-06-28 12:02:16 +00:00
|
|
|
def high_prec; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute low_prec.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/state.rb#963
|
2023-06-28 12:02:16 +00:00
|
|
|
def low_prec; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute stateid.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/state.rb#961
|
2023-06-28 12:02:16 +00:00
|
|
|
def stateid; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/state.rb#966
|
2023-06-28 12:02:16 +00:00
|
|
|
def to_s; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute token.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/state.rb#964
|
2023-06-28 12:02:16 +00:00
|
|
|
def token; end
|
|
|
|
end
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://racc//lib/racc/parser.rb#185
|
|
|
|
Racc::Racc_No_Extensions = T.let(T.unsafe(nil), FalseClass)
|
|
|
|
|
|
|
|
# source://racc//lib/racc/state.rb#897
|
2023-06-28 12:02:16 +00:00
|
|
|
class Racc::Reduce
|
2023-12-14 15:34:15 +00:00
|
|
|
# @return [Reduce] a new instance of Reduce
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/state.rb#898
|
2023-06-28 12:02:16 +00:00
|
|
|
def initialize(rule); end
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://racc//lib/racc/state.rb#918
|
2023-06-28 12:02:16 +00:00
|
|
|
def decref; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/state.rb#914
|
2023-06-28 12:02:16 +00:00
|
|
|
def incref; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/state.rb#910
|
2023-06-28 12:02:16 +00:00
|
|
|
def inspect; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute refn.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/state.rb#904
|
2023-06-28 12:02:16 +00:00
|
|
|
def refn; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute rule.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/state.rb#903
|
2023-06-28 12:02:16 +00:00
|
|
|
def rule; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/state.rb#906
|
2023-06-28 12:02:16 +00:00
|
|
|
def ruleid; end
|
|
|
|
end
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://racc//lib/racc/grammar.rb#606
|
2023-06-28 12:02:16 +00:00
|
|
|
class Racc::Rule
|
2023-12-14 15:34:15 +00:00
|
|
|
# @return [Rule] a new instance of Rule
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#608
|
2023-06-28 12:02:16 +00:00
|
|
|
def initialize(target, syms, act); end
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://racc//lib/racc/grammar.rb#687
|
2023-06-28 12:02:16 +00:00
|
|
|
def ==(other); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#691
|
2023-06-28 12:02:16 +00:00
|
|
|
def [](idx); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# @return [Boolean]
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#707
|
2023-06-28 12:02:16 +00:00
|
|
|
def accept?; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute action.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#625
|
2023-06-28 12:02:16 +00:00
|
|
|
def action; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#715
|
2023-06-28 12:02:16 +00:00
|
|
|
def each(&block); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# @yield [_self]
|
|
|
|
# @yieldparam _self [Racc::Rule] the object that the method was called on
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#636
|
2023-06-28 12:02:16 +00:00
|
|
|
def each_rule(&block); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# @return [Boolean]
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#699
|
2023-06-28 12:02:16 +00:00
|
|
|
def empty?; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute hash.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#643
|
2023-06-28 12:02:16 +00:00
|
|
|
def hash; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#646
|
2023-06-28 12:02:16 +00:00
|
|
|
def hash=(n); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute ident.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#641
|
2023-06-28 12:02:16 +00:00
|
|
|
def ident; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Sets the attribute ident
|
|
|
|
#
|
|
|
|
# @param value the value to set the attribute ident to.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#641
|
2023-06-28 12:02:16 +00:00
|
|
|
def ident=(_arg0); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#683
|
2023-06-28 12:02:16 +00:00
|
|
|
def inspect; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#678
|
2023-06-28 12:02:16 +00:00
|
|
|
def null=(n); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# @return [Boolean]
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#677
|
2023-06-28 12:02:16 +00:00
|
|
|
def nullable?; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#664
|
2023-06-28 12:02:16 +00:00
|
|
|
def prec(sym, &block); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#656
|
2023-06-28 12:02:16 +00:00
|
|
|
def precedence; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#660
|
2023-06-28 12:02:16 +00:00
|
|
|
def precedence=(sym); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute ptrs.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#644
|
2023-06-28 12:02:16 +00:00
|
|
|
def ptrs; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#719
|
2023-06-28 12:02:16 +00:00
|
|
|
def replace(src, dest); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#632
|
2023-06-28 12:02:16 +00:00
|
|
|
def rule; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#695
|
2023-06-28 12:02:16 +00:00
|
|
|
def size; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute specified_prec.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#675
|
2023-06-28 12:02:16 +00:00
|
|
|
def specified_prec; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Sets the attribute specified_prec
|
|
|
|
#
|
|
|
|
# @param value the value to set the attribute specified_prec to.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#675
|
2023-06-28 12:02:16 +00:00
|
|
|
def specified_prec=(_arg0); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute symbols.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#624
|
2023-06-28 12:02:16 +00:00
|
|
|
def symbols; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute target.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#623
|
2023-06-28 12:02:16 +00:00
|
|
|
def target; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Sets the attribute target
|
|
|
|
#
|
|
|
|
# @param value the value to set the attribute target to.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#623
|
2023-06-28 12:02:16 +00:00
|
|
|
def target=(_arg0); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#703
|
2023-06-28 12:02:16 +00:00
|
|
|
def to_s; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#681
|
2023-06-28 12:02:16 +00:00
|
|
|
def useless=(u); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# @return [Boolean]
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#680
|
2023-06-28 12:02:16 +00:00
|
|
|
def useless?; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#627
|
2023-06-28 12:02:16 +00:00
|
|
|
def |(x); end
|
|
|
|
end
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://racc//lib/racc/state.rb#936
|
2023-06-28 12:02:16 +00:00
|
|
|
class Racc::SRconflict
|
2023-12-14 15:34:15 +00:00
|
|
|
# @return [SRconflict] a new instance of SRconflict
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/state.rb#937
|
2023-06-28 12:02:16 +00:00
|
|
|
def initialize(sid, shift, reduce); end
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# Returns the value of attribute reduce.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/state.rb#945
|
2023-06-28 12:02:16 +00:00
|
|
|
def reduce; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute shift.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/state.rb#944
|
2023-06-28 12:02:16 +00:00
|
|
|
def shift; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute stateid.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/state.rb#943
|
2023-06-28 12:02:16 +00:00
|
|
|
def stateid; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/state.rb#947
|
2023-06-28 12:02:16 +00:00
|
|
|
def to_s; end
|
|
|
|
end
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://racc//lib/racc/state.rb#880
|
2023-06-28 12:02:16 +00:00
|
|
|
class Racc::Shift
|
2023-12-14 15:34:15 +00:00
|
|
|
# @return [Shift] a new instance of Shift
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/state.rb#881
|
2023-06-28 12:02:16 +00:00
|
|
|
def initialize(goto); end
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://racc//lib/racc/state.rb#887
|
2023-06-28 12:02:16 +00:00
|
|
|
def goto_id; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute goto_state.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/state.rb#885
|
2023-06-28 12:02:16 +00:00
|
|
|
def goto_state; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/state.rb#891
|
2023-06-28 12:02:16 +00:00
|
|
|
def inspect; end
|
|
|
|
end
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://racc//lib/racc/sourcetext.rb#15
|
2023-06-28 12:02:16 +00:00
|
|
|
class Racc::SourceText
|
2023-12-14 15:34:15 +00:00
|
|
|
# @return [SourceText] a new instance of SourceText
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/sourcetext.rb#16
|
2023-06-28 12:02:16 +00:00
|
|
|
def initialize(text, filename, lineno); end
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# Returns the value of attribute filename.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/sourcetext.rb#23
|
2023-06-28 12:02:16 +00:00
|
|
|
def filename; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute lineno.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/sourcetext.rb#24
|
2023-06-28 12:02:16 +00:00
|
|
|
def lineno; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/sourcetext.rb#30
|
2023-06-28 12:02:16 +00:00
|
|
|
def location; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute text.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/sourcetext.rb#22
|
2023-06-28 12:02:16 +00:00
|
|
|
def text; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/sourcetext.rb#26
|
2023-06-28 12:02:16 +00:00
|
|
|
def to_s; end
|
|
|
|
end
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# A LALR state.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/state.rb#607
|
2023-06-28 12:02:16 +00:00
|
|
|
class Racc::State
|
2023-12-14 15:34:15 +00:00
|
|
|
# @return [State] a new instance of State
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/state.rb#609
|
2023-06-28 12:02:16 +00:00
|
|
|
def initialize(ident, core); end
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://racc//lib/racc/state.rb#650
|
2023-06-28 12:02:16 +00:00
|
|
|
def ==(oth); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute action.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/state.rb#638
|
2023-06-28 12:02:16 +00:00
|
|
|
def action; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/state.rb#667
|
2023-06-28 12:02:16 +00:00
|
|
|
def check_la(la_rules); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute closure.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/state.rb#629
|
2023-06-28 12:02:16 +00:00
|
|
|
def closure; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# @return [Boolean]
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/state.rb#701
|
2023-06-28 12:02:16 +00:00
|
|
|
def conflict?; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute core.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/state.rb#628
|
2023-06-28 12:02:16 +00:00
|
|
|
def core; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# default action
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/state.rb#639
|
2023-06-28 12:02:16 +00:00
|
|
|
def defact; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# default action
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/state.rb#639
|
2023-06-28 12:02:16 +00:00
|
|
|
def defact=(_arg0); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/state.rb#650
|
2023-06-28 12:02:16 +00:00
|
|
|
def eql?(oth); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute goto_table.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/state.rb#631
|
2023-06-28 12:02:16 +00:00
|
|
|
def goto_table; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute gotos.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/state.rb#632
|
2023-06-28 12:02:16 +00:00
|
|
|
def gotos; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute ident.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/state.rb#624
|
2023-06-28 12:02:16 +00:00
|
|
|
def hash; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute ident.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/state.rb#624
|
2023-06-28 12:02:16 +00:00
|
|
|
def ident; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/state.rb#644
|
2023-06-28 12:02:16 +00:00
|
|
|
def inspect; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/state.rb#718
|
2023-06-28 12:02:16 +00:00
|
|
|
def la=(la); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/state.rb#656
|
2023-06-28 12:02:16 +00:00
|
|
|
def make_closure(core); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/state.rb#754
|
2023-06-28 12:02:16 +00:00
|
|
|
def n_rrconflicts; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/state.rb#750
|
2023-06-28 12:02:16 +00:00
|
|
|
def n_srconflicts; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute ritems.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/state.rb#635
|
2023-06-28 12:02:16 +00:00
|
|
|
def ritems; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/state.rb#728
|
2023-06-28 12:02:16 +00:00
|
|
|
def rr_conflict(high, low, ctok); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute rrconf.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/state.rb#641
|
2023-06-28 12:02:16 +00:00
|
|
|
def rrconf; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/state.rb#705
|
2023-06-28 12:02:16 +00:00
|
|
|
def rruleid(rule); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute rrules.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/state.rb#636
|
2023-06-28 12:02:16 +00:00
|
|
|
def rrules; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/state.rb#739
|
2023-06-28 12:02:16 +00:00
|
|
|
def sr_conflict(shift, reduce); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute srconf.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/state.rb#642
|
2023-06-28 12:02:16 +00:00
|
|
|
def srconf; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute ident.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/state.rb#624
|
2023-06-28 12:02:16 +00:00
|
|
|
def stateid; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute stokens.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/state.rb#634
|
2023-06-28 12:02:16 +00:00
|
|
|
def stokens; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/state.rb#644
|
2023-06-28 12:02:16 +00:00
|
|
|
def to_s; end
|
|
|
|
end
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# reopen
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/statetransitiontable.rb#17
|
2023-06-28 12:02:16 +00:00
|
|
|
class Racc::StateTransitionTable < ::Struct
|
2023-12-14 15:34:15 +00:00
|
|
|
# @return [StateTransitionTable] a new instance of StateTransitionTable
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/statetransitiontable.rb#38
|
2023-06-28 12:02:16 +00:00
|
|
|
def initialize(states); end
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# Returns the value of attribute action_check
|
|
|
|
#
|
|
|
|
# @return [Object] the current value of action_check
|
2023-06-28 12:02:16 +00:00
|
|
|
def action_check; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Sets the attribute action_check
|
|
|
|
#
|
|
|
|
# @param value [Object] the value to set the attribute action_check to.
|
|
|
|
# @return [Object] the newly set value
|
2023-06-28 12:02:16 +00:00
|
|
|
def action_check=(_); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute action_default
|
|
|
|
#
|
|
|
|
# @return [Object] the current value of action_default
|
2023-06-28 12:02:16 +00:00
|
|
|
def action_default; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Sets the attribute action_default
|
|
|
|
#
|
|
|
|
# @param value [Object] the value to set the attribute action_default to.
|
|
|
|
# @return [Object] the newly set value
|
2023-06-28 12:02:16 +00:00
|
|
|
def action_default=(_); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute action_pointer
|
|
|
|
#
|
|
|
|
# @return [Object] the current value of action_pointer
|
2023-06-28 12:02:16 +00:00
|
|
|
def action_pointer; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Sets the attribute action_pointer
|
|
|
|
#
|
|
|
|
# @param value [Object] the value to set the attribute action_pointer to.
|
|
|
|
# @return [Object] the newly set value
|
2023-06-28 12:02:16 +00:00
|
|
|
def action_pointer=(_); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute action_table
|
|
|
|
#
|
|
|
|
# @return [Object] the current value of action_table
|
2023-06-28 12:02:16 +00:00
|
|
|
def action_table; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Sets the attribute action_table
|
|
|
|
#
|
|
|
|
# @param value [Object] the value to set the attribute action_table to.
|
|
|
|
# @return [Object] the newly set value
|
2023-06-28 12:02:16 +00:00
|
|
|
def action_table=(_); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute debug_parser
|
|
|
|
#
|
|
|
|
# @return [Object] the current value of debug_parser
|
2023-06-28 12:02:16 +00:00
|
|
|
def debug_parser; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Sets the attribute debug_parser
|
|
|
|
#
|
|
|
|
# @param value [Object] the value to set the attribute debug_parser to.
|
|
|
|
# @return [Object] the newly set value
|
2023-06-28 12:02:16 +00:00
|
|
|
def debug_parser=(_); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute goto_check
|
|
|
|
#
|
|
|
|
# @return [Object] the current value of goto_check
|
2023-06-28 12:02:16 +00:00
|
|
|
def goto_check; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Sets the attribute goto_check
|
|
|
|
#
|
|
|
|
# @param value [Object] the value to set the attribute goto_check to.
|
|
|
|
# @return [Object] the newly set value
|
2023-06-28 12:02:16 +00:00
|
|
|
def goto_check=(_); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute goto_default
|
|
|
|
#
|
|
|
|
# @return [Object] the current value of goto_default
|
2023-06-28 12:02:16 +00:00
|
|
|
def goto_default; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Sets the attribute goto_default
|
|
|
|
#
|
|
|
|
# @param value [Object] the value to set the attribute goto_default to.
|
|
|
|
# @return [Object] the newly set value
|
2023-06-28 12:02:16 +00:00
|
|
|
def goto_default=(_); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute goto_pointer
|
|
|
|
#
|
|
|
|
# @return [Object] the current value of goto_pointer
|
2023-06-28 12:02:16 +00:00
|
|
|
def goto_pointer; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Sets the attribute goto_pointer
|
|
|
|
#
|
|
|
|
# @param value [Object] the value to set the attribute goto_pointer to.
|
|
|
|
# @return [Object] the newly set value
|
2023-06-28 12:02:16 +00:00
|
|
|
def goto_pointer=(_); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute goto_table
|
|
|
|
#
|
|
|
|
# @return [Object] the current value of goto_table
|
2023-06-28 12:02:16 +00:00
|
|
|
def goto_table; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Sets the attribute goto_table
|
|
|
|
#
|
|
|
|
# @param value [Object] the value to set the attribute goto_table to.
|
|
|
|
# @return [Object] the newly set value
|
2023-06-28 12:02:16 +00:00
|
|
|
def goto_table=(_); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute grammar.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/statetransitiontable.rb#47
|
2023-06-28 12:02:16 +00:00
|
|
|
def grammar; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute nt_base
|
|
|
|
#
|
|
|
|
# @return [Object] the current value of nt_base
|
2023-06-28 12:02:16 +00:00
|
|
|
def nt_base; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Sets the attribute nt_base
|
|
|
|
#
|
|
|
|
# @param value [Object] the value to set the attribute nt_base to.
|
|
|
|
# @return [Object] the newly set value
|
2023-06-28 12:02:16 +00:00
|
|
|
def nt_base=(_); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/statetransitiontable.rb#49
|
2023-06-28 12:02:16 +00:00
|
|
|
def parser_class; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute reduce_n
|
|
|
|
#
|
|
|
|
# @return [Object] the current value of reduce_n
|
2023-06-28 12:02:16 +00:00
|
|
|
def reduce_n; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Sets the attribute reduce_n
|
|
|
|
#
|
|
|
|
# @param value [Object] the value to set the attribute reduce_n to.
|
|
|
|
# @return [Object] the newly set value
|
2023-06-28 12:02:16 +00:00
|
|
|
def reduce_n=(_); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute reduce_table
|
|
|
|
#
|
|
|
|
# @return [Object] the current value of reduce_table
|
2023-06-28 12:02:16 +00:00
|
|
|
def reduce_table; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Sets the attribute reduce_table
|
|
|
|
#
|
|
|
|
# @param value [Object] the value to set the attribute reduce_table to.
|
|
|
|
# @return [Object] the newly set value
|
2023-06-28 12:02:16 +00:00
|
|
|
def reduce_table=(_); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute shift_n
|
|
|
|
#
|
|
|
|
# @return [Object] the current value of shift_n
|
2023-06-28 12:02:16 +00:00
|
|
|
def shift_n; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Sets the attribute shift_n
|
|
|
|
#
|
|
|
|
# @param value [Object] the value to set the attribute shift_n to.
|
|
|
|
# @return [Object] the newly set value
|
2023-06-28 12:02:16 +00:00
|
|
|
def shift_n=(_); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute states.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/statetransitiontable.rb#46
|
2023-06-28 12:02:16 +00:00
|
|
|
def states; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute token_table
|
|
|
|
#
|
|
|
|
# @return [Object] the current value of token_table
|
2023-06-28 12:02:16 +00:00
|
|
|
def token_table; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Sets the attribute token_table
|
|
|
|
#
|
|
|
|
# @param value [Object] the value to set the attribute token_table to.
|
|
|
|
# @return [Object] the newly set value
|
2023-06-28 12:02:16 +00:00
|
|
|
def token_table=(_); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute token_to_s_table
|
|
|
|
#
|
|
|
|
# @return [Object] the current value of token_to_s_table
|
2023-06-28 12:02:16 +00:00
|
|
|
def token_to_s_table; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Sets the attribute token_to_s_table
|
|
|
|
#
|
|
|
|
# @param value [Object] the value to set the attribute token_to_s_table to.
|
|
|
|
# @return [Object] the newly set value
|
2023-06-28 12:02:16 +00:00
|
|
|
def token_to_s_table=(_); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/statetransitiontable.rb#53
|
2023-06-28 12:02:16 +00:00
|
|
|
def token_value_table; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute use_result_var
|
|
|
|
#
|
|
|
|
# @return [Object] the current value of use_result_var
|
2023-06-28 12:02:16 +00:00
|
|
|
def use_result_var; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Sets the attribute use_result_var
|
|
|
|
#
|
|
|
|
# @param value [Object] the value to set the attribute use_result_var to.
|
|
|
|
# @return [Object] the newly set value
|
2023-06-28 12:02:16 +00:00
|
|
|
def use_result_var=(_); end
|
|
|
|
|
|
|
|
class << self
|
|
|
|
def [](*_arg0); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/statetransitiontable.rb#34
|
2023-06-28 12:02:16 +00:00
|
|
|
def generate(states); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
2023-06-28 12:02:16 +00:00
|
|
|
def inspect; end
|
2023-12-14 15:34:15 +00:00
|
|
|
def keyword_init?; end
|
2023-06-28 12:02:16 +00:00
|
|
|
def members; end
|
|
|
|
def new(*_arg0); end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://racc//lib/racc/statetransitiontable.rb#63
|
2023-06-28 12:02:16 +00:00
|
|
|
class Racc::StateTransitionTableGenerator
|
2023-12-14 15:34:15 +00:00
|
|
|
# @return [StateTransitionTableGenerator] a new instance of StateTransitionTableGenerator
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/statetransitiontable.rb#65
|
2023-06-28 12:02:16 +00:00
|
|
|
def initialize(states); end
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://racc//lib/racc/statetransitiontable.rb#247
|
2023-06-28 12:02:16 +00:00
|
|
|
def act2actid(act); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/statetransitiontable.rb#169
|
2023-06-28 12:02:16 +00:00
|
|
|
def addent(all, arr, chkval, ptr); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/statetransitiontable.rb#105
|
2023-06-28 12:02:16 +00:00
|
|
|
def gen_action_tables(t, states); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/statetransitiontable.rb#127
|
2023-06-28 12:02:16 +00:00
|
|
|
def gen_goto_tables(t, grammar); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/statetransitiontable.rb#70
|
2023-06-28 12:02:16 +00:00
|
|
|
def generate; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/statetransitiontable.rb#191
|
2023-06-28 12:02:16 +00:00
|
|
|
def mkmapexp(arr); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/statetransitiontable.rb#83
|
2023-06-28 12:02:16 +00:00
|
|
|
def reduce_table(grammar); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/statetransitiontable.rb#222
|
2023-06-28 12:02:16 +00:00
|
|
|
def set_table(entries, dummy, tbl, chk, ptr); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/statetransitiontable.rb#97
|
2023-06-28 12:02:16 +00:00
|
|
|
def token_table(grammar); end
|
|
|
|
end
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://racc//lib/racc/statetransitiontable.rb#185
|
2023-06-28 12:02:16 +00:00
|
|
|
Racc::StateTransitionTableGenerator::RE_DUP_MAX = T.let(T.unsafe(nil), Integer)
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# A table of LALR states.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/state.rb#21
|
2023-06-28 12:02:16 +00:00
|
|
|
class Racc::States
|
|
|
|
include ::Enumerable
|
|
|
|
extend ::Forwardable
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# @return [States] a new instance of States
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/state.rb#25
|
2023-06-28 12:02:16 +00:00
|
|
|
def initialize(grammar, debug_flags = T.unsafe(nil)); end
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://racc//lib/racc/state.rb#51
|
2023-06-28 12:02:16 +00:00
|
|
|
def [](i); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute actions.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/state.rb#39
|
2023-06-28 12:02:16 +00:00
|
|
|
def actions; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/state.rb#196
|
2023-06-28 12:02:16 +00:00
|
|
|
def dfa; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/state.rb#55
|
2023-06-28 12:02:16 +00:00
|
|
|
def each(&block); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/state.rb#61
|
2023-06-28 12:02:16 +00:00
|
|
|
def each_index(&block); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/state.rb#55
|
2023-06-28 12:02:16 +00:00
|
|
|
def each_state(&block); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute grammar.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/state.rb#38
|
2023-06-28 12:02:16 +00:00
|
|
|
def grammar; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/state.rb#45
|
2023-06-28 12:02:16 +00:00
|
|
|
def inspect; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/state.rb#88
|
2023-06-28 12:02:16 +00:00
|
|
|
def n_rrconflicts; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/state.rb#80
|
2023-06-28 12:02:16 +00:00
|
|
|
def n_srconflicts; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/state.rb#102
|
2023-06-28 12:02:16 +00:00
|
|
|
def nfa; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://forwardable/1.3.2/forwardable.rb#229
|
|
|
|
def nt_base(*args, **_arg1, &block); end
|
|
|
|
|
|
|
|
# source://forwardable/1.3.2/forwardable.rb#229
|
|
|
|
def reduce_n(*args, **_arg1, &block); end
|
|
|
|
|
|
|
|
# @return [Boolean]
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/state.rb#84
|
2023-06-28 12:02:16 +00:00
|
|
|
def rrconflict_exist?; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://forwardable/1.3.2/forwardable.rb#229
|
|
|
|
def shift_n(*args, **_arg1, &block); end
|
|
|
|
|
|
|
|
# @return [Boolean]
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/state.rb#71
|
2023-06-28 12:02:16 +00:00
|
|
|
def should_report_srconflict?; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/state.rb#41
|
2023-06-28 12:02:16 +00:00
|
|
|
def size; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# @return [Boolean]
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/state.rb#76
|
2023-06-28 12:02:16 +00:00
|
|
|
def srconflict_exist?; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/state.rb#92
|
2023-06-28 12:02:16 +00:00
|
|
|
def state_transition_table; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/state.rb#45
|
2023-06-28 12:02:16 +00:00
|
|
|
def to_s; end
|
|
|
|
|
|
|
|
private
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://racc//lib/racc/state.rb#317
|
2023-06-28 12:02:16 +00:00
|
|
|
def addrel(tbl, i, item); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/state.rb#154
|
2023-06-28 12:02:16 +00:00
|
|
|
def addsym(table, sym, ptr); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/state.rb#586
|
2023-06-28 12:02:16 +00:00
|
|
|
def check_useless; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/state.rb#206
|
2023-06-28 12:02:16 +00:00
|
|
|
def compute_dfa; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/state.rb#111
|
2023-06-28 12:02:16 +00:00
|
|
|
def compute_nfa; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/state.rb#161
|
2023-06-28 12:02:16 +00:00
|
|
|
def core_to_state(core); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/state.rb#313
|
2023-06-28 12:02:16 +00:00
|
|
|
def create_tmap(size); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/state.rb#348
|
2023-06-28 12:02:16 +00:00
|
|
|
def digraph(map, relation); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/state.rb#523
|
2023-06-28 12:02:16 +00:00
|
|
|
def do_resolve_sr(stok, rtok); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/state.rb#422
|
2023-06-28 12:02:16 +00:00
|
|
|
def each_t(tbl, set); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/state.rb#186
|
2023-06-28 12:02:16 +00:00
|
|
|
def fingerprint(arr); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/state.rb#125
|
2023-06-28 12:02:16 +00:00
|
|
|
def generate_states(state); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/state.rb#219
|
2023-06-28 12:02:16 +00:00
|
|
|
def lookahead; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/state.rb#564
|
2023-06-28 12:02:16 +00:00
|
|
|
def pack(state); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# for debug
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/state.rb#390
|
2023-06-28 12:02:16 +00:00
|
|
|
def print_atab(idx, tab); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/state.rb#397
|
2023-06-28 12:02:16 +00:00
|
|
|
def print_tab(idx, rel, tab); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# for debug
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/state.rb#407
|
2023-06-28 12:02:16 +00:00
|
|
|
def print_tab_i(idx, rel, tab, i); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# for debug
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/state.rb#415
|
2023-06-28 12:02:16 +00:00
|
|
|
def printb(i); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/state.rb#325
|
2023-06-28 12:02:16 +00:00
|
|
|
def record_path(begst, rule); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# resolve
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/state.rb#436
|
2023-06-28 12:02:16 +00:00
|
|
|
def resolve(state); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/state.rb#453
|
2023-06-28 12:02:16 +00:00
|
|
|
def resolve_rr(state, r); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/state.rb#472
|
2023-06-28 12:02:16 +00:00
|
|
|
def resolve_sr(state, s); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# complete
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/state.rb#553
|
2023-06-28 12:02:16 +00:00
|
|
|
def set_accept; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/state.rb#336
|
2023-06-28 12:02:16 +00:00
|
|
|
def transpose(rel); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/state.rb#361
|
2023-06-28 12:02:16 +00:00
|
|
|
def traverse(i, index, vertices, map, relation); end
|
|
|
|
end
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://racc//lib/racc/state.rb#517
|
2023-06-28 12:02:16 +00:00
|
|
|
Racc::States::ASSOC = T.let(T.unsafe(nil), Hash)
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# Stands terminal and nonterminal symbols.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#972
|
2023-06-28 12:02:16 +00:00
|
|
|
class Racc::Sym
|
2023-12-14 15:34:15 +00:00
|
|
|
# @return [Sym] a new instance of Sym
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#974
|
2023-06-28 12:02:16 +00:00
|
|
|
def initialize(value, dummyp); end
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# Returns the value of attribute assoc.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#1064
|
2023-06-28 12:02:16 +00:00
|
|
|
def assoc; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Sets the attribute assoc
|
|
|
|
#
|
|
|
|
# @param value the value to set the attribute assoc to.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#1064
|
2023-06-28 12:02:16 +00:00
|
|
|
def assoc=(_arg0); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# @return [Boolean]
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#1027
|
2023-06-28 12:02:16 +00:00
|
|
|
def dummy?; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute expand.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#1101
|
2023-06-28 12:02:16 +00:00
|
|
|
def expand; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
2023-06-28 12:02:16 +00:00
|
|
|
def expand=(v); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute ident.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#1021
|
2023-06-28 12:02:16 +00:00
|
|
|
def hash; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# cache
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#1084
|
2023-06-28 12:02:16 +00:00
|
|
|
def heads; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute ident.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#1021
|
2023-06-28 12:02:16 +00:00
|
|
|
def ident; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
2023-06-28 12:02:16 +00:00
|
|
|
def ident=(v); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#1066
|
2023-06-28 12:02:16 +00:00
|
|
|
def inspect; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute locate.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#1085
|
2023-06-28 12:02:16 +00:00
|
|
|
def locate; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# @return [Boolean]
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#1035
|
2023-06-28 12:02:16 +00:00
|
|
|
def nonterminal?; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#1097
|
2023-06-28 12:02:16 +00:00
|
|
|
def null=(n); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# @return [Boolean]
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#1093
|
2023-06-28 12:02:16 +00:00
|
|
|
def nullable?; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute precedence.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#1063
|
2023-06-28 12:02:16 +00:00
|
|
|
def precedence; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Sets the attribute precedence
|
|
|
|
#
|
|
|
|
# @param value the value to set the attribute precedence to.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#1063
|
2023-06-28 12:02:16 +00:00
|
|
|
def precedence=(_arg0); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#1076
|
2023-06-28 12:02:16 +00:00
|
|
|
def rule; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# @return [Boolean]
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#1087
|
2023-06-28 12:02:16 +00:00
|
|
|
def self_null?; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#1057
|
2023-06-28 12:02:16 +00:00
|
|
|
def serialize; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Sets the attribute serialized
|
|
|
|
#
|
|
|
|
# @param value the value to set the attribute serialized to.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#1061
|
2023-06-28 12:02:16 +00:00
|
|
|
def serialized=(_arg0); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#1045
|
2023-06-28 12:02:16 +00:00
|
|
|
def should_terminal; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# @return [Boolean]
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#1049
|
2023-06-28 12:02:16 +00:00
|
|
|
def should_terminal?; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
2023-06-28 12:02:16 +00:00
|
|
|
def snull=(v); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# @return [Boolean]
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#1053
|
2023-06-28 12:02:16 +00:00
|
|
|
def string_symbol?; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#1039
|
2023-06-28 12:02:16 +00:00
|
|
|
def term=(t); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# @return [Boolean]
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#1031
|
2023-06-28 12:02:16 +00:00
|
|
|
def terminal?; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#1066
|
2023-06-28 12:02:16 +00:00
|
|
|
def to_s; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#1108
|
2023-06-28 12:02:16 +00:00
|
|
|
def useless=(f); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# @return [Boolean]
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#1104
|
2023-06-28 12:02:16 +00:00
|
|
|
def useless?; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute value.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#1025
|
2023-06-28 12:02:16 +00:00
|
|
|
def value; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#1072
|
2023-06-28 12:02:16 +00:00
|
|
|
def |(x); end
|
|
|
|
|
|
|
|
class << self
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://racc//lib/racc/grammar.rb#1009
|
2023-06-28 12:02:16 +00:00
|
|
|
def once_writer(nm); end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://racc//lib/racc/grammar.rb#869
|
2023-06-28 12:02:16 +00:00
|
|
|
class Racc::SymbolTable
|
|
|
|
include ::Enumerable
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# @return [SymbolTable] a new instance of SymbolTable
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#873
|
2023-06-28 12:02:16 +00:00
|
|
|
def initialize; end
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://racc//lib/racc/grammar.rb#885
|
2023-06-28 12:02:16 +00:00
|
|
|
def [](id); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute anchor.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#882
|
2023-06-28 12:02:16 +00:00
|
|
|
def anchor; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#901
|
2023-06-28 12:02:16 +00:00
|
|
|
def delete(sym); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute dummy.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#881
|
2023-06-28 12:02:16 +00:00
|
|
|
def dummy; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#912
|
2023-06-28 12:02:16 +00:00
|
|
|
def each(&block); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#928
|
2023-06-28 12:02:16 +00:00
|
|
|
def each_nonterminal(&block); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#920
|
2023-06-28 12:02:16 +00:00
|
|
|
def each_terminal(&block); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute error.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#883
|
2023-06-28 12:02:16 +00:00
|
|
|
def error; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#932
|
2023-06-28 12:02:16 +00:00
|
|
|
def fix; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#889
|
2023-06-28 12:02:16 +00:00
|
|
|
def intern(val, dummy = T.unsafe(nil)); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#924
|
2023-06-28 12:02:16 +00:00
|
|
|
def nonterminals; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute nt_base.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#906
|
2023-06-28 12:02:16 +00:00
|
|
|
def nt_base; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#908
|
2023-06-28 12:02:16 +00:00
|
|
|
def nt_max; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute symbols.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#898
|
2023-06-28 12:02:16 +00:00
|
|
|
def symbols; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#916
|
2023-06-28 12:02:16 +00:00
|
|
|
def terminals(&block); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute symbols.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#898
|
2023-06-28 12:02:16 +00:00
|
|
|
def to_a; end
|
|
|
|
|
|
|
|
private
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://racc//lib/racc/grammar.rb#950
|
2023-06-28 12:02:16 +00:00
|
|
|
def check_terminals; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#944
|
2023-06-28 12:02:16 +00:00
|
|
|
def fix_ident; end
|
|
|
|
end
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://racc//lib/racc/grammar.rb#727
|
2023-06-28 12:02:16 +00:00
|
|
|
class Racc::UserAction
|
2023-12-14 15:34:15 +00:00
|
|
|
# @return [UserAction] a new instance of UserAction
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#746
|
2023-06-28 12:02:16 +00:00
|
|
|
def initialize(src, proc); end
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# @return [Boolean]
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#762
|
2023-06-28 12:02:16 +00:00
|
|
|
def empty?; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#766
|
2023-06-28 12:02:16 +00:00
|
|
|
def inspect; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#766
|
2023-06-28 12:02:16 +00:00
|
|
|
def name; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute proc.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#752
|
2023-06-28 12:02:16 +00:00
|
|
|
def proc; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# @return [Boolean]
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#758
|
2023-06-28 12:02:16 +00:00
|
|
|
def proc?; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# Returns the value of attribute source.
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#751
|
2023-06-28 12:02:16 +00:00
|
|
|
def source; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# @return [Boolean]
|
|
|
|
#
|
|
|
|
# source://racc//lib/racc/grammar.rb#754
|
2023-06-28 12:02:16 +00:00
|
|
|
def source?; end
|
|
|
|
|
|
|
|
class << self
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://racc//lib/racc/grammar.rb#740
|
2023-06-28 12:02:16 +00:00
|
|
|
def empty; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#733
|
2023-06-28 12:02:16 +00:00
|
|
|
def proc(pr = T.unsafe(nil), &block); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/grammar.rb#729
|
2023-06-28 12:02:16 +00:00
|
|
|
def source_text(src); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def new(*_arg0); end
|
2023-06-28 12:02:16 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://racc//lib/racc/info.rb#15
|
2023-06-28 12:02:16 +00:00
|
|
|
Racc::VERSION = T.let(T.unsafe(nil), String)
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://racc//lib/racc/info.rb#16
|
2023-06-28 12:02:16 +00:00
|
|
|
Racc::Version = T.let(T.unsafe(nil), String)
|