[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: About parsing rules!!!
From: |
John |
Subject: |
Re: About parsing rules!!! |
Date: |
Fri, 16 May 2003 02:31:10 -0400 (EDT) |
> Is there any way from which i seperate my rules and
> catching string and write in other file. So what ever
> i have written in between %% and %% in other file.
Not with flex, but with m4:
%%
m4_include(`rules.l')
%%
# Makefile
lex.yy.l: scan.l rules.l
m4 -P $< > $@
lex.yy.c: lex.yy.l
flex $<
.SECONDARY: lex.yy.l lex.yy.c