Class: Juli::LineAbsyn::Macro

Inherits:
Node
  • Object
show all
Defined in:
lib/juli/line_parser.tab.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, rest) ⇒ Macro

Returns a new instance of Macro.



43
44
45
46
# File 'lib/juli/line_parser.tab.rb', line 43

def initialize(name, rest)
  @name = name
  @rest = rest
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



41
42
43
# File 'lib/juli/line_parser.tab.rb', line 41

def name
  @name
end

#restObject

Returns the value of attribute rest.



41
42
43
# File 'lib/juli/line_parser.tab.rb', line 41

def rest
  @rest
end

Instance Method Details

#accept(visitor) ⇒ Object



48
49
50
# File 'lib/juli/line_parser.tab.rb', line 48

def accept(visitor)
  visitor.visit_macro(self)
end