Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » RFC: Can we remove these quirky grammar rules?
RFC: Can we remove these quirky grammar rules? [message #1402866] Fri, 18 July 2014 00:58 Go to next message
Henrik Lindberg is currently offline Henrik LindbergFriend
Messages: 2509
Registered: July 2009
Senior Member
Hi,

Boolean Attributes
---
The current grammar (and future parser) accepts an attribute operation
with the name being a Boolean value. Have you ever seen $true or $false
as parameters in a class, define or type?

i.e.

define foo ($true) {
}

foo { the_foo: true => false }

Can we get rid of this, it is bad enough that all other keywords can be
used (if, unless, case, class, define, etc. etc.)

Exported with whitespace
---

The grammar allows the two @@ in an exported resource expression
to be separated by whitepsace. (Both current and future parser).

i.e.

@
# yes, this works
#


@

notify { exported1: message => 'wat' }

@ /* its a little bit odd... */ @

notify { exported2: message => 'wat' }

This creates two exported notify resources.

Can we disallow whitespace between the two @ ?

- henrik
Re: RFC: Can we remove these quirky grammar rules? [message #1402867 is a reply to message #1402866] Fri, 18 July 2014 01:01 Go to previous message
Henrik Lindberg is currently offline Henrik LindbergFriend
Messages: 2509
Registered: July 2009
Senior Member
Sorry, accidental post to the wrong group.

- henrik

On 2014-18-07 2:58, Henrik Lindberg wrote:
> Hi,
>
> Boolean Attributes
> ---
> The current grammar (and future parser) accepts an attribute operation
> with the name being a Boolean value. Have you ever seen $true or $false
> as parameters in a class, define or type?
>
Previous Topic:Integrating GMF into Xtext
Next Topic:How to launch the XTend compilation after having generating Xtend code?
Goto Forum:
  


Current Time: Fri Dec 06 18:19:40 GMT 2019

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

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

Back to the top