<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:content="http://purl.org/rss/1.0/modules/content/"
    xmlns:wfw="http://wellformedweb.org/CommentAPI/"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
>
<!-- MHonArc v2.6.10 -->
	<channel>
		<title>news.eclipse.technology.imp</title>
		<link>http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.technology.imp/maillist.html</link>
		<description>NewsGroup: news.eclipse.technology.imp</description>
		<language>en-us</language>
		<pubDate>Fri, 18 Sep 2009 16:43:42 GMT</pubDate>
		<lastBuildDate>Fri, 18 Sep 2009 16:43:42 GMT</lastBuildDate>
		<docs>http://blogs.law.harvard.edu/tech/rss</docs>
		<generator>MHonArc RSS 2.0 RCFile</generator>
		<managingEditor>webmaster@eclipse.org (Webmaster)</managingEditor>
		<webMaster>webmaster@eclipse.org (Webmaster)</webMaster>
		<image>
			<title>news.eclipse.technology.imp</title>
			<url>http://www.eclipse.org/eclipse.org-common/themes/Phoenix/images/eclipse_home_header.jpg</url>
			<link>http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.technology.imp/maillist.html</link>
		</image>
 

	<item>
		<title>[news.eclipse.technology.imp] IMP depends on jdt?</title>
		<link>http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.technology.imp/msg00399.html</link>
		<description>I use imp in my rcp application ,but I don't want to include jdt plugin which is so big size. Does imp has a plan to seperate from jdt? </description>
		<content:encoded><![CDATA[<tt>I use imp in my rcp application ,but I don't want to include jdt plugin 
which is so big size.<br>
Does imp has a plan to seperate from jdt? </tt><br>
<br>
<br>
]]></content:encoded>
		<pubDate>Fri, 18 Sep 2009 16:33:24 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.technology.imp/msg00399.html</guid>
		<author>chenruis@xxxxxxx (ChenRui)</author>
	</item>


	<item>
		<title>[news.eclipse.technology.imp] LPG editor text coloring</title>
		<link>http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.technology.imp/msg00398.html</link>
		<description>Is there a way to customize the colors used in the LPG editor? If so, I haven't found it (which means it could be made more obvious, such as putting it into the LPG preference page :-). In particular, I'd like to modify the color for &amp;quot;text that follows a $...</description>
		<content:encoded><![CDATA[<tt>Is there a way to customize the colors used in the LPG editor?  If so, I 
haven't found it (which means it could be made more obvious, such as 
putting it into the LPG preference page :-).</tt><br>
<br>
<tt>In particular, I'd like to modify the color for &quot;text that follows a $ 
symbol&quot;, such as in these rules:</tt><br>
<br>
<pre style="margin: 0em;">tfield_type_datetime$DATE      ::= DATE
tfield_type_datetime$TIME      ::= TIME
tfield_type_datetime$TIMESTAMP ::= TIMESTAMP</pre><br>
<pre style="margin: 0em;">The text for $DATE, etc., is bright blue, which is a bit strong.</pre><br>
<pre style="margin: 0em;">Brian Payton
SQL Tools Development
IBM Silicon Valley Laboratory</pre><br>
]]></content:encoded>
		<pubDate>Wed, 16 Sep 2009 21:13:16 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.technology.imp/msg00398.html</guid>
		<author>bpayton@xxxxxxx (Brian Payton)</author>
	</item>
	<item>
		<title>[news.eclipse.technology.imp] Re: Toggle comment behavior in LPG	editor</title>
		<link>http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.technology.imp/msg00397.html</link>
		<description>Thanks for the report! You're right; the present heuristic - to place the line comment prefix just before the first non-whitespace character only works well if all the lines in question have the same indentation, e.g.: int x, y; x = 15; y++; becomes: // in...</description>
		<content:encoded><![CDATA[<tt>I kind of like the common whitespace prefix approach.  That's more like 
I might do if I was commenting out by hand, and the commented-out code 
doesn't stick out TOO much from the code around it.</tt><br>
<br>
<tt>Robert M. Fuhrer wrote:
</tt><blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><tt>Brian Payton wrote:
</tt><blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><tt>Here's a minor fit'n'finish item I came across in the LPG source editor.
</tt></blockquote><pre style="margin: 0em;"><br>Thanks for the report!</pre><br>
<blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><tt>In the editor, the &quot;Toggle comment&quot; action (Ctrl+/) adds LPG comments 
in a way that is kind of ugly.  Let's say you have a rule like this:</tt><br>
<br>
<pre style="margin: 0em;">col_expr_cl ::=
       col_expr_spec
     | col_expr_cl , col_expr_spec</pre><br>
<pre style="margin: 0em;">The toggle comment action does this:</pre><br>
<pre style="margin: 0em;">-- col_expr_cl ::=
      -- col_expr_spec
    -- | col_expr_cl , col_expr_spec</pre><br>
<tt>The equivalent action in the Java editor works a little differently.  
If you toggle comments on this:</tt><br>
<br>
<pre style="margin: 0em;">    if (uniqueOpt != null) {
        index.setUnique(true);
    }</pre><br>
<pre style="margin: 0em;">you get this:</pre><br>
<pre style="margin: 0em;">//    if (uniqueOpt != null) {
//        index.setUnique(true);
//    }</pre><br>
<tt>which I think makes it easier to spot sections of code that are 
commented out.
</tt></blockquote><pre style="margin: 0em;"><br>You're right; the present heuristic - to place the line comment prefix
just before the first non-whitespace character only works well if all
the lines in question have the same indentation, e.g.:</pre><br>
<pre style="margin: 0em;">   int x, y;
   x = 15;
   y++;</pre><br>
<pre style="margin: 0em;">becomes:</pre><br>
<pre style="margin: 0em;">//   int x, y;
//   x = 15;
//   y++;</pre><br>
<pre style="margin: 0em;">But as you saw, the heuristic fails when the lines don't all have the
same indentation.</pre><br>
<pre style="margin: 0em;">By the way, this isn't a problem just for LPG; this is what the IMP
runtime support for toggling comments does.</pre><br>
<pre style="margin: 0em;">We can do either of two things:</pre><br>
<pre style="margin: 0em;"> 1) Just insert the line comment start at the very beginning of the
    line (as shown above).</pre><br>
<pre style="margin: 0em;"> 2) Find the common whitespace prefix of all the lines in question
    and insert just after that. That would produce instead:</pre><br>
