Best way to save parsing results.

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Best way to save parsing results.

cosmindumy
Hi,
I am very new to parboiled. I want to ask which is the best way to save the parsing value. I think I cannot use the stack.  
I want to have a class that holds my model, (example Person) and the when parser match the name, age, to fill it.
Which should be its relation with Parser and Action?
I need it in Action class but I want it to be singleton instantiated with parser.  

Thanks.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Best way to save parsing results.

mathias
Administrator
Why can't you use the stack?
I thing it's the easiest way to return a custom model object from your parser.

Cheers,
Mathias

---
[hidden email]
http://www.parboiled.org

On 07.11.2012, at 14:29, cosmindumy [via parboiled users] <[hidden email]> wrote:

> Hi,
> I am very new to parboiled. I want to ask which is the best way to save the parsing value. I think I cannot use the stack.  
> I want to have a class that holds my model, (example Person) and the when parser match the name, age, to fill it.
> Which should be its relation with Parser and Action?
> I need it in Action class but I want it to be singleton instantiated with parser.  
>
> Thanks.
>
> If you reply to this email, your message will be added to the discussion below:
> http://users.parboiled.org/Best-way-to-save-parsing-results-tp4024085.html
> To start a new topic under parboiled users, email [hidden email]
> To unsubscribe from parboiled users, click here.
> NAML

Loading...