Class: RedParse::GoalPostToken

Inherits:
Token
  • Object
show all
Defined in:
lib/redparse/node.rb,
lib/redparse/ReduceWithsFor_RedParse_1_9.rb,
lib/redparse/ReduceWithsFor_RedParse_1_8.rb

Overview

not to appear in final tree

Instance Attribute Summary collapse

Attributes included from Stackable::Meta

#boolean_identity_params, #identity_params

Instance Method Summary collapse

Methods inherited from Token

#begin_parsetree, #data, #lvalue, #rescue_parsetree, #short_inspect, #to_parsetree, #unary

Methods included from Stackable::Meta

#build_exemplars, #enumerate_exemplars, #identity_param

Methods included from Stackable

#identity_name

Constructor Details

#initialize(offset) ⇒ GoalPostToken

Returns a new instance of GoalPostToken.



5371
# File 'lib/redparse/node.rb', line 5371

def initialize(offset); @offset=offset end

Instance Attribute Details

#offsetObject (readonly)

Returns the value of attribute offset.



5373
5374
5375
# File 'lib/redparse/node.rb', line 5373

def offset
  @offset
end

Instance Method Details

#identObject



5372
# File 'lib/redparse/node.rb', line 5372

def ident; "|" end

#imageObject



5375
# File 'lib/redparse/node.rb', line 5375

def image; "|" end

#reducer_identObject



17160
17161
17162
# File 'lib/redparse/ReduceWithsFor_RedParse_1_9.rb', line 17160

def reducer_ident
  :GoalPostToken
end

#reducer_method(stack) ⇒ Object



17157
17158
17159
# File 'lib/redparse/ReduceWithsFor_RedParse_1_9.rb', line 17157

def reducer_method(stack)
  :reduce_with_tos_GoalPostToken
end