Class: Falluto::VarDeclNode

Inherits:
Treetop::Runtime::SyntaxNode
  • Object
show all
Defined in:
lib/falluto/grammar/nodes.rb

Instance Method Summary collapse

Instance Method Details

#nameObject



127
128
129
# File 'lib/falluto/grammar/nodes.rb', line 127

def name
  decl_var_id.stripped
end

#vartypeObject



131
132
133
134
135
136
137
# File 'lib/falluto/grammar/nodes.rb', line 131

def vartype
  begin
    t = type.module_type.name.stripped
  rescue NoMethodError
    t = type.stripped
  end
end