[Pixelle-commit] SF.net SVN: pixelle: [119] trunk/pixelle
Brought to you by:
dbrosius
|
From: <dbr...@us...> - 2008-06-29 03:50:13
|
Revision: 119
http://pixelle.svn.sourceforge.net/pixelle/?rev=119&view=rev
Author: dbrosius
Date: 2008-06-28 20:50:22 -0700 (Sat, 28 Jun 2008)
Log Message:
-----------
try to handle parse errors better
Modified Paths:
--------------
trunk/pixelle/etc/Pixelle.g
trunk/pixelle/src/com/mebigfatguy/pixelle/PixelleTransformer.java
Modified: trunk/pixelle/etc/Pixelle.g
===================================================================
--- trunk/pixelle/etc/Pixelle.g 2008-06-29 00:58:13 UTC (rev 118)
+++ trunk/pixelle/etc/Pixelle.g 2008-06-29 03:50:22 UTC (rev 119)
@@ -53,6 +53,12 @@
}
}
+@rulecatch {
+ catch ( RecognitionException ex ) {
+ throw ex;
+ }
+}
+
pixelle :
expr
{
Modified: trunk/pixelle/src/com/mebigfatguy/pixelle/PixelleTransformer.java
===================================================================
--- trunk/pixelle/src/com/mebigfatguy/pixelle/PixelleTransformer.java 2008-06-29 00:58:13 UTC (rev 118)
+++ trunk/pixelle/src/com/mebigfatguy/pixelle/PixelleTransformer.java 2008-06-29 03:50:22 UTC (rev 119)
@@ -30,6 +30,7 @@
import org.antlr.runtime.ANTLRStringStream;
import org.antlr.runtime.CharStream;
import org.antlr.runtime.CommonTokenStream;
+import org.antlr.runtime.RecognitionException;
import com.mebigfatguy.pixelle.antlr.PixelleLexer;
import com.mebigfatguy.pixelle.antlr.PixelleParser;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|