Package: tcllib, Version: CVS HEAD
doctoc_lang_syntax -
doctoc language syntax
This document contains the formal specification of the syntax of the doctoc markup language, version 1.1 in Backus-Naur-Form. This document is intended to be a reference, complementing the doctoc language command reference. A beginner should read the much more informally written doctoc language introduction first before trying to understand either this document or the command reference.
Each markup command is a just Tcl command surrounded by a matching pair of [ and ]. Which commands are available, and their arguments, i.e. syntax is specified in the doctoc language command reference.
In this document we specify first the lexeme, and then the syntax, i.e. how we can mix text and markup commands with each other.
Regarding the syntax of the (E)BNF itself
toc = defs TOC_BEGIN contents TOC_END { <WHITE> } defs = { INCLUDE | VSET | <WHITE> } contents = { defs entry } [ defs ] entry = ITEM | division division = DIVISION_START contents DIVISION_END
doctoc_intro, doctoc_lang_intro, doctoc_lang_cmdref, doctoc_lang_faq
markup, semantic markup, doctoc markup, doctoc language, doctoc syntax, doctoc commands