[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.technology.imp] Re: IMP LPG editor syntax errors on %options declarations
|
Brian Payton wrote:
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"
Ah, the problem in this case is the use of the shorthand "action" in
lieu of "action-block". The IDE should properly handle "action-block".
I'll check with Philippe to make sure that they really mean the same
thing, and if so, I'll augment the IDE's grammar to suit.
--
Cheers,
-- Bob
--------------------------------
Robert M. Fuhrer
Research Staff Member
Programming Technologies Dept.
IBM T.J. Watson Research Center
IDE Meta-tooling Platform Project Lead (http://www.eclipse.org/imp)
X10: Productive High-Performance Parallel Programming (http://x10.sf.net)