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

Fixed parser so that it can parse v09.owl

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