javacc encountered * was expecting from
940740May 31 2012 — edited May 31 2012Hi,
I have the following
CreateView()
{
<CREATE> <VIEW> name = Get_DB_Name() <FROM> selectQuery = SelectStmt()
}
where
SelectStmt()
{
<SELECT> <MULT> <FROM> <DATABASE> <WHERE> <RESULT> <SATISFIES> <CONDITION> <SC>
}
Now when I give the input as "select * from database where result satisfies condition;" it gives me the correct output.
But when I give the input as "create view c:\neha from select * from database where result satisfies condition;", It gives me the following error
Main : Encountered "*" at line 1, column 33.
Was expecting:
<FROM> ...
What could be the possible error?
Thanks,
Neha