eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'PluggableParseNodeVisitor':

Home

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

Class: PluggableParseNodeVisitor


Inheritance:

   Object
   |
   +--ParseNodeVisitor
      |
      +--PluggableParseNodeVisitor

Package:
stx:libcomp
Category:
System-Compiler-Support
Version:
rev: 1.4 date: 2021/01/20 10:29:37
user: cg
file: PluggableParseNodeVisitor.st directory: libcomp
module: stx stc-classLibrary: libcomp

Description:


obsolete not, because the superclass is now pluggable.
left in the system for a while for backward compatibility.

a pluggable node visitor.
setup with:
    actionForNodeClass:aClass put:aBlock
    
for example, if you are only interested in assignments,
use the following code:
    |v|
    v := PluggableParseNodeVisitor new.
    v actionForNodeClass:AssignmentNode put:[:node | Transcript showCR:node. true].
    v visit:(Parser parse:code in:someClass.


Class protocol:

queries
o  isObsolete



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Sun, 22 Dec 2024 01:57:19 GMT