summaryrefslogtreecommitdiff
path: root/web/glasgow/lit2x-0.16/literate/lit-2latex-lex.lprl
diff options
context:
space:
mode:
Diffstat (limited to 'web/glasgow/lit2x-0.16/literate/lit-2latex-lex.lprl')
-rw-r--r--web/glasgow/lit2x-0.16/literate/lit-2latex-lex.lprl23
1 files changed, 23 insertions, 0 deletions
diff --git a/web/glasgow/lit2x-0.16/literate/lit-2latex-lex.lprl b/web/glasgow/lit2x-0.16/literate/lit-2latex-lex.lprl
new file mode 100644
index 0000000000..a0f17f6c33
--- /dev/null
+++ b/web/glasgow/lit2x-0.16/literate/lit-2latex-lex.lprl
@@ -0,0 +1,23 @@
+\section[lit2latex_for_lex]{Lit2latex-only code for language \tr{lex}}
+
+\begin{code}
+sub print_code_blk { # just use the std
+ local($codetxt) = @_;
+
+ if ($Lang_typeset =~ /tgrind/) {
+ # 'yacc' is the nearest thing
+ &std_tgrind_code_blk('yacc', $codetxt);
+ } else {
+ &std_print_code_blk($codetxt);
+ }
+}
+
+sub mk_code_frag {
+ local($codetxt) = @_;
+
+ &std_mk_code_frag($codetxt);
+}
+
+# this keeps 'do'ing happy
+1;
+\end{code}