Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Problem with the end of the line
Problem with the end of the line [message #637121] Thu, 04 November 2010 09:42 Go to next message
Fran Blanco is currently offline Fran BlancoFriend
Messages: 20
Registered: October 2010
Junior Member
Hii!

I have another problem with my DSL. Any command is too long sometimes and i would like to add the '+' token to change the line.

For example:

CALL       PGM(WSFCM193S) PARM(&PAPLICA  &PIDIOMA &PTIPPETI &PTIPEXEC &DIASVENC  &PSWERROR &PERRORES)


CALL       PGM(WSFCM193S) +
                        PARM(&PAPLICA  &PIDIOMA &PTIPPETI &PTIPEXEC +
                             &DIASVENC +
                             &PSWERROR &PERRORES)

It's like i would like the chance to add the '+' wherever i want.

What could i do?

Thz so much

B
Re: Problem with the end of the line [message #637130 is a reply to message #637121] Thu, 04 November 2010 10:05 Go to previous messageGo to next message
Meinte Boersma is currently offline Meinte BoersmaFriend
Messages: 434
Registered: July 2009
Location: Leiden, Netherlands
Senior Member
This DSL looks awfully like some kind of COBOL variant Wink

Anyway, if the '+' could come anywhere but it doesn't have any meaning, then it's effectively whitespace. Making a terminal rule and adding it to the hidden stream, should work but could conflict with any other uses of '+'.

In any case, have a look at the default terminal rules and see how they work and deal with EOLs in e.g. Java-style //-comments.


Re: Problem with the end of the line [message #637137 is a reply to message #637121] Thu, 04 November 2010 10:27 Go to previous message
Fran Blanco is currently offline Fran BlancoFriend
Messages: 20
Registered: October 2010
Junior Member
hahaha! Yeah, Im workin in a COBOL variant!

I have thought the same, to change the WhiteSpace rule but didnt work..!

Ok, I have updated the EMW2 Workflow and worksss!!!

Thzzzz!!!

B
Previous Topic:Linking to overloaded methods - getAllContents shouldn't be called on a global scope during linking
Next Topic:xText Standalone Setup Parsing a DSL from a File
Goto Forum:
  


Current Time: Fri Apr 26 10:21:49 GMT 2024

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

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

Back to the top