Re: [Oopic-compiler-devel] Compiler design
Status: Planning
Brought to you by:
ndurant
From: Neil D. <nd...@us...> - 2004-05-12 19:17:24
|
Andrew Porrett wrote: > At 03:15 AM 5/12/2004 +0100, Neil Durant wrote: > >I think we'll be able to handle the original Savage C/BASIC/Java syntaxen > >using a preprocessor like Andy's, which would then output grammar which is > >compatible with our new compiler. > > I would expect that you could handle the original syntax by taking your > definitions for C / BASIC / Java and just modifuing them a bit. IOW, you > would have 6 languages to support. That would be the other way of doing it. Ironically that would mean that some of the grammar-checking rules for the Savage C language module would have to spit out an error for certain perfectly legal C syntax... :-) I say we go for our ideal standard C to begin with, almost as a proof of concept. Then once we're happy it's all working then the other 5 languages (or more!) can be filled in. Neil -- Neil Durant <nd...@us...> |