Class: RedParse::Token
Instance Attribute Summary
#boolean_identity_params, #identity_params
Instance Method Summary
collapse
build_exemplars, enumerate_exemplars, identity_param
Methods included from Stackable
#identity_name
Instance Method Details
#begin_parsetree(o) ⇒ Object
187
|
# File 'lib/redparse/node.rb', line 187
def begin_parsetree(o); parsetree(o) end
|
#data ⇒ Object
184
|
# File 'lib/redparse/node.rb', line 184
def data; [self] end
|
#image ⇒ Object
167
|
# File 'lib/redparse/node.rb', line 167
def image; "#{inspect}" end
|
#lvalue ⇒ Object
183
|
# File 'lib/redparse/node.rb', line 183
def lvalue; nil end
|
#rescue_parsetree(o) ⇒ Object
186
|
# File 'lib/redparse/node.rb', line 186
def rescue_parsetree(o); parsetree(o) end
|
#short_inspect ⇒ Object
169
|
# File 'lib/redparse/node.rb', line 169
def short_inspect; inspect+"\n" end
|
#to_parsetree(*options) ⇒ Object
this shouldn’t be needed anymore
171
172
173
174
175
176
177
178
179
180
181
182
|
# File 'lib/redparse/node.rb', line 171
def to_parsetree(*options)
o={}
[:newlines,:quirks,:ruby187].each{|opt|
o[opt]=true if options.include? opt
}
result=[parsetree(o)]
result=[] if result==[[]]
return result
end
|
#unary ⇒ Object
185
|
# File 'lib/redparse/node.rb', line 185
def unary; false end
|