|From:||Tony Finch <email@example.com>|
|Date:||30 Aug 2007 00:42:13 +0100 (BST)|
|Posted-Date:||29 Aug 2007 22:08:37 EDT|
"Thomas Goorden" <firstname.lastname@example.org> wrote:
>Failing that, what would be the best approach to write a parser like
>that from scratch? My guess is to follow a simple design pattern for
>it, keeping the target environment in mind. Since I don't want to
>reinvent the wheel, a simple but proven idea would be best.
Have a look at Douglas Crockford's top-down operator precedence
parser, in the style invented by Vaugn Pratt.
f.a.n.finch <email@example.com> http://dotat.at/
Return to the
Search the comp.compilers archives again.