Squeak Class Documentation category index | class index  
 
LiteralNode
  category: System-Compiler
  superclass: LeafNode
  subclasses:

I am a parse tree leaf representing a literal string or number.

instance methods
  C translation
  asTranslatorNode

  code generation
  emitForValue:on:

  evaluation
  eval

  printing
  printOn:indent:

  testing
  isConstantNumber
isLiteral
isSpecialConstant
literalValue

  tiles
  asMorphicSyntaxIn:
explanation

class methods
  no messages
 

instance methods
  C translation top  
 

asTranslatorNode


  code generation top  
 

emitForValue:on:


  evaluation top  
 

eval

When everything in me is a constant, I can produce a value. This is only used by the Scripting system (TilePadMorph tilesFrom:in:)


  printing top  
 

printOn:indent:

If control gets here, avoid recursion loop.


  testing top  
 

isConstantNumber

Overridden in LiteralNode


 

isLiteral

Answer whether the receiver has a literal text form recognized by the
compiler.


 

isSpecialConstant


 

literalValue


  tiles top  
 

asMorphicSyntaxIn:

Default for missing implementations


 

explanation


class methods
  no messages top