From c19ff077ae5232ebcbb3cf67a30a39ea7920711b Mon Sep 17 00:00:00 2001
From: Anders Nilsson <anders.nilsson@cs.lth.se>
Date: Tue, 28 Nov 2006 09:36:30 +0100
Subject: [PATCH] can now parse and dump tree of ontologyV07_instances.owl

---
 siaras/Siaras.jjt | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/siaras/Siaras.jjt b/siaras/Siaras.jjt
index 44bcfe5..6c75c1f 100644
--- a/siaras/Siaras.jjt
+++ b/siaras/Siaras.jjt
@@ -338,6 +338,14 @@ void Identifier() #OwlIdentifier : {Token t;}
 		{jjtThis.setIDENTIFIER(t.image);}
 }
 
+void OtherToken() #OwlIdentifier : {Token t;}
+{
+	t=<PLUS> | t=<MINUS> | t=<SLASH>
+		{jjtThis.setIDENTIFIER(t.image);}
+}
+
+
+
 void Element() : {}
 {
 	ComplexElement()
@@ -386,16 +394,12 @@ void FloatElement() #FloatElement : { Token t; }
 
 void StringElement() #StringElement : {} //{ Token t; }
 {
-	Identifier()
+	Identifier() | OtherToken()
 // 	WordList()
 //     t = <VALUE_LITERAL>
 // 	{jjtThis.setIDENTIFIER(t.image);}
 }
 
-void WordList() #List : {}
-{
-	Identifier() ( Identifier() )*
-}
 
 // void OwlElement() : {}
 // {
-- 
GitLab