[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.technology.imp] IMP LPG editor syntax errors on %options declarations

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