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

Fixed parser so that it can parse v09.owl

parent 337d8322
...@@ -14,7 +14,7 @@ options { ...@@ -14,7 +14,7 @@ options {
NODE_PREFIX = ""; NODE_PREFIX = "";
JAVA_UNICODE_ESCAPE = true; JAVA_UNICODE_ESCAPE = true;
STATIC = false; STATIC = false;
DEBUG_PARSER = true; // DEBUG_PARSER = true;
// DEBUG_LOOKAHEAD = true; // DEBUG_LOOKAHEAD = true;
// DEBUG_TOKEN_MANAGER = true; // DEBUG_TOKEN_MANAGER = true;
} // options } // options
...@@ -45,14 +45,9 @@ PARSER_END(SiarasParser) ...@@ -45,14 +45,9 @@ PARSER_END(SiarasParser)
}// WHITE SPACE }// WHITE SPACE
// <DEFAULT,BOUNDS> SPECIAL_TOKEN : /* COMMENTS */
// {
// <SLASH_SLASH_COMMENT : "//" (~["\n","\r"])* >
// }
SPECIAL_TOKEN : /* COMMENTS */ SPECIAL_TOKEN : /* COMMENTS */
{ {
// <SLASH_STAR_COMMENT : "/*" (~["*"])* "*" ("*" | (~["*","/"] (~["*"])* "*"))* "/" >
< "<!--" ( ~["-"] | ( "-" ~["-"] ) )* "-->"> < "<!--" ( ~["-"] | ( "-" ~["-"] ) )* "-->">
| < "<rdfs:comment" ( ~["<"] | ( "<" ~["/"] ) )* "</rdfs:comment>" > | < "<rdfs:comment" ( ~["<"] | ( "<" ~["/"] ) )* "</rdfs:comment>" >
// <XML_COMMENT : "<!--" (~["-","-",">"])* "-->" > // <XML_COMMENT : "<!--" (~["-","-",">"])* "-->" >
...@@ -112,6 +107,7 @@ SPECIAL_TOKEN : /* COMMENTS */ ...@@ -112,6 +107,7 @@ SPECIAL_TOKEN : /* COMMENTS */
// | < VacuumGripper : "VacuumGripper" > // | < VacuumGripper : "VacuumGripper" >
}// RESERVED WORDS AND LITERALS }// RESERVED WORDS AND LITERALS
<DEFAULT, BOUNDS> TOKEN : /* LITERALS */ <DEFAULT, BOUNDS> TOKEN : /* LITERALS */
{ {
< INTEGER_LITERAL: < INTEGER_LITERAL:
...@@ -194,7 +190,6 @@ SPECIAL_TOKEN : /* COMMENTS */ ...@@ -194,7 +190,6 @@ SPECIAL_TOKEN : /* COMMENTS */
"\uf900"-"\ufaff", "\uf900"-"\ufaff",
"+", "+",
"-", "-",
"/",
",", ",",
"." "."
] ]
...@@ -230,6 +225,7 @@ SPECIAL_TOKEN : /* COMMENTS */ ...@@ -230,6 +225,7 @@ SPECIAL_TOKEN : /* COMMENTS */
| < LBRACKET : "[" > | < LBRACKET : "[" >
| < RBRACKET : "]" > | < RBRACKET : "]" >
| < SEMICOLON : ";" > | < SEMICOLON : ";" >
| < QUOTE : "\"" >
// | < COMMA : "," > // | < COMMA : "," >
// | < DOT : "." > // | < DOT : "." >
}// SEPARATORS }// SEPARATORS
...@@ -257,7 +253,7 @@ SPECIAL_TOKEN : /* COMMENTS */ ...@@ -257,7 +253,7 @@ SPECIAL_TOKEN : /* COMMENTS */
// | < PLUS : "+" > // | < PLUS : "+" >
// | < MINUS : "-" > // | < MINUS : "-" >
// | < STAR : "*" > // | < STAR : "*" >
// | < SLASH : "/" > | < SLASH : "/" >
// | < BIT_AND : "&" > // | < BIT_AND : "&" >
// | < BIT_OR : "|" > // | < BIT_OR : "|" >
// | < XOR : "^" > // | < XOR : "^" >
......
This diff is collapsed.
This diff is collapsed.
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