Class
Attributes
Read
No documentation available
Read
No documentation available
Class Methods
::
lib/racc/state.rb
View on GitHub
# File tmp/rubies/ruby-3.1.3/lib/racc/state.rb, line 898
def initialize(rule)
@rule = rule
@refn = 0
end
No documentation available
Instance Methods
#
lib/racc/state.rb
View on GitHub
# File tmp/rubies/ruby-3.1.3/lib/racc/state.rb, line 918
def decref
@refn -= 1
raise 'racc: fatal: act.refn < 0' if @refn < 0
end
No documentation available
#
lib/racc/state.rb
View on GitHub
# File tmp/rubies/ruby-3.1.3/lib/racc/state.rb, line 914
def incref
@refn += 1
end
No documentation available
#
lib/racc/state.rb
View on GitHub
# File tmp/rubies/ruby-3.1.3/lib/racc/state.rb, line 910
def inspect
"<reduce #{@rule.ident}>"
end
No documentation available
#
lib/racc/state.rb
View on GitHub
# File tmp/rubies/ruby-3.1.3/lib/racc/state.rb, line 906
def ruleid
@rule.ident
end
No documentation available