X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/sod/blobdiff_plain/caa6f4b99a79f95d15a6cc1e5b8dd27ea48b4d03..fd040f066b906ce63396b9703bc16d32bcc5204e:/doc/tutorial.tex diff --git a/doc/tutorial.tex b/doc/tutorial.tex index ac38e06..3d90293 100644 --- a/doc/tutorial.tex +++ b/doc/tutorial.tex @@ -111,16 +111,16 @@ The following is a simple Sod input file. \begin{prog} /* -*-sod-*- */ \\+ - code c : includes \{ \\ + code c: includes \{ \\ \#include "greeter.h" \\ \} \\+ - code h : includes \{ \\ + code h: includes \{ \\ \#include \\ \#include \\ \} \\+ - class Greeter : SodObject \{ \\ \ind + class Greeter: SodObject \{ \\ \ind void greet(FILE *fp) \{ \\ \ind fputs("Hello, world!\textbackslash n", fp); \-\\ \} \-\\ @@ -175,7 +175,7 @@ approach to all of this: it expects you, the programmer, to deal with it. The basic syntax for @"code" stanzas is \begin{prog} - code @ : @
\{ \\ \ind + code @: @
\{ \\ \ind @ \-\\ \} \end{prog}