Re: [Kernfach-devel]Re4: Kernfach
Status: Planning
Brought to you by:
dilmah
From: Denis L. <dl...@sm...> - 2005-01-11 07:20:46
|
> > I think we should write this translator in plain C99, even without any > > C++ extensions. > Why in plain C99? I not insist on using OOP but I plan to use C++ as > improved C. It has very useful features such as enums and it is possible to > declare variables anywhere in the code you need. plain C also has enums. Scattering declaration of variables everywhere -- not sure it is such a big merit.. OK, I do not insist on plain C, but suggest using C++ features only if they are really needed. > > If kernfach is syntactically just lists -- do you think we need to use any > > lex/yacc stuff? > I think that thanks to simply syntax of kernfach it is not necessary to use > such utils as lex and yacc. > > Although we may use them. What do you think about them ? Probably we do not need them for kernfach->C translator. Things will get more complicated when we will write C->kernfach and other translators. But I want those translators to be written in kernfach so it will be not much use for lex/yacc because they generate C code. > I think it is time to reach agreement about syntax of kernfach ( maybe > approximately). I\'ll try to prepare preliminary specification for kernfach in the next few days. |