Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Nomenclature question about Parser Rules
icon5.gif  Nomenclature question about Parser Rules [message #697764] Mon, 18 July 2011 00:59 Go to next message
Mirko Raner is currently offline Mirko RanerFriend
Messages: 125
Registered: July 2009
Location: New York City, NY
Senior Member
Hi there,

at my company, we always need to bring new people up to speed with Xtext, and I recently stumbled across a nomenclature question (or maybe a problem with my understanding?) regarding to parser rules:
Parser rules (i.e., rules that generate an EClass) have the subcategories of data type rules (generating EDataType) and enum rules (generating EEnum). However, not all parser rules fall into the category of either data type or enum rules. In fact, the majority of parser rules that I come across in Xtext grammars are just "plain" parser rules. How do you call this type of rules when you are specifically referring to parser rules that are neither data type nor enum rules (i.e., not talking about about parser rules in general).
Sorry for the slightly philosophical nature of this question, but in my experience this type of nomenclature issue makes it sometimes hard to communicate about Xtext...

Any insights? What do YOU call these rules?

Mirko
Re: Nomenclature question about Parser Rules [message #697807 is a reply to message #697764] Mon, 18 July 2011 05:28 Go to previous message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Hi Mirko,

they are called EObject-rules (see
org.eclipse.xtext.GrammarUtil.isEObjectRule(EObject))

Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com

On 18.07.11 02:59, Mirko Raner wrote:
> Hi there,
>
> at my company, we always need to bring new people up to speed with
> Xtext, and I recently stumbled across a nomenclature question (or maybe
> a problem with my understanding?) regarding to parser rules:
> Parser rules (i.e., rules that generate an EClass) have the
> subcategories of data type rules (generating EDataType) and enum rules
> (generating EEnum). However, not all parser rules fall into the category
> of either data type or enum rules. In fact, the majority of parser rules
> that I come across in Xtext grammars are just "plain" parser rules. How
> do you call this type of rules when you are specifically referring to
> parser rules that are neither data type nor enum rules (i.e., not
> talking about about parser rules in general).
> Sorry for the slightly philosophical nature of this question, but in my
> experience this type of nomenclature issue makes it sometimes hard to
> communicate about Xtext...
>
> Any insights? What do YOU call these rules?
>
> Mirko
>
Previous Topic:Content assist for keywords and terminals
Next Topic:How to transform xText to XMI
Goto Forum:
  


Current Time: Thu Apr 25 17:18:07 GMT 2024

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

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

Back to the top