[ragel-users] Defining transitions at run time
Adrian Thurston
adrian.thurston at esentire.com
Wed Nov 24 22:13:17 UTC 2010
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
> <adrian.thurston at esentire.com <mailto:adrian.thurston at esentire.com>> 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
> ragel-users at complang.org <mailto:ragel-users at complang.org>
> http://www.complang.org/mailman/listinfo/ragel-users
>
>
> _______________________________________________
> ragel-users mailing list
> ragel-users at complang.org <mailto:ragel-users at complang.org>
> http://www.complang.org/mailman/listinfo/ragel-users
>
>
>
>
> _______________________________________________
> ragel-users mailing list
> ragel-users at complang.org
> http://www.complang.org/mailman/listinfo/ragel-users
_______________________________________________
ragel-users mailing list
ragel-users at complang.org
http://www.complang.org/mailman/listinfo/ragel-users
More information about the ragel-users
mailing list