left up right
Finite State Definition State One

fs.xml

<fs>
<state>
 <name>one</name>
 <comment>Expecting a number</comment>
 <entry><matches><match>digit</match></matches>
    <newstate>two</newstate><action /></action></entry>
 <entry><matches><match>plus</match><match>minus</match></matches>
    <newstate>two</newstate><action /></entry>
 <entry><matches><match>fullstop</match></matches>
    <newstate>three</newstate><action /></entry>
 <entry><matches><match>separator</match></matches>
    <newstate>one</newstate><action /></entry>
</state>