Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Parameterised Terminals?
Parameterised Terminals? [message #1020423] Mon, 18 March 2013 06:13
Paul Noffke is currently offline Paul NoffkeFriend
Messages: 3
Registered: March 2013
Junior Member
Hi. I tried to post this message on Friday, but I got an "approval required due to moderated forum" message and it hasn't appeared (appologies to Christian if I'm not being patient enough!). So here goes again ...

I'm writing a "template" based language similar to the "Template Language" described here: http://www.eclipse.org/Xtext/7languagesDoc.html#template. Only I'm using curly braces to enter expression mode, not French quotes.

But I now need to apply this to a JSON file and so my choice of curly braces is a bit of a pain.

My questions are:

1. Is it possible to have a parameterised terminal that would allow the user to choose which character pair to use to enter expression mode?

2. Or, alternatively, can the document partitioner be used to apply different gramars to different partitions in the document?

Regards
Paul
Previous Topic:Lightweight standalone AST parser
Next Topic:Scoping of path expressions
Goto Forum:
  


Current Time: Sun Aug 09 15:24:38 GMT 2020

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

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

Back to the top