diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/simplebnf/simplebnf-doc.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/simplebnf/simplebnf-doc.tex | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/Master/texmf-dist/doc/latex/simplebnf/simplebnf-doc.tex b/Master/texmf-dist/doc/latex/simplebnf/simplebnf-doc.tex index 30ea889f18b..99ac96780b2 100644 --- a/Master/texmf-dist/doc/latex/simplebnf/simplebnf-doc.tex +++ b/Master/texmf-dist/doc/latex/simplebnf/simplebnf-doc.tex @@ -32,10 +32,10 @@ \title{% \textsf{simplebnf} --- A simple package to format Backus-Naur form% - \footnote{This file describes v0.3.0.}} + \footnote{This file describes v0.3.1.}} \author{Jay Lee\footnote{E-mail: % \href{mailto:jaeho.lee@snu.ac.kr}{\texttt{jaeho.lee@snu.ac.kr}}}} -\date{2022/05/07} +\date{2022/05/08} \begin{document} \maketitle @@ -43,9 +43,24 @@ This package provides a simple way to typeset grammars written in Backus-Naur form (BNF). \begin{presentcommand} - \cmd{bnfexpr} \cmd{bnfannot} + \cmd{SimpleBNFDefEq} \end{presentcommand} -These commands are wrappers around \cmd{texttt} and \cmd{textit} respectively. +This command is used to typeset the definition symbol separate a nonterminal from its productions. It defaults to \SimpleBNFDefEq. It can be redefined to customized output using \verb|RenewDocumentCommand|. + +\begin{presentcommand} + \cmd{SimpleBNFDefOr} +\end{presentcommand} +This command is used to typeset the separator symbol between productions. It defaults to \SimpleBNFDefOr. It can be redefined to customized output using \verb|RenewDocumentCommand|. + +\begin{presentcommand} + \cmd{bnfexpr} +\end{presentcommand} +This command is used when typesetting the BNF nonterminal and productions. It defaults to a wrappers around \cmd{texttt}. It can be redefined to customized output using \verb|RenewDocumentCommand|. + +\begin{presentcommand} + \cmd{bnfannot} +\end{presentcommand} +This command is used when typesetting the annotations on nonterminals and productions. It defaults to a wrappers around \cmd{textit}. It can be redefined to customized output using \verb|RenewDocumentCommand|. \begin{presentcommand} \env{bnfgrammar}{text} |