[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

All chars except several



Hello All,



I am writing an sql parser that just splits text into separate statements but with PL/SQL additional support. I think that it's almost done and as the last step I need to exclude all whitespaces from expressions. Here is a cut:





Helpers

    ...

    tab = 9;

    cr = 10;

    lf = 13;

    ws = ' ' | tab | cr | lf;



Tokens

    ...

    whitespace = ws+;

    any = [[0x0000..0xFFFF] - [10 + ';']]+;



Ignored Tokens

    whitespace;



Productions

    ...

    simple_expr = any+;





As you can see I've excluded semicolon and CR, but I need to exclude all the whitespaces. How can I do that?





Regards,

Konstantin Chikarev

http://antilogics.com/