Skip to main content



      Home
Home » Modeling » TMF (Xtext) » [Xtext]
[Xtext] [message #39666] Mon, 13 April 2009 12:54
Eclipse UserFriend
Hello,

Supposing that our text file is composed of columns (like a CSV csv)

The unknown nubmer of column in not a deal because we can solve with many
operators (* or +) in the grammar file.
My problem is in the name of elements of the file. Actually I dont want to
put fixed names for may columns because it may change from a file to
another.

To be clearer, I will return to the Addressbook example. Here we now
exacttly what we want, FirstName, lastName, phoneNumber,...
my problem is that I don't want to put fixed names to my elements.

In the begining, I thought that I can do this with a "foreach" loop. But I
don't know if it is feasable

Does any one have an idea about this kind of problem?
Thanks for help.

Best regards,

Hayfa.
Previous Topic:[XText] Concrete Scope examples
Next Topic:[Xtext] Importing existing metamodels
Goto Forum:
  


Current Time: Sun May 11 14:20:48 EDT 2025

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

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

Back to the top