comp.lang.ada
 help / color / mirror / Atom feed
From: "G.B." <bauhaus@futureapps.invalid>
Subject: Re: [Slightly OT] How to process lightweight text markup languages?
Date: Mon, 19 Jan 2015 12:09:40 +0100
Date: 2015-01-19T12:09:40+01:00	[thread overview]
Message-ID: <m9iokj$upl$1@dont-email.me> (raw)
In-Reply-To: <ynm6coktfevl.1esu61g1n9477.dlg@40tude.net>

On 18.01.15 21:21, Dmitry A. Kazakov wrote:
> This is a pretty
> straightforward and simple technique.

The trouble is with expectations:

Input:

  ((){)([()[[]])]

Typical parsers will respond with such useless results
as "error at EOF". Not something that a (close to)
natural language processor can afford, I think.

What is needed, maybe, is a way to judiciously transcend
the simplicity of a dumb, straight forward stack with REJECT
at the end. The processor should, after all, output text
that is maximally useful because this justifies the effort
in the first place. What syntactical criteria are there,
if any, that could be the input to finding these maxima?

Is context dependence required? A very simple example is
EOL, if there is one: one corrupted line of output is
better than all remaining lines corrupted.

Can "judicious" entail the use of special casing and be
done?

Would it be possible to describe a fixed point so that
the translation functions would close in on this best
result?

  reply	other threads:[~2015-01-19 11:09 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-18 18:04 [Slightly OT] How to process lightweight text markup languages? Natasha Kerensikova
2015-01-18 20:21 ` Dmitry A. Kazakov
2015-01-19 11:09   ` G.B. [this message]
2015-01-19 13:21     ` Dmitry A. Kazakov
2015-01-19 16:58       ` G.B.
2015-01-19 17:58         ` Dmitry A. Kazakov
2015-01-20 14:41           ` Robert A Duff
2015-01-19 20:12         ` Randy Brukardt
2015-01-19 21:37           ` gautier_niouzes
2015-01-20  8:44             ` Dmitry A. Kazakov
2015-01-20 12:36               ` G.B.
2015-01-20 13:14                 ` Dmitry A. Kazakov
2015-01-20 20:36               ` Shark8
2015-01-20 21:16                 ` Dmitry A. Kazakov
2015-01-20 22:55                   ` J-P. Rosen
2015-01-21  8:35                     ` Dmitry A. Kazakov
2015-01-20 19:19             ` Natasha Kerensikova
2015-01-20 21:43             ` Randy Brukardt
2015-01-20 19:16           ` Natasha Kerensikova
2015-01-20 18:47   ` Natasha Kerensikova
2015-01-20 19:44     ` Dmitry A. Kazakov
2015-01-20 22:00       ` Randy Brukardt
2015-01-22 13:41         ` Natasha Kerensikova
2015-01-22 18:38           ` Dmitry A. Kazakov
2015-01-22 21:48             ` Randy Brukardt
2015-01-23 10:24     ` Stephen Leake
2015-01-21 14:54 ` Stephen Leake
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox