Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » DSL with Multiline String as in YAML("|" + Multiline string as in YAML in an Xtext DSL)
DSL with Multiline String as in YAML [message #1785519] Mon, 16 April 2018 07:52
Patrick Stöckle is currently offline Patrick StöckleFriend
Messages: 1
Registered: November 2017
Junior Member
I'm trying to model a YAML-like DSL in Xtext. In this DSL, I need some Multiline String as in YAML.
description: |
  	Line 1
    line 2

My first try was this:

terminal BEGIN:
	'synthetic:BEGIN'; // increase indentation
terminal END:
	'synthetic:END'; // decrease indentation

and my second try was
	((!('\n'))+ '\n')+

but both of them did not succeed. Is there any way to do this in Xtext?
P.S. I asked the same question on
Previous Topic:Regarding cross-references between different files.
Next Topic:Integration with Xbase - reference to model elements and java-like methodscalls
Goto Forum:

Current Time: Sun Nov 18 02:28:23 GMT 2018

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

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

Back to the top