Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Re: [xtext] Error in the generated PartitionScanner
Re: [xtext] Error in the generated PartitionScanner [message #19952] Fri, 08 August 2008 12:47 Go to next message
Eclipse UserFriend
This is a multi-part message in MIME format.
--------------030806020307050809080108
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Sven Efftinge wrote:
> Hi Lorenzo,
>
> it would be best if you could provide a patch and file it in bugzilla,
> so that the issue is fixed for everybody :-)
>

there seem to be problems with bugzilla, so for the moment I'm posting
the patch here

hope this helps
Lorenzo

--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
ICQ# lbetto, 16080134 (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
http://www.myspace.com/supertrouperabba
BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net

--------------030806020307050809080108
Content-Type: text/x-diff;
name="scanner_with_escape_chars_for_strings.patch"
Content-Transfer-Encoding: 8bit
Content-Disposition: inline;
filename="scanner_with_escape_chars_for_strings.patch"

### Eclipse Workspace Patch 1.0
#P xtext.generator
Index: main/src/org/openarchitectureware/xtext/editor/Utilities.xpt
============================================================ =======
RCS file: /cvsroot/architecturware/oaw_v4/xtext/xtext.generator/main/s rc/org/openarchitectureware/xtext/editor/Utilities.xpt,v
retrieving revision 1.6.2.3.2.1
diff -u -r1.6.2.3.2.1 Utilities.xpt
--- main/src/org/openarchitectureware/xtext/editor/Utilities.xpt 31 May 2008 12:57:18 -0000 1.6.2.3.2.1
+++ main/src/org/openarchitectureware/xtext/editor/Utilities.xpt 8 Aug 2008 16:16:50 -0000
@@ -103,8 +103,8 @@
rules.add(new MultiLineRule("/*","*/", comment));
rules.add(new SingleLineRule("//", "", comment));
�ENDIF-�
- rules.add(new MultiLineRule("\"","\"", string));
- rules.add(new MultiLineRule("'","'", string));
+ rules.add(new MultiLineRule("\"","\"", string, '\\'));
+ rules.add(new MultiLineRule("'","'", string, '\\'));
return rules;
}


--------------030806020307050809080108--
Re: [xtext] Error in the generated PartitionScanner [message #20034 is a reply to message #19952] Fri, 08 August 2008 12:52 Go to previous messageGo to next message
Eclipse UserFriend
Lorenzo Bettini wrote:
> Sven Efftinge wrote:
>> Hi Lorenzo,
>>
>> it would be best if you could provide a patch and file it in bugzilla,
>> so that the issue is fixed for everybody :-)
>>
>
> there seem to be problems with bugzilla, so for the moment I'm posting
> the patch here
>

OK: https://bugs.eclipse.org/bugs/show_bug.cgi?id=243608

--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
ICQ# lbetto, 16080134 (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
http://www.myspace.com/supertrouperabba
BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net
Re: [xtext] Error in the generated PartitionScanner [message #21385 is a reply to message #20034] Wed, 13 August 2008 11:23 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sven.efftinge.de

This also has already been applied by Patrick.

Thank you!


Lorenzo Bettini schrieb:
> Lorenzo Bettini wrote:
>> Sven Efftinge wrote:
>>> Hi Lorenzo,
>>>
>>> it would be best if you could provide a patch and file it in
>>> bugzilla, so that the issue is fixed for everybody :-)
>>>
>>
>> there seem to be problems with bugzilla, so for the moment I'm posting
>> the patch here
>>
>
> OK: https://bugs.eclipse.org/bugs/show_bug.cgi?id=243608
>
Re: [xtext] Error in the generated PartitionScanner [message #21402 is a reply to message #21385] Wed, 13 August 2008 12:35 Go to previous messageGo to next message
Eclipse UserFriend
thank you for xtext :-)

Sven Efftinge wrote:
> This also has already been applied by Patrick.
>
> Thank you!
>
>
> Lorenzo Bettini schrieb:
>> Lorenzo Bettini wrote:
>>> Sven Efftinge wrote:
>>>> Hi Lorenzo,
>>>>
>>>> it would be best if you could provide a patch and file it in
>>>> bugzilla, so that the issue is fixed for everybody :-)
>>>>
>>>
>>> there seem to be problems with bugzilla, so for the moment I'm
>>> posting the patch here
>>>
>>
>> OK: https://bugs.eclipse.org/bugs/show_bug.cgi?id=243608
>>


--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
ICQ# lbetto, 16080134 (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
http://www.myspace.com/supertrouperabba
BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net
Re: [xtext] Error in the generated PartitionScanner [message #21418 is a reply to message #21402] Fri, 22 August 2008 04:22 Go to previous messageGo to next message
Eclipse UserFriend
It seems to me that the problem is that the STRING definition is
incorrect. See this thread for my explanation of why I think this:

http://www.openarchitectureware.org/forum/viewtopic.php?show topic=9640

Also, should I be posting on this newsgroup or that one?

Thanks,
-- Scott
Re: [xtext] Error in the generated PartitionScanner [message #21428 is a reply to message #21418] Fri, 22 August 2008 07:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sven.efftinge.de

For the currently released xtext (shipped with oAW 4.3) it's best to use
the forum over at openarchitectureware.org.
If people have questions about the new Xtext (the one currently
developed under TMF) they should aks here (eclipse.modeling.tmf).
Since there are no releases yet, there are no questions :-)

regards,
Sven


Scott schrieb:
> It seems to me that the problem is that the STRING definition is
> incorrect. See this thread for my explanation of why I think this:
>
> http://www.openarchitectureware.org/forum/viewtopic.php?show topic=9640
>
> Also, should I be posting on this newsgroup or that one?
>
> Thanks,
> -- Scott
>
Re: [xtext] Error in the generated PartitionScanner [message #21435 is a reply to message #21418] Sat, 23 August 2008 13:10 Go to previous message
Eclipse UserFriend
Scott wrote:
> It seems to me that the problem is that the STRING definition is
> incorrect. See this thread for my explanation of why I think this:
>
> http://www.openarchitectureware.org/forum/viewtopic.php?show topic=9640
>
> Also, should I be posting on this newsgroup or that one?
>

As I also answered to that thread:

Actually, concerning the bug
https://bugs.eclipse.org/bugs/show_bug.cgi?id=243608, which
now should be fixed in the CVS, the strings with backslashed quotes used
to work correctly as before (the parser used to parse it correctly), it
was the highlighter that was wrong...

--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
ICQ# lbetto, 16080134 (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
http://www.myspace.com/supertrouperabba
BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net
Previous Topic:[xText] code completion
Next Topic:support of packrat parser generator
Goto Forum:
  


Current Time: Wed Sep 17 16:43:29 EDT 2025

Powered by FUDForum. Page generated in 0.10871 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top