Skip to main content



      Home
Home » Modeling » TMF (Xtext) » state for support of Python-like whitespace-/newline-sensitive languages
state for support of Python-like whitespace-/newline-sensitive languages [message #1855002] Thu, 22 September 2022 16:32 Go to next message
Eclipse UserFriend
Hi all,
I am trying to implement a Python-like language which is whitespace-/newline-sensitive. I started with the Home Automation example with its synthetic:BEGIN and synthetic:END terminals and added a newline terminal ('\r'? '\n').

This however seem to be problematic, as Christian Dietrich said a few years ago:
"this is not a real supported usecase and will explode in all kind of situations => not beginner friendly" (https://www.eclipse.org/forums/index.php/t/1101327/)

Also what I found is
https://bugs.eclipse.org/bugs/show_bug.cgi?id=476690
and slides by Sebastian Zarnekow
https://www.slideshare.net/szarnekow/building-a-python-ide-with-xtext
which only give an incomplete guide on how to do this and reinforces the feeling of "will explode".


So is the bottom line in 2022 still that this is tricky to do?

Has anyone come up with a good solution meanwhile?
Are there any example projects that I could use as a starting point?

Thanks,

Joel
Re: state for support of Python-like whitespace-/newline-sensitive languages [message #1855014 is a reply to message #1855002] Fri, 23 September 2022 07:46 Go to previous message
Eclipse UserFriend
from my pov there is no update.
as stated before it depends on your usecase and requirements what works and what does not (e.g. serialization and formatting are tricky)
Previous Topic:Grammar with a post-fix operator
Next Topic:Upgrade Xtext to 2.27: UI tests crash
Goto Forum:
  


Current Time: Thu Apr 24 13:52:38 EDT 2025

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

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

Back to the top