<pre style="margin: 0em;">   // int x, y;
   // x = 15;
   // y++;</pre><br>
<pre style="margin: 0em;">Comments? (No pun intended)</pre><br>
</blockquote><br>
]]></content:encoded>
		<pubDate>Wed, 16 Sep 2009 21:04:34 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.technology.imp/msg00397.html</guid>
		<author>bpayton@xxxxxxx (Brian Payton)</author>
	</item>


	<item>
		<title>[news.eclipse.technology.imp] Re: Toggle comment behavior in LPG	editor</title>
		<link>http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.technology.imp/msg00396.html</link>
		<description>Thanks for the report! You're right; the present heuristic - to place the line comment prefix just before the first non-whitespace character only works well if all the lines in question have the same indentation, e.g.: int x, y; x = 15; y++; becomes: // in...</description>
		<content:encoded><![CDATA[<tt>Brian Payton wrote:
</tt><blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><tt>Here's a minor fit'n'finish item I came across in the LPG source editor.
</tt></blockquote><pre style="margin: 0em;"><br>Thanks for the report!</pre><br>
<blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><tt>In the editor, the &quot;Toggle comment&quot; action (Ctrl+/) adds LPG comments in 
a way that is kind of ugly.  Let's say you have a rule like this:</tt><br>
<br>
<pre style="margin: 0em;">col_expr_cl ::=
       col_expr_spec
     | col_expr_cl , col_expr_spec</pre><br>
<pre style="margin: 0em;">The toggle comment action does this:</pre><br>
<pre style="margin: 0em;">-- col_expr_cl ::=
      -- col_expr_spec
    -- | col_expr_cl , col_expr_spec</pre><br>
<tt>The equivalent action in the Java editor works a little differently.  If 
you toggle comments on this:</tt><br>
<br>
<pre style="margin: 0em;">    if (uniqueOpt != null) {
        index.setUnique(true);
    }</pre><br>
<pre style="margin: 0em;">you get this:</pre><br>
<pre style="margin: 0em;">//    if (uniqueOpt != null) {
//        index.setUnique(true);
//    }</pre><br>
<tt>which I think makes it easier to spot sections of code that are 
commented out.
</tt></blockquote><pre style="margin: 0em;"><br>You're right; the present heuristic - to place the line comment prefix
just before the first non-whitespace character only works well if all
the lines in question have the same indentation, e.g.:</pre><br>
<pre style="margin: 0em;">   int x, y;
   x = 15;
   y++;</pre><br>
<pre style="margin: 0em;">becomes:</pre><br>
<pre style="margin: 0em;">//   int x, y;
//   x = 15;
//   y++;</pre><br>
<pre style="margin: 0em;">But as you saw, the heuristic fails when the lines don't all have the
same indentation.</pre><br>
<pre style="margin: 0em;">By the way, this isn't a problem just for LPG; this is what the IMP
runtime support for toggling comments does.</pre><br>
<pre style="margin: 0em;">We can do either of two things:</pre><br>
<pre style="margin: 0em;"> 1) Just insert the line comment start at the very beginning of the
    line (as shown above).</pre><br>
<pre style="margin: 0em;"> 2) Find the common whitespace prefix of all the lines in question
    and insert just after that. That would produce instead:</pre><br>
