Use conditions:

delimiter = any when { *p == delimiter }

-Adrian

On 10-11-24 02:11 PM, Matt Mongeau wrote:
Pity, I wanted to allows users to specify the delimiter...

On Wed, Nov 24, 2010 at 5:02 PM, Adrian Thurston
<[email protected] <mailto:[email protected]>> wrote:

    Typically not. You can decide which machine you want to transfer
    control to at runtime. You can also augment transitions by attaching
    conditions that are tested at runtime. But you cannot alter the
    graph at runtime.

    -Adrian



    On 10-11-24 01:40 PM, Matt Mongeau wrote:

        Can I define a transition at run time, i.e. I'm parsing csv
        files, but I
        might want to parse tab delimited instead.
        right now I'm doing something ugly like this:
        
https://github.com/toastyapps/excelsior/blob/formats/ext/excelsior_reader/excelsior_reader.rl




        _______________________________________________
        ragel-users mailing list
        [email protected] <mailto:[email protected]>
        http://www.complang.org/mailman/listinfo/ragel-users


    _______________________________________________
    ragel-users mailing list
    [email protected] <mailto:[email protected]>
    http://www.complang.org/mailman/listinfo/ragel-users




_______________________________________________
ragel-users mailing list
[email protected]
http://www.complang.org/mailman/listinfo/ragel-users

_______________________________________________
ragel-users mailing list
[email protected]
http://www.complang.org/mailman/listinfo/ragel-users

Reply via email to