Discussion:
[ragel-users] Enabling / disabling transitions depending on host language expression.
Grégory Pakosz
2014-02-23 21:45:41 UTC
Permalink
Hello,

With Ragel, is there a way to enable/disable transitions depending on
the evaluation of an expression in the host language?

I have the following in mind:

main := m1 | m2 | m3

And I would like to inhibit entering m1 or m2 or m3 depending on runtime state.
Is this possible? If it's a wrong approach, what's the canonical Ragel
approach then?

Thank you,
Gregory
Timothy Goddard
2014-02-23 23:10:13 UTC
Permalink
Yes, look for "semantic conditions" near the end of the ragel guide.


Sent from Samsung Mobile

-------- Original message --------
From: Gr?gory Pakosz <gpakosz at yahoo.fr>
Date:
To: ragel-users at complang.org
Subject: [ragel-users] Enabling / disabling transitions depending on host
language expression.

Hello,

With Ragel, is there a way to enable/disable transitions depending on
the evaluation of an expression in the host language?

I have the following in mind:

main := m1 | m2 | m3

And I would like to inhibit entering m1 or m2 or m3 depending on runtime state.
Is this possible? If it's a wrong approach, what's the canonical Ragel
approach then?

Thank you,
Gregory

_______________________________________________
ragel-users mailing list
ragel-users at complang.org
http://www.complang.org/mailman/listinfo/ragel-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.complang.org/pipermail/ragel-users/attachments/20140224/5e841306/attachment.html>
Loading...