1 Oct 18:30
Re: Fill classes
Xavier Pegenaute <xavierp <at> cepba.upc.edu>
2007-10-01 16:30:26 GMT
2007-10-01 16:30:26 GMT
> I really don't have lots of time to look into code right now. As > always, if you can simplify the code to the exact problem; no more, > there'll be a bigger chance for me to look into the code ASAP. Ok, it was so simple, but anyway forget it, I am going to simplify my case. > Anything more than a few lines tend to get pushed down the "do later" > list. So, essentially, I need to know what it is you are trying to > achieve. The best strategy so far is to look at the examples > available and see if any of those are good starter candidates for > what you want to achieve. Then, we can work on that. How does that > sound? Fine. Ok, at the moment I am going to "clone" a sample from the spirit examples. In this way I am not stopped but this is what I would like: Having a file with data I want a grammar to parse this file. I want all the data to be filled in only one class (ClassToFill). I want a grammar that parse the contents of the file. This grammar will probably be updated soon, so I want that the people that update the grammar don't worry at all about the participants classes so I want the grammar the maximum isolate as possible. To solve this situation I thought about using 2 classes one that will be the component of the application with the information of the data file that doesn't care at all about how to fill its information and another class (GrammarClass) that will contain the grammar. The sequence that I thought is that once ClassToFill is created, it creates an instance of GrammarClass and calls the phrase "parse".(Continue reading)
Regards,
RSS Feed