Skip to content
Snippets Groups Projects
Commit c95eef32 authored by René Schöne's avatar René Schöne
Browse files

Added support for NTA terminals.

parent 9377baea
No related branches found
No related tags found
No related merge requests found
......@@ -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
;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment