SmaCC__SmaCCParserError.st
author vranyj1
Mon, 10 Sep 2012 09:07:46 +0000
changeset 23 11ad79f459e6
parent 15 8b8cd1701c33
permissions -rw-r--r--
- stx_goodies_smaCC added: #svnRepositoryUrlString changed: #classNamesAndAttributes #extensionMethodNames #preRequisites - SmaCC::SmaCCRHS changed: #parseTreeRewriter
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
b8cca2663544 Initial import
vranyj1
parents:
diff changeset
     1
"{ Package: 'stx:goodies/smaCC' }"
b8cca2663544 Initial import
vranyj1
parents:
diff changeset
     2
b8cca2663544 Initial import
vranyj1
parents:
diff changeset
     3
"{ NameSpace: SmaCC }"
b8cca2663544 Initial import
vranyj1
parents:
diff changeset
     4
b8cca2663544 Initial import
vranyj1
parents:
diff changeset
     5
Error subclass:#SmaCCParserError
b8cca2663544 Initial import
vranyj1
parents:
diff changeset
     6
	instanceVariableNames:''
b8cca2663544 Initial import
vranyj1
parents:
diff changeset
     7
	classVariableNames:''
b8cca2663544 Initial import
vranyj1
parents:
diff changeset
     8
	poolDictionaries:''
b8cca2663544 Initial import
vranyj1
parents:
diff changeset
     9
	category:'SmaCC-Runtime'
b8cca2663544 Initial import
vranyj1
parents:
diff changeset
    10
!
b8cca2663544 Initial import
vranyj1
parents:
diff changeset
    11
b8cca2663544 Initial import
vranyj1
parents:
diff changeset
    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:
b8cca2663544 Initial import
vranyj1
parents:
diff changeset
    13
	textController insertAndSelect: ex description , '' ->'' at: ex parameter position'
b8cca2663544 Initial import
vranyj1
parents:
diff changeset
    14
!
b8cca2663544 Initial import
vranyj1
parents:
diff changeset
    15
b8cca2663544 Initial import
vranyj1
parents:
diff changeset
    16
b8cca2663544 Initial import
vranyj1
parents:
diff changeset
    17
!SmaCCParserError class methodsFor:'documentation'!
b8cca2663544 Initial import
vranyj1
parents:
diff changeset
    18
b8cca2663544 Initial import
vranyj1
parents:
diff changeset
    19
version
b8cca2663544 Initial import
vranyj1
parents:
diff changeset
    20
    ^ '$Header: /opt/data/cvs/stx/goodies/smaCC/SmaCC__SmaCCParserError.st,v 1.1 2006-02-09 21:18:12 vranyj1 Exp $'
15
8b8cd1701c33 added version_SVN method
vranyj1
parents: 1
diff changeset
    21
!
8b8cd1701c33 added version_SVN method
vranyj1
parents: 1
diff changeset
    22
8b8cd1701c33 added version_SVN method
vranyj1
parents: 1
diff changeset
    23
version_SVN
8b8cd1701c33 added version_SVN method
vranyj1
parents: 1
diff changeset
    24
    ^ '$Id$'
1
b8cca2663544 Initial import
vranyj1
parents:
diff changeset
    25
! !