eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'BinaryNode':

Home

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

Class: BinaryNode


Inheritance:

   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

Description:


node for parse-trees, representing binary message sends
This is a helper class for the compiler.


Instance protocol:

accessing
o  arg

checks
o  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
o  codeForSideEffectOn: aStream inBlock: b for: aCompiler
generate code for this statement - value not needed

o  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
o  evaluateIn: anEnvironment

printing & storing
o  printOn: aStream indent: i

o  printSelectorOn: aStream

queries
o  precedence

testing
o  isBinaryMessage

visiting
o  acceptVisitor: aVisitor
Double dispatch back to the visitor, passing my type encoded in
the selector (visitor pattern)



ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Fri, 19 Apr 2024 06:59:53 GMT