eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'ParseNodeVisitor':

Home

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

Class: ParseNodeVisitor


Inheritance:

   Object
   |
   +--ParseNodeVisitor
      |
      +--JavaScriptParseNodeVisitor
      |
      +--PluggableParseNodeVisitor

Package:
stx:libcomp
Category:
System-Compiler-Support
Version:
rev: 1.12 date: 2023/12/12 21:52:48
user: cg
file: ParseNodeVisitor.st directory: libcomp
module: stx stc-classLibrary: libcomp

Description:


a whitebox expandable abstract parsenode visitor.
Subclasses should redefine those acceptXXX methods, in which they are interested.


Instance protocol:

pluggable setup
o  actionForNodeClass: aNodeClass put: aBlock
setup so that for nodes of type aNodeClass, aBlock is invoked.
If the block returns true, subnodes (eg. right side of assignments, etc.)
will be enumerated as well.
Otherwise, no subnodes are visited.

visiting
o  visit: anObject

o  visitAssignmentNode: anObject

o  visitBinaryNode: anObject

o  visitBlockNode: anObject

o  visitCascadeNode: anObject

o  visitConstantNode: anObject

o  visitECompletionConstantNode: anObject
dispatched back from the visited eCompletionConstantNode-object (visitor pattern)

o  visitMessageNode: anObject

o  visitObject: anObject
dispatched back from the visited objects (visitor pattern)

o  visitParseErrorNode: anObject

o  visitPrimitiveNode: anObject

o  visitReturnNode: anObject

o  visitSelfNode: anObject
to be redefined in subclasses

o  visitStatementNode: anObject

o  visitSuperNode: anObject
to be redefined in subclasses

o  visitUnaryNode: anObject

o  visitVariableNode: anObject
to be redefined in subclasses

visiting - javaScript
o  doesNotUnderstand: aMessage
catch to prevent stupid error reports from Explainer in end-user app (expecco)



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Mon, 18 Nov 2024 04:21:52 GMT