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.54 date: 2022/06/20 11:55:40
user: stefan
file: BinaryNode.st directory: libcomp
module: stx stc-classLibrary: libcomp

Description:


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

copyright

COPYRIGHT (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 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
identity compare is builtin, do no try to perform a method! (Bridges)

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.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Sat, 21 Dec 2024 16:21:16 GMT