Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Debugging parser
Debugging parser [message #1695933] Wed, 20 May 2015 11:41 Go to next message
Jeff MAURY is currently offline Jeff MAURYFriend
Messages: 44
Registered: July 2009
Member
I try to debug the Xtext generated parser but because my grammar is quite complex, the parser source fie exceed 64K lines and it seems there is a limitation in Java debugging where the line number is coded on 2 bytes. There is an option for splitting the parser/lexer in several classes but they are in the same source file thus it does not solve the problem. Does anyone of you have already got the same problem ?
Re: Debugging parser [message #1695976 is a reply to message #1695933] Wed, 20 May 2015 17:12 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
I've hit the same boundaries, too. It was painful indeed: I did the math
and navigated to the correct line number manually to introspect the
code. The local variable view was ok in Eclipse so I generally tried to
focus on the state of the locals.

Best,
Sebastian
--
Looking for professional support for Xtext, Xtend or Eclipse Modeling?
Find help at http://xtext.itemis.com or xtext(@)itemis.com
Blog: zarnekow.blogspot.com
Twitter: @szarnekow
Google+: https://www.google.com/+SebastianZarnekow
Re: Debugging parser [message #1696018 is a reply to message #1695976] Thu, 21 May 2015 08:06 Go to previous message
Jeff MAURY is currently offline Jeff MAURYFriend
Messages: 44
Registered: July 2009
Member
This is not an option because the file is too large (about 250000 lines) so there are several computations for a single line number value.
I think this can be fixed by rewriting the parser splitter so that the intermediate parser classes are stored in separate files.
WDYT ?
Previous Topic:Possible to suppress UI elements in Xtext for batch mode execution of xtext?
Next Topic:cross-reference ambiguity with grammar rules
Goto Forum:
  


Current Time: Fri Apr 26 11:26:19 GMT 2024

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

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

Back to the top