Revision: 14867
http://gate.svn.sourceforge.net/gate/?rev=14867&view=rev
Author: markagreenwood
Date: 2011-12-28 13:07:31 +0000 (Wed, 28 Dec 2011)
Log Message:
-----------
anothor case where we need to roll back the last token
Modified Paths:
--------------
gate/trunk/plugins/Tagger_Measurements/src/gate/creole/measurements/Parser.java
Modified:
gate/trunk/plugins/Tagger_Measurements/src/gate/creole/measurements/Parser.java
===================================================================
---
gate/trunk/plugins/Tagger_Measurements/src/gate/creole/measurements/Parser.java
2011-12-28 11:35:10 UTC (rev 14866)
+++
gate/trunk/plugins/Tagger_Measurements/src/gate/creole/measurements/Parser.java
2011-12-28 13:07:31 UTC (rev 14867)
@@ -111,7 +111,13 @@
private boolean term_2() throws Exception {
if(!token(SLASH) && !token(PER)) return false;
- if(!product()) Error(msg_product);
+ if(!product()) {
+ //we have hit something odd like
+ // 4mg per rectum daily
+ //so roll back to before the per
+ lex.rollback();
+ return true;
+ }
return true;
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create
new or port existing apps to sell to consumers worldwide. Explore the
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs