|compact recursive-descent parsing of expressions firstname.lastname@example.org (1992-05-25)|
|Re: compact recursive-descent parsing of expressions email@example.com (1992-05-26)|
|Date:||Mon, 25 May 1992 17:50:49 GMT|
It's used by lcc, but you needn't look there for a description:
%T Compact Recursive-descent Parsing of Expressions
%A D. R. Hanson
%J SOFTWARE - Practice and Experience
%D December 1985
%K Recursive-descent parsing, Expression parsing, Precedence, Compilers
I have seen a similar technique used before (in a C compiler written by
David Conroy -- cf. micro-emacs), circa 1979/80, but David might well have
been using it for some time. (I haven't got the source code of that
compiler, and so I can't say how closely the two implementations
correspond in detail.) I liked it enough then to use it in a parser for
Pascal, and later in a parser for regular expressions.
Still, like most good ideas that someone probably patented last year, this
one has been about for some time!
Return to the
Search the comp.compilers archives again.