1
|
1 |
"{ Package: 'stx:goodies/smaCC' }"
|
|
2 |
|
|
3 |
"{ NameSpace: SmaCC }"
|
|
4 |
|
|
5 |
Error subclass:#SmaCCParserError
|
|
6 |
instanceVariableNames:''
|
|
7 |
classVariableNames:''
|
|
8 |
poolDictionaries:''
|
|
9 |
category:'SmaCC-Runtime'
|
|
10 |
!
|
|
11 |
|
|
12 |
SmaCCParserError comment:'SmaCCParserException is the exception raised when a parsing error occurs. The description of the exception will be the error message and the parameter of the exception is the parser. With this information, you can insert a custom error message in your text view that you are parsing. For example, in VisualWorks, the following code will insert an error message into your text view:
|
|
13 |
textController insertAndSelect: ex description , '' ->'' at: ex parameter position'
|
|
14 |
!
|
|
15 |
|
|
16 |
|
|
17 |
!SmaCCParserError class methodsFor:'documentation'!
|
|
18 |
|
|
19 |
version
|
|
20 |
^ '$Header: /opt/data/cvs/stx/goodies/smaCC/SmaCC__SmaCCParserError.st,v 1.1 2006-02-09 21:18:12 vranyj1 Exp $'
|
15
|
21 |
!
|
|
22 |
|
|
23 |
version_SVN
|
|
24 |
^ '$Id$'
|
1
|
25 |
! !
|