File: simplebnf.cwl

package info (click to toggle)
texstudio 4.3.1%2Bds-2
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 74,980 kB
  • sloc: cpp: 102,721; xml: 17,126; ansic: 8,143; sh: 194; javascript: 177; makefile: 28
file content (18 lines) | stat: -rw-r--r-- 412 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# simplebnf package
# Matthew Bertucci 2022/08/11 for v0.3.1

#include:expl3
#include:xparse
#include:mathtools

\SimpleBNFDefEq#*
\SimpleBNFDefOr#*

\bnfexpr{text%plain}
\bnfannot{text%plain}

\begin{bnfgrammar}#\math
\begin{bnfgrammar}[cols]#\math
\begin{bnfgrammar}[cols][newline sep regexp]#\math
\begin{bnfgrammar}[cols][newline sep regexp][non-breaking sep regexp]#\math
\end{bnfgrammar}