Debian Codegraph @

texmf-dist/tex/latex/lwarp/lwarp-backnaur.sty

raw
1 %%
2 %% This is file `lwarp-backnaur.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% lwarp.dtx (with options: `backnaur')
8 %% This is a generated file.
9 %% Copyright 2016-2026 Brian Dunn
10 %%
11 %% This work may be distributed and/or modified under the
12 %% conditions of the LaTeX Project Public License, either version 1.3
13 %% of this license or (at your option) any later version.
14 %% The latest version of this license is in
15 %% http://www.latex-project.org/lppl.txt
16 %% and version 1.3 or later is part of all distributions of LaTeX
17 %% version 2005/12/01 or later.
18 \LWR@ProvidesPackagePass{backnaur}[2019/06/18]
19 \renewenvironment{bnf}{\eqnarray}{\endeqnarray}
20 \renewenvironment{bnf*}{\csuse{eqnarray*}}{\csuse{endeqnarray*}}
21 \begin{warpMathJax}
22 \CustomizeMathJax{\newcommand{\bnfpn}[1]{\langle \text{\textrm{#1}} \rangle}}
23 \CustomizeMathJax{\newcommand{\bnfor}{\; \mid \;}}
24 \CustomizeMathJax{\newcommand{\bnfsp}{\;}}
25 \IfPackageLoadedWithOptionsTF{backnaur}{perp}{
26 \CustomizeMathJax{\newcommand{\bnfes}{\perp}}
27 }{
28 \IfPackageLoadedWithOptionsTF{backnaur}{epsilon}{
29 \CustomizeMathJax{\newcommand{\bnfes}{\epsilon}}
30 }{
31 \CustomizeMathJax{\newcommand{\bnfes}{\lambda}}
32 }
33 }
34 \IfPackageLoadedWithOptionsTF{backnaur}{tsrm}{
35 \CustomizeMathJax{\newcommand{\bnfts}[1]{\text{#1}}}
36 }{
37 \CustomizeMathJax{\newcommand{\bnfts}[1]{\text{\texttt{#1}}}}
38 }
39 \CustomizeMathJax{\newcommand{\bnftd}[1]{\text{\textit{#1}}}}
40 \CustomizeMathJax{\newcommand{\bnfsk}{\dots}}
41 \IfPackageLoadedWithOptionsTF{backnaur}{altpo}{
42 \CustomizeMathJax{\newcommand{\bnfpo}{::=}}
43 }{
44 \CustomizeMathJax{\newcommand{\bnfpo}{\models}}
45 }
46 \CustomizeMathJax{\newcommand{\bnfprod}{\ifstar{\LWRbnfprodnn}{\LWRbnfprodyn}}}
47 \CustomizeMathJax{\newcommand{\LWRbnfprodyn}[2]{\bnfpn{#1} & \bnfpo & #2}}
48 \CustomizeMathJax{\newcommand{\LWRbnfprodnn}[2]{\nonumber \bnfpn{#1} & \bnfpo & #2}}
49 \CustomizeMathJax{\newcommand{\bnfmore}{\ifstar{\LWRbnfmorenn}{\LWRbnfmoreyn}}}
50 \CustomizeMathJax{\newcommand{\LWRbnfmoreyn}[1]{ & & #1}}
51 \CustomizeMathJax{\newcommand{\LWRbnfmorenn}[1]{\nonumber & & #1}}
52 \end{warpMathJax}
53
54 \endinput
55 %%
56 %% End of file `lwarp-backnaur.sty'.