[Synopsis-changes] Synopsis/Synopsis/doc/Tutorial Makefile,1.14,1.15 Tutorial.xml,1.10,1.11

Stefan Seefeld stefan at synopsis.fresco.org
Thu Dec 11 04:40:09 UTC 2003


Update of /cvs/synopsis/Synopsis/doc/Tutorial
In directory frida:/tmp/cvs-serv30711/doc/Tutorial

Modified Files:
	Makefile Tutorial.xml 
Log Message:
more Tutorial work

Index: Makefile
===================================================================
RCS file: /cvs/synopsis/Synopsis/doc/Tutorial/Makefile,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -p -d -r1.14 -r1.15
--- Makefile	9 Dec 2003 00:54:37 -0000	1.14
+++ Makefile	11 Dec 2003 04:40:06 -0000	1.15
@@ -20,6 +20,7 @@ html: Tutorial.xml $(appendix)
 	xsltproc --novalid --path $(shell pwd) --xinclude -o $@/ $(srcdir)/html.xsl $<
 	mkdir -p $@/images
 	cp $(srcdir)/images/*.png $@/images/
+	cp -r $(srcdir)/examples .
 
 pdf: Tutorial.pdf
 

Index: Tutorial.xml
===================================================================
RCS file: /cvs/synopsis/Synopsis/doc/Tutorial/Tutorial.xml,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -p -d -r1.10 -r1.11
--- Tutorial.xml	10 Dec 2003 05:25:19 -0000	1.10
+++ Tutorial.xml	11 Dec 2003 04:40:06 -0000	1.11
@@ -269,6 +269,29 @@ synopsis -f HTML -o Paths Path.syn Polyl
       <para>The full code together with the Makefile can be found <ulink url="examples/Paths">here</ulink>
       </para>
     </section>
+    <section id="misc">
+      <title>Miscellaneous</title>
+      <para>As discussed earlier, there is a variety of processors available in the
+        Synopsis distribution. There are a number of parsers (for IDL, Python, and C++,
+        a C parser is in development), some formatters (HTML is probably the most popular
+        one, but others such as ASCII, Texinfo, Docbook, or Dot may be useful, too),
+        and a number of linker processors.</para>
+      <para>To find out about the available options of each of them, use the <option>--help</option>
+        option. For example
+        <programlisting>synopsis -f Dot --help</programlisting>
+        will tell us how to use the Dot formatter. To pass these options to the Dot formatter,
+        simply append them via the <option>-Wf</option> option, and they will be forwarded.
+      </para>
+      <para>If we want to generate a (UML) class diagram, we could for example run 
+        <programlisting>synopsis -f Dot -Wf,--title="class diagram" -Wf,--format=ps \
+          -Wf,hide_operations=False,hide_attributes=False \
+          -o Paths.ps Paths.syn</programlisting>
+      </para>
+      <para>But passing options via the command line has its limits, both, in terms of
+        usability, as well as for the robustness of the interface (all data have to be
+        passed as strings !). Therefor, for any tasks demanding more flexibility a
+        scripting interface is provided, which will be discussed in the next chapter.</para>
+    </section>
   </chapter>
 
   <chapter id="scripting">





More information about the Synopsis-changes mailing list