Subject: Re: Visual Studio Makefiles
From: Eric Christopher <[email-masked]>
To: [email-masked]
Date: 11 Jun 1999 10:50:31 -0700
Newsgroups: cygnus.gnu-win32

> Do anyone of you know what is the grammar of the Microsoft project files/
> Gnu makefiles? What do you think about a converter based on ANTLR ( a
> flex/Yacc like with a lot of enhancements)
> 

I was looking at something like this the other day and was unable to find
much of a grammar.  The basics are pretty easy to work off of, e.g.:

Rule:

target: deps
<tab>	commands
.
.
.

target: deps
<tab>	commands
.
.
.

This gives us:

rule -> target:<sp>deplist<CR>commandlist
target -> [a-z][A-Z]		<--- digits?
deps -> deplist|objectfilelist|targetlist|e
commandlist -> commandlist|command
command -> <tab>command
objectfilelist -> objectfilelist|object
targetlist -> targetlist|target

Combine this with macros:

MACRO(foo, bar)

And you have most of a makefile.

This sound about right to everyone?  The only problem that I have is
distinguishing Macros from targets... managing internal rules would be
interesting too, but basically this looks right afaict.

Comments?

-eric

--
Want to unsubscribe from this list?
Send a message to [email-masked]