[GoLUG] [parse] My first stab at Backus-Naur Form
Steve Litt
slitt at troubleshooters.com
Mon Nov 13 01:44:16 EST 2023
Hi all,
I'm trying to form a Backus-Naur form for my Stylz authoring language.
Stylz is simply a text file with paragraphs separated by one or more
blank lines and interspersed with various tokens to grant various
document constructs and styles. It will be constructed for fast
authoring, with all tokens required to be lower case plus punctuation.
So far I have:
<doc> ::= | <chunk> | <doc> <chunk>
<chunk> ::= <par> | <div> | <pre> | <toc> | <idx> | <bib> | <img> | <vid> | <link> | <ref>
<par> ::= | <link> <par> | <image> <par> | <span> <par> | <token> <par> | <text> <par> | <text>
Well, that's enough for tonight.
SteveT
Steve Litt
Autumn 2023 featured book: Rapid Learning for the 21st Century
http://www.troubleshooters.com/rl21
More information about the GoLUG
mailing list