From c95eef3209264f3bd7819c9331fa36e9355fb088 Mon Sep 17 00:00:00 2001
From: rschoene <rene.schoene@tu-dresden.de>
Date: Wed, 8 Aug 2018 14:01:54 +0200
Subject: [PATCH] Added support for NTA terminals.

---
 spec/parser/RelAstBase.parser | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/spec/parser/RelAstBase.parser b/spec/parser/RelAstBase.parser
index 284d795..9099259 100644
--- a/spec/parser/RelAstBase.parser
+++ b/spec/parser/RelAstBase.parser
@@ -58,6 +58,9 @@ Component component =
 	// NTA
 	| SLASH ID COL s_type_use.u SLASH {: return new NTAComponent(ID, u); :}
 	| SLASH s_type_use.u SLASH {: return new NTAComponent(u.getID(), u); :}
+	// NTA Token (same as NTA)
+	| SLASH LT ID COL s_type_use.u GT SLASH {: return new NTAComponent(ID, u); :}
+	| SLASH LT s_type_use.u GT SLASH {: return new NTAComponent(u.getID(), u); :}
 	// Token
 	| LT ID COL type_use.u GT {: return new TokenComponent(ID, u); :}
 	| LT ID GT {: return new TokenComponent(ID, new SimpleTypeUse("String")); :}
@@ -88,4 +91,4 @@ RelationComponent relation_comp =
 Direction direction =
 	RIGHT {: return new RightDirection(); :}
 	| BIDIRECTIONAL {: return new Bidirectional(); :}
-	;
\ No newline at end of file
+	;
-- 
GitLab