ParseErrorNode.st
author Claus Gittinger <cg@exept.de>
Wed, 20 Jul 2011 17:55:15 +0200
changeset 2569 e9fcb54ac3d4
parent 2549 b4e6af2f403e
child 2594 8226f4081f74
permissions -rw-r--r--
change notifications
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1570
8ce7594e9b55 copyright
Claus Gittinger <cg@exept.de>
parents: 1532
diff changeset
     1
"
8ce7594e9b55 copyright
Claus Gittinger <cg@exept.de>
parents: 1532
diff changeset
     2
 COPYRIGHT (c) 2004 by eXept Software AG
8ce7594e9b55 copyright
Claus Gittinger <cg@exept.de>
parents: 1532
diff changeset
     3
              All Rights Reserved
8ce7594e9b55 copyright
Claus Gittinger <cg@exept.de>
parents: 1532
diff changeset
     4
8ce7594e9b55 copyright
Claus Gittinger <cg@exept.de>
parents: 1532
diff changeset
     5
 This software is furnished under a license and may be used
8ce7594e9b55 copyright
Claus Gittinger <cg@exept.de>
parents: 1532
diff changeset
     6
 only in accordance with the terms of that license and with the
8ce7594e9b55 copyright
Claus Gittinger <cg@exept.de>
parents: 1532
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
8ce7594e9b55 copyright
Claus Gittinger <cg@exept.de>
parents: 1532
diff changeset
     8
 be provided or otherwise made available to, or used by, any
8ce7594e9b55 copyright
Claus Gittinger <cg@exept.de>
parents: 1532
diff changeset
     9
 other person.  No title to or ownership of the software is
8ce7594e9b55 copyright
Claus Gittinger <cg@exept.de>
parents: 1532
diff changeset
    10
 hereby transferred.
8ce7594e9b55 copyright
Claus Gittinger <cg@exept.de>
parents: 1532
diff changeset
    11
"
1532
9c2adf12f271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    12
"{ Package: 'stx:libcomp' }"
9c2adf12f271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
2547
55ec27b3306c ParserErrorNode now inherits from ParseNode
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 1570
diff changeset
    14
ParseNode subclass:#ParseErrorNode
1532
9c2adf12f271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    15
	instanceVariableNames:'errorString'
9c2adf12f271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
	classVariableNames:''
9c2adf12f271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
	poolDictionaries:''
9c2adf12f271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
	category:'System-Compiler-Support'
9c2adf12f271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
!
9c2adf12f271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
1570
8ce7594e9b55 copyright
Claus Gittinger <cg@exept.de>
parents: 1532
diff changeset
    21
!ParseErrorNode class methodsFor:'documentation'!
8ce7594e9b55 copyright
Claus Gittinger <cg@exept.de>
parents: 1532
diff changeset
    22
8ce7594e9b55 copyright
Claus Gittinger <cg@exept.de>
parents: 1532
diff changeset
    23
copyright
8ce7594e9b55 copyright
Claus Gittinger <cg@exept.de>
parents: 1532
diff changeset
    24
"
8ce7594e9b55 copyright
Claus Gittinger <cg@exept.de>
parents: 1532
diff changeset
    25
 COPYRIGHT (c) 2004 by eXept Software AG
8ce7594e9b55 copyright
Claus Gittinger <cg@exept.de>
parents: 1532
diff changeset
    26
              All Rights Reserved
8ce7594e9b55 copyright
Claus Gittinger <cg@exept.de>
parents: 1532
diff changeset
    27
8ce7594e9b55 copyright
Claus Gittinger <cg@exept.de>
parents: 1532
diff changeset
    28
 This software is furnished under a license and may be used
8ce7594e9b55 copyright
Claus Gittinger <cg@exept.de>
parents: 1532
diff changeset
    29
 only in accordance with the terms of that license and with the
8ce7594e9b55 copyright
Claus Gittinger <cg@exept.de>
parents: 1532
diff changeset
    30
 inclusion of the above copyright notice.   This software may not
8ce7594e9b55 copyright
Claus Gittinger <cg@exept.de>
parents: 1532
diff changeset
    31
 be provided or otherwise made available to, or used by, any
