Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » IMP » IMP LPG editor syntax errors on %options declarations
IMP LPG editor syntax errors on %options declarations [message #576496] Thu, 10 September 2009 14:55
Brian Payton is currently offline Brian Payton
Messages: 152
Registered: July 2009
Senior Member
Hi,

I'm starting to use the IMP LPG source editor, and I noticed the editor
shows syntax errors on certain input that LPG accepts, particularly in
the %options declarations. Here's the lines showing errors, plus the
error messages.

Line:
%options action=("DB2ZQueryParser.java", "/.", "./")
Error:
Multiple messages: misplaced construct(s): "ERROR_TOKEN" {0} is
invalid: "%options action" {0}
expected after this token: "DISJOINTPREDECESSORSETS_KEY"

Line:
%options ParseTable=%options ParseTable=lpg.lpgjavaruntime.ParseTable
(Note: this options line doesn't make much sense to me, so it might be
an error in the source file. However LPG doesn't complain about it.)
Error:
Multiple messages: {0} unexpected token(s) ignored: "ERROR_TOKEN" {0}
is invalid: "%options ParseTable=%options "

Line:
%options var=nt,automatic_ast,visitor,parent_save
Error:
{0} is invalid: "%options var"

Line:
%options or_marker='|'
Error:
{0} is invalid: "%options or_marker='"

I also noticed that the editor doesn't hilight as keywords the "no"
prefix on keywords such as "noserialize", "nogoto_default", and
"noerror-maps"

Brian Payton
SQL Tools Development
IBM
Previous Topic:Problem installing IMP on Eclipse 3.5
Next Topic:Missing lpg Fragment
Goto Forum:
  


Current Time: Wed Jul 23 12:16:32 EDT 2014

Powered by FUDForum. Page generated in 0.02187 seconds