|
Class: BinaryNode
Object
|
+--ParseNode
|
+--MessageNode
|
+--BinaryNode
|
+--JavaScriptParser::JavaScriptBinaryNode
- Package:
- stx:libcomp
- Category:
- System-Compiler-Support
- Version:
- rev:
1.52
date: 2017/06/20 08:47:09
- user: cg
- file: BinaryNode.st directory: libcomp
- module: stx stc-classLibrary: libcomp
- Author:
- Claus Gittinger
node for parse-trees, representing binary message sends
This is a helper class for the compiler.
accessing
-
arg
-
checks
-
plausibilityCheckIn: aParser
-
check for possible precedence error and bad variable name in artihmetic expressions
TODO: rewite to use lint/lint rules and apply them before accepting
code generation
-
codeForSideEffectOn: aStream inBlock: b for: aCompiler
-
generate code for this statement - value not needed
-
codeOn: aStream inBlock: b for: aCompiler
-
disabled this, since it is confusing if the error is reported
usage example(s):
arg1 codeOn:aStream inBlock:b for:aCompiler.
|
evaluation
-
evaluateIn: anEnvironment
-
printing & storing
-
printOn: aStream indent: i
-
-
printSelectorOn: aStream
-
queries
-
precedence
-
testing
-
isBinaryMessage
-
visiting
-
acceptVisitor: aVisitor
-
Double dispatch back to the visitor, passing my type encoded in
the selector (visitor pattern)
|