[ This is cross-posted from the Ocean of Awareness blog. ]
In
a recent post,
I looked at an unusual language which serializes arrays and strings,
using a mixture of counts and parentheses. Here is an example:
A2(A2(S3(Hey)S13(Hello, World!))S5(Ciao!))
The l…
[ This is cross-posted from the Ocean of Awareness blog. ]
A declarative parser
takes a description of your language and parses it
for you.
On the face of it, this sounds like the way you'd want
to go,
and Marpa offers that possibility -- it generates
a parser from anything you can write in BNF and,
if the parser is in one of the classes currently in
practical use,
that parse…