Class: Walrus::Grammar::Comment

Inherits:
Walrat::Node
  • Object
show all
Defined in:
lib/walrus/grammar/comment.rb

Direct Known Subclasses

MultilineComment

Instance Method Summary collapse

Instance Method Details

#compile(options = {}) ⇒ Object



28
29
30
# File 'lib/walrus/grammar/comment.rb', line 28

def compile options = {}
  '# Comment:' + @lexeme.to_s + "\n"
end