Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 20:32 Go to next message
Joel Greenyer is currently offline Joel GreenyerFriend
Messages: 20
Registered: October 2014
Junior Member
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" (

Also what I found is
and slides by Sebastian Zarnekow
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?


Re: state for support of Python-like whitespace-/newline-sensitive languages [message #1855014 is a reply to message #1855002] Fri, 23 September 2022 11:46 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14699
Registered: July 2009
Senior Member
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)

Twitter : @chrdietrich
Blog :
Previous Topic:Grammar with a post-fix operator
Next Topic:Upgrade Xtext to 2.27: UI tests crash
Goto Forum:

Current Time: Sat Jul 20 17:10:15 GMT 2024

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

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

Back to the top