From fe907be6d31ae21a3da722edddf49aeedd02d71a Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sat, 24 May 2025 13:43:16 +0200 Subject: misc grammar and avoidance of abbreviations --- _markdown.qmd | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to '_markdown.qmd') diff --git a/_markdown.qmd b/_markdown.qmd index 928adac..c2cfa9f 100644 --- a/_markdown.qmd +++ b/_markdown.qmd @@ -79,16 +79,16 @@ Syntax of `Block`, `Header` and `Paragraph`. ::: Reading order matters: -The syntax diagrams should be read left-to-right and top-to-bottom, -also at places with choice -- -e.g. the block type `Header` should be tried before `Paragraph`. +The syntax diagrams should be read from left to right and top to bottom, +including at points with choices -- +for example, the block type `Header` should be tried before `Paragraph`. Otherwise if `Paragraph` syntax was parsed first, then it would match both blocks because that block type begins with any words, -including the characters defitive for the `Header` block type. +including the characters definitive for the `Header` block type. In other words, these syntax diagrams do *not* represent the more common EBNF grammars -but instead a parsing expression grammar [@Ford2004], +but instead, a parsing expression grammar [@Ford2004], chosen because context-free grammars are unlikely to be able to cover Markdown [@MacFarlane2014]. -- cgit v1.2.3