|
Class: BinaryNode
Object
|
+--ParseNode
|
+--MessageNode
|
+--BinaryNode
|
+--JavaScriptParser::JavaScriptBinaryNode
- Package:
- stx:libcomp
- Category:
- System-Compiler-Support
- Version:
- rev:
1.54
date: 2022/06/20 11:55:40
- user: stefan
- file: BinaryNode.st directory: libcomp
- module: stx stc-classLibrary: libcomp
node for parse-trees, representing binary message sends
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.
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
-
identity compare is builtin, do no try to perform a method! (Bridges)
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)
|