[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: official orgmode parser
From: |
Ken Mankoff |
Subject: |
Re: official orgmode parser |
Date: |
Mon, 26 Oct 2020 13:26:06 -0700 |
User-agent: |
mu4e 1.4.3; emacs 27.1 |
On 2020-10-26 at 10:59 -07, Tom Gillespie <tgbugs@gmail.com> wrote...
> You can identify headlines, but you can't identify nesting level;
Do you need to? This is valid as an entire Org file, I think:
*** foo
* bar
***** baz
And that can be represented in EBNF. I'm not aware of places where behavior is
indent-level specific, except inline tasks, and that edge case can be
represented.
> There is a similar issue with the indentation level in
> order to correctly interpret plain lists.
list ::= ('+' string newline)+ sublist?
sublist ::= (indent list)+
I think this captures lists?
> Another example of something that requires a stack is the greater
> blocks, where you have #+begin_{name} and #+end_{name}, and the names
> must match.
Definitely not able to be represented in EBNF, unless as you say {name} is a
limited vocabulary.
-k.
- Re: official orgmode parser, Daniele Nicolodi, 2020/10/24
- Re: official orgmode parser, Ken Mankoff, 2020/10/26
- Re: official orgmode parser, Nicolas Goaziou, 2020/10/26
- Re: official orgmode parser, Ken Mankoff, 2020/10/26
- Re: official orgmode parser, Nicolas Goaziou, 2020/10/26
- Re: official orgmode parser, Ken Mankoff, 2020/10/26
- Re: official orgmode parser, Tom Gillespie, 2020/10/26
- Re: official orgmode parser,
Ken Mankoff <=
- Re: official orgmode parser, Tom Gillespie, 2020/10/26
- Re: official orgmode parser, Ken Mankoff, 2020/10/26
- Re: official orgmode parser, Tom Gillespie, 2020/10/26
- Re: official orgmode parser, Przemysław Kamiński, 2020/10/27