eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'ParseErrorNode':

Home

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

Class: ParseErrorNode


Inheritance:

   Object
   |
   +--ParseNode
      |
      +--ParseErrorNode

Package:
stx:libcomp
Category:
System-Compiler-Support
Version:
rev: 1.12 date: 2022/02/23 08:04:28
user: cg
file: ParseErrorNode.st directory: libcomp
module: stx stc-classLibrary: libcomp

Description:


ParseErrorNode represent an erroneous portion of the source code.
Error nodes are created by error-tolerant parser. So far the only
user is SmallSenseParser (https://bitbucket.org/janvrany/jv-smallsense).

Error nodes may have children which may not be error nodes. Such
children represent a part of the code that actuallu could be parsed.
Example:

    printValue: value
        Transcript show: (value printStringRadix: 12
        Transcript cr

The tolerant parser may create tree like:
    statement (StatementNode)
        #show: (MessageNode)
            Transcript (ContantNode)
            <<error>> (ParseErrorNode)
                #printStringRadix: (MessageNode)
                    value (VariableNode)
                    12 (ContantNode)
    statement (StatementNode)
        #cr (MessageNode)
            Transcript (ContantNode)


[instance variables:]

[class variables:]

copyright

COPYRIGHT (c) 2004 by eXept Software AG 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.

Class protocol:

instance creation
o  errorString: arg


Instance protocol:

accessing
o  children

o  children: aCollection

o  errorString

o  errorString: something

o  errorToken

o  errorToken: something

o  lineNumber

o  lineNumber: anInteger
(comment from inherited method)
set linenumber - ignored here

enumeration
o  childrenDo: aBlock

printing & storing
o  printAllOn: aStream indent: indent

o  printOn: aStream indent: indent
append a user printed representation of the receiver to aStream.
The format is suitable for a human - not meant to be read back.

queries
o  isErrorNode

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, 27 Jul 2024 08:04:25 GMT