8ce7594e9b55 copyright
Claus Gittinger <cg@exept.de>
parents: 1532
diff changeset
    32
 other person.  No title to or ownership of the software is
8ce7594e9b55 copyright
Claus Gittinger <cg@exept.de>
parents: 1532
diff changeset
    33
 hereby transferred.
8ce7594e9b55 copyright
Claus Gittinger <cg@exept.de>
parents: 1532
diff changeset
    34
"
8ce7594e9b55 copyright
Claus Gittinger <cg@exept.de>
parents: 1532
diff changeset
    35
! !
1532
9c2adf12f271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    36
9c2adf12f271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    37
!ParseErrorNode class methodsFor:'instance creation'!
9c2adf12f271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    38
9c2adf12f271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    39
errorString:arg
9c2adf12f271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    40
    ^ self new errorString:arg
9c2adf12f271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    41
! !
9c2adf12f271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    42
9c2adf12f271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    43
!ParseErrorNode methodsFor:'accessing'!
9c2adf12f271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    44
9c2adf12f271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    45
errorString
9c2adf12f271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    46
    ^ errorString
9c2adf12f271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    47
!
9c2adf12f271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    48
9c2adf12f271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    49
errorString:something
9c2adf12f271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    50
    errorString := something.
2549
b4e6af2f403e line & lineNumber
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2547
diff changeset
    51
!
b4e6af2f403e line & lineNumber
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2547
diff changeset
    52
b4e6af2f403e line & lineNumber
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2547
diff changeset
    53
lineNumber
b4e6af2f403e line & lineNumber
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2547
diff changeset
    54
b4e6af2f403e line & lineNumber
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2547
diff changeset
    55
    ^self objectAttributeAt: #lineNumber
b4e6af2f403e line & lineNumber
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2547
diff changeset
    56
b4e6af2f403e line & lineNumber
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2547
diff changeset
    57
    "Created: / 09-07-2011 / 22:30:14 / Jan Vrany <jan.vrany@fit.cvut.cz>"
b4e6af2f403e line & lineNumber
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2547
diff changeset
    58
!
b4e6af2f403e line & lineNumber
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2547
diff changeset
    59
b4e6af2f403e line & lineNumber
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2547
diff changeset
    60
lineNumber: anInteger
b4e6af2f403e line & lineNumber
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2547
diff changeset
    61
b4e6af2f403e line & lineNumber
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2547
diff changeset
    62
    self objectAttributeAt: #lineNumber put: anInteger
b4e6af2f403e line & lineNumber
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2547
diff changeset
    63
b4e6af2f403e line & lineNumber
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2547
diff changeset
    64
    "Created: / 09-07-2011 / 22:29:51 / Jan Vrany <jan.vrany@fit.cvut.cz>"
1532
9c2adf12f271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    65
! !
9c2adf12f271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    66
2547
55ec27b3306c ParserErrorNode now inherits from ParseNode
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 1570
diff changeset
    67
1532
9c2adf12f271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    68
!ParseErrorNode methodsFor:'queries'!
9c2adf12f271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    69
9c2adf12f271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    70
isErrorNode
9c2adf12f271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    71
    ^ true
9c2adf12f271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    72
! !
9c2adf12f271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    73
9c2adf12f271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    74
!ParseErrorNode class methodsFor:'documentation'!
9c2adf12f271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    75
9c2adf12f271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    76
version
2549
b4e6af2f403e line & lineNumber
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2547
diff changeset
    77
    ^ '$Header: /cvs/stx/stx/libcomp/ParseErrorNode.st,v 1.4 2011-07-09 21:51:24 vrany Exp $'
b4e6af2f403e line & lineNumber
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2547
diff changeset
    78
!
b4e6af2f403e line & lineNumber
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2547
diff changeset
    79
b4e6af2f403e line & lineNumber
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2547
diff changeset
    80
version_CVS
b4e6af2f403e line & lineNumber
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2547
diff changeset
    81
    ^ '$Header: /cvs/stx/stx/libcomp/ParseErrorNode.st,v 1.4 2011-07-09 21:51:24 vrany Exp $'
1532
9c2adf12f271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    82
! !