|
Class: Variable
Object
|
+--Variable
|
+--JavaScriptVariable
- Package:
- stx:libcomp
- Category:
- System-Compiler-Support
- Version:
- rev:
1.25
date: 2021/01/20 10:29:40
- user: cg
- file: Variable.st directory: libcomp
- module: stx stc-classLibrary: libcomp
node for parse-trees, representing variables
This is a helper class for the compiler.
copyrightCOPYRIGHT (c) 1989 by Claus Gittinger
All Rights Reserved
This software is furnished under a license and may be used
only in accordance with the terms of that license and with the
inclusion of the above copyright notice. This software may not
be provided or otherwise made available to, or used by, any
other person. No title to or ownership of the software is
hereby transferred.
instance creation
-
name: name
-
return a new node for a variable named name
-
type: type name: name
-
accessing
-
classHint
-
-
classHint: something
-
-
name
-
return the name of the variable
-
name: nameString
-
set the name of the variable
-
type: typeSymbol name: nameString
-
self assert:nameString notNil.
-
used
-
return the flag marking that this variable has been used
-
used: aBoolean
-
set/clear the flag marking that this variable has been used
-
value
-
return the value of the variable
-
value: v
-
set the value of the (simulated) variable
-
variableValue
-
return the value of the variable
enumerating
-
nodeDo: anEnumerator
-
helper for parse tree walking
printing & storing
-
printOn: aStream
-
(comment from inherited method)
append a user printed representation of the receiver to aStream.
The format is suitable for a human - not meant to be read back.
The default here is to output the receiver's class name.
BUT: this method is heavily redefined for objects which
can print prettier.
special
-
domain
-
-
domain: aDomain
-
-
expressionForSetup
-
finite domain setup
-
type
-
|