|QUESTION: saving source locations during parsing firstname.lastname@example.org (Brent Benson) (1995-06-24)|
|Re: QUESTION: saving source locations during parse email@example.com (1995-06-26)|
|From:||Brent Benson <firstname.lastname@example.org>|
|Date:||Sat, 24 Jun 1995 04:38:56 GMT|
I have written a lexer and parser for a programming language syntax
using flex and byacc that produces abstract syntax trees. I would
like to be able to save the beginning and ending source code location
of each piece of concrete syntax inside the abstract syntax node that
represents the syntax form.
I am aware that I could add an action that is executed before a
particular form is recognized that saves off the source location, but
I am hoping for a solution that leaves my grammar in a nicer
Return to the
Search the comp.compilers archives again.