On 30 October 2016 at 19:11, Jaime Tarrasa <[email protected]> wrote: > > > El domingo, 30 de octubre de 2016, 2:22:32 (UTC+2), Lex Trotman escribió: >> >> As far as I know there is no rigourous syntax definition. Asciidoc is >> a highly context dependent language, so formal techniques like grammar >> specifications are difficult to apply to it since most are context >> free constructions. > > > I can't believe that. I accept that it is highly configurable, and that each > implementation may change behavior a lot, but there must be a basic formal > syntax, otherwise, we would have a babel like in markdown with a mess of > versions and variations. > > I can't believe that asciidoc standardization relies on having a single > implementation (or two with asciidoctor) and not in a formal specification.
Asciidoc Python has no formal specification beyond its code and user manual. Asciidoctor started to produce a formal grammar, but the last commit was over a year ago https://github.com/asciidoctor/asciidoc-grammar-prototype. Because Asciidoc is so context dependent I would be very doubtful that any formal methods such as BNF or even PEG would work, the syntactic parsing changes depending on attribute values. Any specification would be in human language (probably English :) and use lots of words and not be particularly formal. Nobody has done it to my knowledge. What Asciidoc does have is a reasonable regression test suite which Asciidoctor used to verify its implementation to ensure compatibility IIUC. Cheers Lex > > > -- > You received this message because you are subscribed to the Google Groups > "asciidoc" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/asciidoc. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "asciidoc" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/asciidoc. For more options, visit https://groups.google.com/d/optout.
