Unused rules?

para: line+lf.          {A paragraph is zero or more words separated
by spaces, then optional spaces before the para symbol}
-line: ~[#a]*.
-lf: -#a.                        {I assume you don't want to see
either in the output}
-word: (letter; punctuation)+. {A word is a string of one or more
letters and punctuation}
-letter: [L].
-punctuation: [".;:,'?!"].           {I added question mark and
exclamation mark}
-s: " "+.                                  {You definitely want to see
the spaces in your paragraphs}

results in

**** Grammar has several start symbols: {"para"; "s"; "word"}
   8 -s: " "+.                                  {You definitely want
to see the spaces in your paragraphs}

                                  ^
Failed

Is this a nuisance or bug?

regards


-- 
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.

Received on Thursday, 18 November 2021 13:31:41 UTC