Class: Crokus::StrLit

Inherits:
Literal show all
Defined in:
lib/crokus/ast.rb

Instance Attribute Summary

Attributes inherited from Literal

#tok

Class Method Summary collapse

Methods inherited from Literal

#initialize, #to_s

Methods inherited from Ast

#accept, #str

Constructor Details

This class inherits a constructor from Crokus::Literal

Class Method Details

.create(str) ⇒ Object



446
447
448
# File 'lib/crokus/ast.rb', line 446

def self.create str
  StrLit.new( Token.new [:string_lit,"\"#{str}\"",[0,0]] )
end