ERROR_REPORTING = true;
JAVA_UNICODE_ESCAPE = false;
UNICODE_INPUT = false;
- IGNORE_CASE = false;
+ IGNORE_CASE = true;
USER_TOKEN_MANAGER = false;
USER_CHAR_STREAM = false;
BUILD_PARSER = true;
< STRING_LITERAL: (<STRING_1> | <STRING_2> | <STRING_3>)>
| < STRING_1:
"\""
- ( (~["\"","\\","\n","\r"])
- | ("\\"
- ( ["n","t","b","r","f","\\","'","\""]
- | ["0"-"7"] ( ["0"-"7"] )?
- | ["0"-"3"] ["0"-"7"] ["0"-"7"]
- )
- )
+ ( (~["\""])
+ | "\\\""
)*
"\""
>
| < STRING_2:
"'"
- ( (~["\"","\\","\n","\r"])
- | ("\\"
- ( ["n","t","b","r","f","\\","'","\""]
- | ["0"-"7"] ( ["0"-"7"] )?
- | ["0"-"3"] ["0"-"7"] ["0"-"7"]
- )
- )
- )*
+ ( (~["'"]))*
+
"'"
>
| < STRING_3:
"`"
- ( (~["\"","\\","\n","\r"])
- | ("\\"
- ( ["n","t","b","r","f","\\","'","\""]
- | ["0"-"7"] ( ["0"-"7"] )?
- | ["0"-"3"] ["0"-"7"] ["0"-"7"]
- )
- )
- )*
- ""
+ ( (~["`"]))*
+ "`"
>
}
{
"this"
|
- <IDENTIFIER>
+ "{" Expression() "}"
+|
+ <IDENTIFIER> ("{" Expression() "}") *
|
"$" VariableName()
}
EchoStatement()
|
StaticStatement()
+|
+ GlobalStatement()
}
void EchoStatement() :
"while" "(" Expression() ")" Statement()
}
+void WhileStatement0() :
+{}
+{
+ ":" Statement() "endwhile;"
+|
+ Statement()
+}
+
void DoStatement() :
{}
{