diff options
author | Taco Hoekwater <taco@elvenkind.com> | 2006-12-08 16:01:22 +0000 |
---|---|---|
committer | Taco Hoekwater <taco@elvenkind.com> | 2006-12-08 16:01:22 +0000 |
commit | a55e1b8331601196626c7c161633e82bb79cff27 (patch) | |
tree | 59c0aaa3725ad6191b0cb4542636001e0d0cb1ac /Master/texmf-dist/doc/context/third/bnf/README | |
parent | 1b2c4f55681cc066837d2ed83634ca8ef98acdee (diff) |
a new package: context-contrib
git-svn-id: svn://tug.org/texlive/trunk@2640 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/context/third/bnf/README')
-rw-r--r-- | Master/texmf-dist/doc/context/third/bnf/README | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/context/third/bnf/README b/Master/texmf-dist/doc/context/third/bnf/README new file mode 100644 index 00000000000..891661832f9 --- /dev/null +++ b/Master/texmf-dist/doc/context/third/bnf/README @@ -0,0 +1,39 @@ + + + BNF Module README + + +INTRODUCTION + + + The t-bnf module implements a way to easily write BNF grammars in CONTEXT. + Let's look at an example BNF grammar in a document: + + \starttext + + Here's a \BNF\ grammar. Enjoy. + + \placebnfgrammar + [here] + [bnf:test] + {A test of the \BNF\ module} + {\startbnfgrammar[] + <S>: a<S>b + <S>: $\epsilon$ + \stopbnfgrammar} + + Which will match the language $L = \{\,a^nb^n \mid n \geq 0\,\}$. + + \stoptext + + You may try to generate module documenation embedded in t-bnf.tex with texexec + as well: + + % texexec --interface=en --module --pdf t-bnf.tex + + If you have any issues with creating the documentation this may be a result + of lacking the proper language format. You can look up the proper + information for generating these formats in minstall.pdf at PRAGMA-ADEs site + (http://www.pragma-ade.com/). + + Enjoy! |