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() :
{}
{
checkPHP("/* \n overLib is from Eric Bosrup (http://www.bosrup.com/web/overlib/) \n */");
checkPHP("if ($arrAtchCookie[1]==0 && $IdAtchPostId!=null){ } ");
checkPHP("$arrAtchCookie[1] -= filesize(realpath($AtchTempDir).\"/\".$xattachlist)/ 1024; ");
- checkPHP("do {$array[] = array(\"$myrow[uid]\" => \"$myrow[uname]\"); } while($myrow = mysql_fetch_array($result));");
checkPHP("$ol = new Overlib();");
checkPHP("$risultato = mysql_query($sql) or\n die(mysql_error());");
checkPHP(
checkPHP("while (eregi(\"footer.php\",$PHP_SELF)) {\n" + "Header(\"Location: index.php\");\n" + "die();\n" + "}\n");
checkPHP("while (eregi(\"footer.php\",$PHP_SELF)) :\n" + "Header(\"Location: index.php\");\n" + "die();\n" + "endwhile;\n");
checkPHP("if ($term{0}!=$firstChar) {}");
- checkPHP("$this->highlightfile->linkscripts{$category}");
- checkPHP("$code = call_user_method($this->highlightfile->linkscripts{$category}, $this->highlightfile, $oldword, $this->output_module)");
+ checkPHP("$this->highlightfile->linkscripts{$category};");
+ checkPHP("$code = call_user_method($this->highlightfile->linkscripts{$category}, $this->highlightfile, $oldword, $this->output_module);");
checkPHP("call_user_method_array($function_name[1], ${$objectname}, $arguments);");
- checkPHP("global ${$objectname}; ");
+ checkPHP("global ${$objectname};");
+ checkPHP("do {$array[] = array(\"$myrow[uid]\" => \"$myrow[uname]\"); } while($myrow = mysql_fetch_array($result));");
}
private void checkPHP(String strEval) {
try {
+ System.out.println("strEval = " + strEval);
phpparser.ReInit(new CharArrayReader(strEval.toCharArray()));
phpparser.parse();
} catch (ParseException e) {