<pre style="margin: 0em;">   // int x, y;
   // x = 15;
   // y++;</pre><br>
<pre style="margin: 0em;">Comments? (No pun intended)</pre><br>
<pre style="margin: 0em;">--
Cheers,
  -- Bob</pre><br>
<pre style="margin: 0em;">--------------------------------
Robert M. Fuhrer
Research Staff Member
Programming Technologies Dept.
IBM T.J. Watson Research Center</pre><br>
<pre style="margin: 0em;">IDE Meta-tooling Platform Project Lead (<a  href="http://www.eclipse.org/imp">http://www.eclipse.org/imp</a>)
X10: Productive High-Performance Parallel Programming (<a  href="http://x10.sf.net">http://x10.sf.net</a>)</pre><br>
]]></content:encoded>
		<pubDate>Tue, 15 Sep 2009 15:23:51 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.technology.imp/msg00396.html</guid>
		<author>rfuhrer@xxxxxxx (Robert M. Fuhrer)</author>
	</item>


	<item>
		<title>[news.eclipse.technology.imp] Toggle comment behavior in LPG editor</title>
		<link>http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.technology.imp/msg00395.html</link>
		<description>Here's a minor fit'n'finish item I came across in the LPG source editor. In the editor, the &amp;quot;Toggle comment&amp;quot; action (Ctrl+/) adds LPG comments in a way that is kind of ugly. Let's say you have a rule like this: col_expr_cl ::= col_expr_spec | col_expr_cl ,...</description>
		<content:encoded><![CDATA[<pre style="margin: 0em;">Here's a minor fit'n'finish item I came across in the LPG source editor.</pre><br>
<tt>In the editor, the &quot;Toggle comment&quot; action (Ctrl+/) adds LPG comments in 
a way that is kind of ugly.  Let's say you have a rule like this:</tt><br>
<br>
<pre style="margin: 0em;">col_expr_cl ::=
       col_expr_spec
     | col_expr_cl , col_expr_spec</pre><br>
<pre style="margin: 0em;">The toggle comment action does this:</pre><br>
<pre style="margin: 0em;">-- col_expr_cl ::=
      -- col_expr_spec
    -- | col_expr_cl , col_expr_spec</pre><br>
<tt>The equivalent action in the Java editor works a little differently.  If 
you toggle comments on this:</tt><br>
<br>
<pre style="margin: 0em;">    if (uniqueOpt != null) {
        index.setUnique(true);
    }</pre><br>
<pre style="margin: 0em;">you get this:</pre><br>
<pre style="margin: 0em;">//    if (uniqueOpt != null) {
//        index.setUnique(true);
//    }</pre><br>
<tt>which I think makes it easier to spot sections of code that are 
commented out.</tt><br>
<br>
]]></content:encoded>
		<pubDate>Sun, 13 Sep 2009 01:37:30 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.technology.imp/msg00395.html</guid>
		<author>bpayton@xxxxxxx (Brian Payton)</author>
	</item>


	<item>
		<title>[news.eclipse.technology.imp] Re: Missing lpg Fragment</title>
		<link>http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.technology.imp/msg00394.html</link>
		<description>-- 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 Pa...</description>
		<content:encoded><![CDATA[<pre style="margin: 0em;">Hi there,</pre><br>
<pre style="margin: 0em;">I don't believe anyone has ever built a binary for 64-bit Windows;
hence the missing fragment. I don't have access to a 64-bit Windows
machine at the moment, so if anyone out there wants to volunteer to
produce (and smoke-test) such a binary, I'd be happy to create a
fragment for it and distribute it along with the rest of LPG.</pre><br>
<pre style="margin: 0em;">Building LPG is a trivial matter for most platforms. We have built
32-bit Windows binaries in the past. There's a DOS shell script in
the project lpg.generator.cpp called make-Win32-x86-MSNET.bat which
should suffice, assuming you've set up your environment to define
the necessary environment variables (vcvars32.bat used to be
distributed with Visual Studio to do this; I don't know whether it
still exists in the current .Net Studio distribution).</pre><br>
<tt>Defert Philippe wrote:
</tt><blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><pre style="margin: 0em;">Hi,</pre><br>
<pre style="margin: 0em;">i install imp project on eclipse 3.5_X64 under vista64.</pre><br>
<pre style="margin: 0em;">All bundles are installed correctly except lpg.generator .</pre><br>
<tt>no fragment containing the parser is installed. Thus, the generation of 
grammar is no longer.
</tt></blockquote><pre style="margin: 0em;"><br>--
Cheers,
  -- Bob</pre><br>
<pre style="margin: 0em;">--------------------------------
Robert M. Fuhrer
Research Staff Member
Programming Technologies Dept.
IBM T.J. Watson Research Center</pre><br>
<pre style="margin: 0em;">IDE Meta-tooling Platform Project Lead (<a  href="http://www.eclipse.org/imp">http://www.eclipse.org/imp</a>)
X10: Productive High-Performance Parallel Programming (<a  href="http://x10.sf.net">http://x10.sf.net</a>)</pre><br>
]]></content:encoded>
		<pubDate>Fri, 11 Sep 2009 20:47:03 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.technology.imp/msg00394.html</guid>
		<author>rfuhrer@xxxxxxx (Robert M. Fuhrer)</author>
	</item>
	<item>
		<title>[news.eclipse.technology.imp] Re: IMP LPG editor syntax errors on	%options declarations</title>
		<link>http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.technology.imp/msg00393.html</link>
		<description>I'm looking into this. Such a line is really two ParseTable options specifications, the first with a bogus empty value that gets overridden by the second, which has the value &amp;quot;lpg.lpgjavaruntime.ParseTable&amp;quot;. You can safely delete the initial t;%options Par...</description>
		<content:encoded><![CDATA[<tt>Thanks.  I agree that the double ParseTable option should be marked as 
an error in the editor.</tt><br>
<br>
<tt>Robert M. Fuhrer wrote:
</tt><blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><pre style="margin: 0em;">Hi there,</pre><br>
<pre style="margin: 0em;">Thanks for the bug reports!</pre><br>
<tt>The LPG parser generator and the LPG IDE use different parsers (even 
slightly<br>
different grammars), partly since the parser generator hand-rolls its 
scanner,<br>
while the IDE uses LPG itself to generate the scanner. This difference 
shows<br>
up particularly for the %options directives. In theory, they should be in<br>
perfect agreement, but obviously they're not quite.</tt><br>
<br>
<pre style="margin: 0em;">More details below...</pre><br>
<tt>Brian Payton wrote:
</tt><blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><pre style="margin: 0em;">Hi,</pre><br>
<tt>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.</tt><br>
<br>
<tt>Line:<br>
  %options action=(&quot;DB2ZQueryParser.java&quot;, &quot;/.&quot;, &quot;./&quot;)<br>
Error:<br>
   Multiple messages: misplaced construct(s): &quot;ERROR_TOKEN&quot; {0} is 
invalid: &quot;%options action&quot; {0}<br>
 expected after this token: &quot;DISJOINTPREDECESSORSETS_KEY&quot;
</tt></blockquote><pre style="margin: 0em;"><br>I'm looking into this.</pre><br>
<blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><tt>Line:<br>
  %options ParseTable=%options ParseTable=lpg.lpgjavaruntime.ParseTable<br>
(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.)<br>
Error:<br>
  Multiple messages: {0} unexpected token(s) ignored: &quot;ERROR_TOKEN&quot; 
{0} is invalid: &quot;%options ParseTable=%options &quot;
</tt></blockquote><pre style="margin: 0em;"><br>Such a line is really two ParseTable options specifications, the first
with a bogus empty value that gets overridden by the second, which has
the value &quot;lpg.lpgjavaruntime.ParseTable&quot;. You can safely delete the
initial &quot;%options ParseTable=&quot; prefix.</pre><br>
<pre style="margin: 0em;">I don't think it really makes much sense to change the IDE parser to
accept this (erroneous) options specification. If anything, I'd argue
that we should change the parser generator to flag it as an error.</pre><br>
<blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><pre style="margin: 0em;">Line:
  %options var=nt,automatic_ast,visitor,parent_save
Error:
  {0} is invalid: &quot;%options var&quot;
</pre></blockquote><pre style="margin: 0em;"><br>You're right - we missed the &quot;var&quot; option. I'll fix that.</pre><br>
<blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><pre style="margin: 0em;">Line:
  %options or_marker='|'
Error:
  {0} is invalid: &quot;%options or_marker='&quot;
</pre></blockquote><pre style="margin: 0em;"><br>In this case, the grammar used by the IDE doesn't seem to permit a
quoted character. As a workaround, removing the quotes should work.
Of course, I'll fix the IDE's grammar to allow the quoting.</pre><br>
<blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><tt>I also noticed that the editor doesn't hilight as keywords the &quot;no&quot; 
prefix on keywords such as &quot;noserialize&quot;, &quot;nogoto_default&quot;, and 
&quot;noerror-maps&quot;
</tt></blockquote><pre style="margin: 0em;"><br>I'll have to look into this as well.</pre><br>
</blockquote><br>
]]></content:encoded>
		<pubDate>Fri, 11 Sep 2009 18:56:22 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.technology.imp/msg00393.html</guid>
		<author>bpayton@xxxxxxx (Brian Payton)</author>
	</item>
	<item>
		<title>[news.eclipse.technology.imp] Missing lpg Fragment</title>
		<link>http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.technology.imp/msg00392.html</link>
		<description>Hi, i install imp project on eclipse 3.5_X64 under vista64. All bundles are installed correctly except lpg.generator . no fragment containing the parser is installed. Thus, the generation of grammar is no longer. Philippe </description>
		<content:encoded><![CDATA[<pre style="margin: 0em;">Hi,</pre><br>
<pre style="margin: 0em;">i install imp project on eclipse 3.5_X64 under vista64.</pre><br>
<pre style="margin: 0em;">All bundles are installed correctly except lpg.generator .</pre><br>
<tt>no fragment containing the parser is installed. Thus, the generation of 
grammar is no longer.</tt><br>
<br>
<pre style="margin: 0em;">Philippe</pre><br>
]]></content:encoded>
		<pubDate>Fri, 11 Sep 2009 13:14:44 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.technology.imp/msg00392.html</guid>
		<author>defert@xxxxxxx (Defert Philippe)</author>
	</item>


	<item>
		<title>[news.eclipse.technology.imp] Re: IMP LPG editor syntax errors on	%options declarations</title>
		<link>http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.technology.imp/msg00391.html</link>
		<description>Ah, the problem in this case is the use of the shorthand &amp;quot;action&amp;quot; in lieu of &amp;quot;action-block&amp;quot;. The IDE should properly handle &amp;quot;action-block&amp;quot;. I'll check with Philippe to make sure that they really mean the same thing, and if so, I'll augment the IDE's gramma...</description>
		<content:encoded><![CDATA[<tt>Brian Payton wrote:
</tt><blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><pre style="margin: 0em;">Hi,</pre><br>
<tt>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.</tt><br>
<br>
<tt>Line:<br>
  %options action=(&quot;DB2ZQueryParser.java&quot;, &quot;/.&quot;, &quot;./&quot;)<br>
Error:<br>
   Multiple messages: misplaced construct(s): &quot;ERROR_TOKEN&quot; {0} is 
invalid: &quot;%options action&quot; {0}<br>
 expected after this token: &quot;DISJOINTPREDECESSORSETS_KEY&quot;
</tt></blockquote><pre style="margin: 0em;"><br>Ah, the problem in this case is the use of the shorthand &quot;action&quot; in
lieu of &quot;action-block&quot;. The IDE should properly handle &quot;action-block&quot;.
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.</pre><br>
<pre style="margin: 0em;">--
Cheers,
  -- Bob</pre><br>
<pre style="margin: 0em;">--------------------------------
Robert M. Fuhrer
Research Staff Member
Programming Technologies Dept.
IBM T.J. Watson Research Center</pre><br>
<pre style="margin: 0em;">IDE Meta-tooling Platform Project Lead (<a  href="http://www.eclipse.org/imp">http://www.eclipse.org/imp</a>)
X10: Productive High-Performance Parallel Programming (<a  href="http://x10.sf.net">http://x10.sf.net</a>)</pre><br>
]]></content:encoded>
		<pubDate>Fri, 11 Sep 2009 00:36:21 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.technology.imp/msg00391.html</guid>
		<author>rfuhrer@xxxxxxx (Robert M. Fuhrer)</author>
	</item>
	<item>
		<title>[news.eclipse.technology.imp] Re: IMP LPG editor syntax errors on	%options declarations</title>
		<link>http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.technology.imp/msg00390.html</link>
		<description>I'm looking into this. Such a line is really two ParseTable options specifications, the first with a bogus empty value that gets overridden by the second, which has the value &amp;quot;lpg.lpgjavaruntime.ParseTable&amp;quot;. You can safely delete the initial t;%options Par...</description>
		<content:encoded><![CDATA[<pre style="margin: 0em;">Hi there,</pre><br>
<pre style="margin: 0em;">Thanks for the bug reports!</pre><br>
<pre style="margin: 0em;">The LPG parser generator and the LPG IDE use different parsers (even slightly
different grammars), partly since the parser generator hand-rolls its scanner,
while the IDE uses LPG itself to generate the scanner. This difference shows
up particularly for the %options directives. In theory, they should be in
perfect agreement, but obviously they're not quite.</pre><br>
<pre style="margin: 0em;">More details below...</pre><br>
<tt>Brian Payton wrote:
</tt><blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><pre style="margin: 0em;">Hi,</pre><br>
<tt>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.</tt><br>
<br>
<tt>Line:<br>
  %options action=(&quot;DB2ZQueryParser.java&quot;, &quot;/.&quot;, &quot;./&quot;)<br>
Error:<br>
   Multiple messages: misplaced construct(s): &quot;ERROR_TOKEN&quot; {0} is 
invalid: &quot;%options action&quot; {0}<br>
 expected after this token: &quot;DISJOINTPREDECESSORSETS_KEY&quot;
</tt></blockquote><pre style="margin: 0em;"><br>I'm looking into this.</pre><br>
<blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><tt>Line:<br>
  %options ParseTable=%options ParseTable=lpg.lpgjavaruntime.ParseTable<br>
(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.)<br>
Error:<br>
  Multiple messages: {0} unexpected token(s) ignored: &quot;ERROR_TOKEN&quot; {0} 
is invalid: &quot;%options ParseTable=%options &quot;
</tt></blockquote><pre style="margin: 0em;"><br>Such a line is really two ParseTable options specifications, the first
with a bogus empty value that gets overridden by the second, which has
the value &quot;lpg.lpgjavaruntime.ParseTable&quot;. You can safely delete the
initial &quot;%options ParseTable=&quot; prefix.</pre><br>
<pre style="margin: 0em;">I don't think it really makes much sense to change the IDE parser to
accept this (erroneous) options specification. If anything, I'd argue
that we should change the parser generator to flag it as an error.</pre><br>
<blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><pre style="margin: 0em;">Line:
  %options var=nt,automatic_ast,visitor,parent_save
Error:
  {0} is invalid: &quot;%options var&quot;
</pre></blockquote><pre style="margin: 0em;"><br>You're right - we missed the &quot;var&quot; option. I'll fix that.</pre><br>
<blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><pre style="margin: 0em;">Line:
  %options or_marker='|'
Error:
  {0} is invalid: &quot;%options or_marker='&quot;
</pre></blockquote><pre style="margin: 0em;"><br>In this case, the grammar used by the IDE doesn't seem to permit a
quoted character. As a workaround, removing the quotes should work.
Of course, I'll fix the IDE's grammar to allow the quoting.</pre><br>
<blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><tt>I also noticed that the editor doesn't hilight as keywords the &quot;no&quot; 
prefix on keywords such as &quot;noserialize&quot;, &quot;nogoto_default&quot;, and 
&quot;noerror-maps&quot;
</tt></blockquote><pre style="margin: 0em;"><br>I'll have to look into this as well.</pre><br>
<pre style="margin: 0em;">--
Cheers,
  -- Bob</pre><br>
<pre style="margin: 0em;">--------------------------------
Robert M. Fuhrer
Research Staff Member
Programming Technologies Dept.
IBM T.J. Watson Research Center</pre><br>
<pre style="margin: 0em;">IDE Meta-tooling Platform Project Lead (<a  href="http://www.eclipse.org/imp">http://www.eclipse.org/imp</a>)
X10: Productive High-Performance Parallel Programming (<a  href="http://x10.sf.net">http://x10.sf.net</a>)</pre><br>
]]></content:encoded>
		<pubDate>Thu, 10 Sep 2009 22:34:34 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.technology.imp/msg00390.html</guid>
		<author>rfuhrer@xxxxxxx (Robert M. Fuhrer)</author>
	</item>

 
	</channel>
	</rss>
<!-- MHonArc v2.6.10 -->
