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