summaryrefslogtreecommitdiffhomepage
path: root/tools/dfagen/examples/ex2_robot.h
diff options
context:
space:
mode:
authorNicolas Schodet2008-03-17 22:53:01 +0100
committerNicolas Schodet2008-03-17 22:53:01 +0100
commit164ac3a34cbac441e82b256c97cb8784ea9d482c (patch)
treeb0db1276083d168b50e6aa2be9621368a36184cd /tools/dfagen/examples/ex2_robot.h
parent388a90600023cca7d7b28702fa4cc75ed5074123 (diff)
* tools/dfagen:
- added dfagen.
Diffstat (limited to 'tools/dfagen/examples/ex2_robot.h')
-rw-r--r--tools/dfagen/examples/ex2_robot.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/tools/dfagen/examples/ex2_robot.h b/tools/dfagen/examples/ex2_robot.h
new file mode 100644
index 00000000..0ceb7949
--- /dev/null
+++ b/tools/dfagen/examples/ex2_robot.h
@@ -0,0 +1,18 @@
+#ifndef ex2_robot_h
+#define ex2_robot_h
+/* Example 2 type definition. */
+
+#include "ex2.h"
+
+/* Robot structure. */
+struct robot_t
+{
+ /* The generated FSM. */
+ ex2_state_t fsm;
+ /* True for command with ice. */
+ int ice;
+ /* Number of glasses in the bottle. */
+ int bottle;
+};
+
+#endif /* ex2_robot_h */