From: Max Nikulin <manikulin@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: The less ambiguous math delimiters in tables
Date: Fri, 3 Jan 2025 00:02:18 +0700 [thread overview]
Message-ID: <vl6gqs$m3s$1@ciao.gmane.io> (raw)
In-Reply-To: <m234i4yibe.fsf@adamkovic.org>
On 31/12/2024 04:25, Rudolf Adamkovič wrote:
> Max Nikulin writes:
>> An extensive test suite is necessary to consider alternatives for
>> parsing rules.
>
> Yes, that much is given. Without an extensive test suite, working on a
> parser would be nothing but a waste of time, and the end result would
> be, at least for us humans, an infinite stream of bugs.
I do not say that there is no tests, but to change the parser almost
certainly much more corner cases should be added. The format should be
suitable for non-elisp tools.
Ihor Radchenko. [PATCH] org-test: Create a collaborative test set for
Org buffer parser. Sat, 11 Dec 2021 22:39:07 +0800.
<https://list.orgmode.org/87fsqzi4tw.fsf@localhost>
>> Current logic may be roughly describes as the following. When Org
>> recognizes start of some element, it tries to find its end, mostly
>> neglecting opening markers. A fragment is parsed for nested elements
>> *after* boundaries of the parent element are determined.
>
> Honestly? That sounds like a wrong approach to parsing. (And if that
> is the case, then that could explain why I keep fighting the Org parser
> on a daily basis, compared to practically never in every other language
> I use.)
I expect that pandoc-like parser may reduce number of pitfalls. However,
having no experience with parsers, I will unlikely try to implement it.
I would not be surprised if it is unfeasible without some parser
generator since it should be bottom-up one. I have no idea how to
collect real life cases when current behavior is better. Otherwise it is
hard to estimate degree of disaster due to breaking change.
next prev parent reply other threads:[~2025-01-02 17:03 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-24 9:20 The less ambiguous math delimiters in tables Rudolf Adamkovič
2024-12-24 9:25 ` Ihor Radchenko
2024-12-25 17:56 ` Rudolf Adamkovič
2024-12-25 18:05 ` Ihor Radchenko
2024-12-25 20:14 ` Rudolf Adamkovič
2024-12-26 9:17 ` Ihor Radchenko
2024-12-26 13:31 ` Rudolf Adamkovič
2024-12-26 13:51 ` Ihor Radchenko
2024-12-27 13:23 ` Rudolf Adamkovič
2024-12-27 13:35 ` Ihor Radchenko
2024-12-30 21:02 ` Rudolf Adamkovič
2024-12-31 17:47 ` Ihor Radchenko
2024-12-27 17:17 ` Leo Butler
2024-12-28 16:39 ` Max Nikulin
2024-12-30 21:25 ` Rudolf Adamkovič
2025-01-02 17:02 ` Max Nikulin [this message]
2024-12-31 5:43 ` Ihor Radchenko
2024-12-31 12:20 ` Rudolf Adamkovič
2024-12-31 13:32 ` Ihor Radchenko
2024-12-31 15:57 ` Rudolf Adamkovič
2024-12-31 16:46 ` Ihor Radchenko
2025-01-02 17:20 ` Max Nikulin
2025-01-02 17:32 ` Ihor Radchenko
2025-01-03 15:14 ` Max Nikulin
2024-12-24 9:50 ` Rudolf Adamkovič
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='vl6gqs$m3s$1@ciao.gmane.io' \
--to=manikulin@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).