|LEX/YACC - grammar problems and printing error messages firstname.lastname@example.org (1992-05-28)|
|Re: LEX/YACC - grammar problems and printing error messages email@example.com (1992-05-28)|
|Re: LEX/YACC - grammar problems and printing error messages firstname.lastname@example.org (1992-05-29)|
|LEX/YACC - grammar problems and printing error messages email@example.com (1992-06-02)|
|From:||firstname.lastname@example.org (Peter Thiemann)|
|Keywords:||lex, tools, errors, FTP|
|Date:||Tue, 2 Jun 1992 11:47:35 GMT|
email@example.com (Jerry Nettleton) writes:
>As grammar errors are found, I was wondering how to
>associate the source line/column with an appropriate error message. Since
>lex deals with tokens and yacc parses the grammar, how can I get the
>current line of input to print error messages?
The compiler construction toolkit of GMD Karlsruhe, Germany, has all
the features that you want. Its scanner generator, REX, does line
buffering and keeps track of the source position in a struct with
members line and column. There is also a converter from LEX input to
REX input included.
It has been announced in this group before, and can be ftp'd from
Return to the
Search the comp.compilers archives again.