From 55ea6889987a9ca1e7429951e0e94be0fa99d7af Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Tue, 25 Mar 2008 23:04:37 +0100 Subject: * tools/dfagen: - fixed warning in doc. - fixed missing newline. - added use of non default templates. - added warning about parser.g. - removed .orig file when patching. --- tools/dfagen/doc/dfagen.txt | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'tools/dfagen/doc') diff --git a/tools/dfagen/doc/dfagen.txt b/tools/dfagen/doc/dfagen.txt index 7e2b9abd..f3d8e93a 100644 --- a/tools/dfagen/doc/dfagen.txt +++ b/tools/dfagen/doc/dfagen.txt @@ -124,7 +124,7 @@ The ``-o`` option chooses the output method, the ``-d`` option gives your automaton description, the ``-c`` option gives the output configuration file, and the ``-p`` is the prefix, which is used to name output files. -..warning: This is subject to change. +.. warning:: This is subject to change. Outputs ======= @@ -170,7 +170,13 @@ and edit the copy. Next time, you will merge new elements to your version The ``prefix.c`` file contains a function to be called each time en event occurs. This function will run the corresponding transition callback and will -check its return value. +check its return value. Its return value should indicate the next state. + +Changing templates +~~~~~~~~~~~~~~~~~~ + +If the default output does not fit your needs, you can define your own +templates. See ``ex2_tpl`` example. Graphviz output --------------- @@ -178,4 +184,4 @@ Graphviz output Output name: ``dot`` There is currently no output configuration file. Run ``dot`` (from the -Graphviz distribution to get a graphic output of the automaton. +Graphviz distribution) to get a graphic output of the automaton. -- cgit v1.2.3