summaryrefslogtreecommitdiff
path: root/docs/devel_guide_src/parserInstructions.tex
diff options
context:
space:
mode:
authorR. Tyler Ballance <tyler@monkeypox.org>2009-11-16 21:09:13 -0800
committerR. Tyler Ballance <tyler@monkeypox.org>2009-11-16 21:09:13 -0800
commitd9ce7916e309e2393d824e249f512d2629e5e181 (patch)
tree6b7ad5cd6292f6e017e048fbeb4551facbabd174 /docs/devel_guide_src/parserInstructions.tex
parente43765a679b84c52df875e9629d303e304af50a1 (diff)
downloadpython-cheetah-docs.tar.gz
Revert "Delete the "old" docs directory to make way for fancy smancy sphinx"docs
This reverts commit 5dc95cfcd015628665d3672e56d0551943b5db6b.
Diffstat (limited to 'docs/devel_guide_src/parserInstructions.tex')
-rw-r--r--docs/devel_guide_src/parserInstructions.tex61
1 files changed, 61 insertions, 0 deletions
diff --git a/docs/devel_guide_src/parserInstructions.tex b/docs/devel_guide_src/parserInstructions.tex
new file mode 100644
index 0000000..0af065f
--- /dev/null
+++ b/docs/devel_guide_src/parserInstructions.tex
@@ -0,0 +1,61 @@
+\section{Directives: Parser Instructions}
+\label{parserInstructions}
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\subsection{\#breakpoint}
+\label{parserInstructions.breakpoint}
+
+
+The template:
+\begin{verbatim}
+Text before breakpoint.
+#breakpoint
+Text after breakpoint.
+#raise RuntimeError
+\end{verbatim}
+
+The output:
+\begin{verbatim}
+Text before breakpoint.
+\end{verbatim}
+
+The generated code:
+\begin{verbatim}
+write('Text before breakpoint.\n')
+\end{verbatim}
+
+Nothing after the breakpoint was compiled.
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\subsection{\#compiler}
+\label{parserInstructions.compiler}
+
+The template:
+\begin{verbatim}
+// Not a comment
+#compiler commentStartToken = '//'
+// A comment
+#compiler reset
+// Not a comment
+\end{verbatim}
+
+The output:
+\begin{verbatim}
+// Not a comment
+// Not a comment
+\end{verbatim}
+
+The generated code:
+\begin{verbatim}
+write('// Not a comment\n')
+# A comment
+write('// Not a comment\n')
+\end{verbatim}
+
+So this didn't affect the generated program, it just affected how the
+template definition was read.
+
+% Local Variables:
+% TeX-master: "devel_guide"
+% End: