Re: SAS code with Lex & Yacc

Mark Kvale <kvale@pacbell.net>
9 Sep 2003 23:00:01 -0400

          From comp.compilers

Related articles
SAS code with Lex & Yacc Carl.maughan@equifax.com (2003-09-04)
Re: SAS code with Lex & Yacc kvale@pacbell.net (Mark Kvale) (2003-09-09)
| List of all articles for this month |

From: Mark Kvale <kvale@pacbell.net>
Newsgroups: comp.compilers
Date: 9 Sep 2003 23:00:01 -0400
Organization: EasyNews, UseNet made Easy!
References: 03-09-029
Keywords: parse
Posted-Date: 09 Sep 2003 23:00:01 EDT

Carl Maughan wrote:


> Has anyone had any experience of using lex and yacc to process SAS
> code? Any examples to get me started? ...
I have never tried to parse SAS using lex or yacc (nor seen a SAS
grammar), but the following is a nascent parser for SAS programs, in
perl:


http://hotspur.psych.yorku.ca/ftp/sas/perl/


As Michael Friendly (the author) says, high-fidelity conversion is
likely to either require building an emulator of the SAS macro
processor, or to have access to preprocessed output.


                Mark


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.