Commit a4468abb authored by Anders Nilsson's avatar Anders Nilsson
Browse files

Synching

parent 8b9d5331
......@@ -15,7 +15,7 @@ aspect AbsGrammarGeneration {
pStream.println("Start ::= ComplexElement;");
pStream.println("abstract Thing ::=;");
pStream.println("abstract Element;");
pStream.println("ComplexElement ::= OwlIdentifier Attribute* Element*;");
pStream.println("ComplexElement : Element ::= OwlIdentifier Attribute* Element*;");
// pStream.println("ComplexElement ::= id1:OwlIdentifier id2:OwlIdentifier;");
pStream.println("abstract SimpleElement : Element;");
pStream.println("StringElement : SimpleElement ::= <IDENTIFIER>;");
......
......@@ -236,6 +236,7 @@ SPECIAL_TOKEN : /* COMMENTS */
< ASSIGN : "=" >
| < GT : ">" >
| < LT : "<" >
| < END_TAG : "/>" >
// | < BANG : "!" >
// | < TILDE : "~" >
// | < HOOK : "?" >
......@@ -273,10 +274,14 @@ SPECIAL_TOKEN : /* COMMENTS */
}// OPERATORS
// <DEFAULT,BOUNDS> TOKEN : /* TEXT */
// {
// < TEXT : <LETTER> (~["<",">"])* >
// }// TEXT
<DEFAULT,BOUNDS> TOKEN : /* TEXT */
{
< VALUE_LITERAL:
(<LETTER> | <DIGIT>) ( ~["<"] )*
>
}// TEXT
//--------------------------------------------------------------------//
......@@ -359,7 +364,7 @@ void FloatElement() #FloatElement : { Token t; }
void StringElement() #StringElement : { Token t; }
{
t = <IDENTIFIER>
t = <VALUE_LITERAL>
{jjtThis.setIDENTIFIER(t.image);}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment