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.8 date: 2017/05/22 16:38:01
user: mawalch
file: ParseErrorNode.st directory: libcomp
module: stx stc-classLibrary: libcomp
Author:
Jan Vrany <jan.vrany@fit.cvut.cz>

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:]


Related information:



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

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.1.0.0; WebServer 1.663 at exept.de:8081; Sun, 22 Jul 2018 16:48:18 GMT