eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'Variable':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: Variable


Inheritance:

   Object
   |
   +--Variable
      |
      +--JavaScriptVariable

Package:
stx:libcomp
Category:
System-Compiler-Support
Version:
rev: 1.24 date: 2018/08/27 11:40:44
user: cg
file: Variable.st directory: libcomp
module: stx stc-classLibrary: libcomp
Author:
Claus Gittinger

Description:


node for parse-trees, representing variables
This is a helper class for the compiler.


Class protocol:

instance creation
o  name: name
return a new node for a variable named name

o  type: type name: name


Instance protocol:

accessing
o  classHint

o  classHint: something

o  name
return the name of the variable

o  name: nameString
set the name of the variable

o  type: typeSymbol name: nameString
self assert:nameString notNil.

o  used
return the flag marking that this variable has been used

o  used: aBoolean
set/clear the flag marking that this variable has been used

o  value
return the value of the variable

o  value: v
set the value of the (simulated) variable

o  variableValue
return the value of the variable

enumerating
o  nodeDo: anEnumerator
helper for parse tree walking

printing & storing
o  printOn: aStream

special
o  domain

o  domain: aDomain

o  expressionForSetup
finite domain setup

o  type



ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Fri, 19 Apr 2024 20:40:25 GMT