The Ragel 6.10 manual has many illustrations of the FSM it generates. Some of which show a state DEF. As best I can tell this is never defined/discussed.
- What is the
DEFstate? - What are its implications? e.g. if it shows up in your FSM abc should be done
Thanks in advance
Answer to Q1:
DEFrepresents the default transition, which is taken if no other transition can be taken.Answer to Q2:
This depends on what you are using Ragel for.
anycharacter?This issue be most clearly understood by working though the example in Section 6.4.5 of the manual (version 6.10), where parsing and state charts are both used.
This can sometimes arise when you use explicitly
anyas a state.Example:
And the graphviz (
ragel -Vp -o def_eg.dot def_eg.rl):Now, with the expressions changed from any character to a single character. And using these single characters to represent states.
Is illustrated as: