This is the mail archive of the docbook@lists.oasis-open.org mailing list for the DocBook project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Tags for BNF/EBNF


I'm using DocBook to create a document explaining to our developers 
our conventions for constructing CVS tags.  Because they're an 
audience of developers, I believe they'll understand a BNF 
description.  Unless I've missed something, there don't seem to be 
DocBook XML tags directed specifically at representing BNF grammars. 
What's the best way to do something like this in DocBook?  Should I
just give up on conveying such granular structure in the XML and 
use something like <literallayout> with some <replaceable>s thrown
in?

  ReleaseTag    ::=
        <ProductName>-<MajorVersion>_<MinorVersion>[_<UpdateVersion>]-<Designation>-[<Increment>]

  ProductName   ::= [A-Z_]+

  MajorVersion  ::= [0-9]+

  MinorVersion  ::= [0-9]+

  UpdateVersion ::= [0-9]+

  Increment     ::= [0-9]+

  Designation   ::= DEV
                  | INTERNAL_TESTING
                  | ALPHA
                  | BETA
                  | RELEASE_CANDIDATE
                  | RELEASE

-- 
+-------------------------------------------------------------------+
| Dave Makower                                 <davemak@iclick.com> |
| Manager of Portal Architecture & Development                      |
+--------------------------------+----------------------------------+
|   iClick, Inc.                 |   (914) 872-8030                 |
|   120 Bloomingdale Road        |   (914) 872-8100   fax           |
|   3rd Floor                    |   (914) 872-8000   main          |
|   White Plains, NY  10605      |   http://www.iclick.com/         |
+--------------------------------+----------------------------------+


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]