|From:||Tony Finch <firstname.lastname@example.org>|
|Date:||30 Aug 2007 00:42:13 +0100 (BST)|
|Posted-Date:||29 Aug 2007 22:08:37 EDT|
"Thomas Goorden" <email@example.com> 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 <firstname.lastname@example.org> http://dotat.at/
Return to the
Search the comp.compilers archives again.