Class: RedParse::StartToken

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

Attributes included from RedParse::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 RedParse::Stackable::Meta

#build_exemplars, #enumerate_exemplars, #identity_param

Methods included from Stackable

#identity_name

Constructor Details

#initializeStartToken

Returns a new instance of StartToken.



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

def initialize; end

Instance Method Details

#imageObject Also known as: to_s



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

def image; "(START)" end

#reducer_identObject



17280
17281
17282
# File 'lib/redparse/ReduceWithsFor_RedParse_1_9.rb', line 17280

def reducer_ident
  :StartToken
end

#reducer_method(stack) ⇒ Object



17277
17278
17279
# File 'lib/redparse/ReduceWithsFor_RedParse_1_9.rb', line 17277

def reducer_method(stack)
  :reduce_with_tos_StartToken
end