autogen_back

AutoFSM Example

i

Here is a simple example. It decides whether or not the input properly represents a list of value ranges. The input syntax is approximately:


 [[ '!' ] <lo-num>] ['-' [<hi-num>]] \
 [',' [[ '!' ] <lo-num>] ['-' [<hi-num>]] ... ]
If there is no hyphen, then a number must be present. You should not have more than one "bang" operator, but this FSM does not check for that.

This page contains:




The input definitions

See the usage page for a description of the attributes supported.

back to top


The resulting header file:

AltStyle によって変換されたページ (->オリジナル) /