summaryrefslogtreecommitdiff
path: root/web/glasgow/lit2x-0.16/literate/lit-2latex-lex.lprl
blob: a0f17f6c33f5eec7640525f3aa80f17e6f20880c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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}