You can use PetitPreprocessor:
Maybe you can use a -completely separate- pre-parser? :)It takes the input with the pre processor directives, and answers a new processed string which the original parser will handle?.GuilleOn Thu, Sep 13, 2012 at 3:22 PM, Stephan Eggermont <stephan@stack.nl> wrote:
Hi
What is the best way to handle pre-processor directives with PetitParser without polluting
the parsing too much? Any suggestions?
unit forms;
interface
{$IFDEF WINDOWS}
uses bla;
{$ENDIF}
{$IFDEF LINUX}
uses bla2;
{$ENDIF}
Diego & Stephan
_______________________________________________
Moose-dev mailing list
Moose-dev@iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
_______________________________________________
Moose-dev mailing list
Moose-dev@iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev