Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Coffee corner » "(national) C compiler"
Re: "(national) C compiler" [message #20708 is a reply to message #20707] Wed, 01 April 2009 12:50 Go to previous messageGo to previous message
kbyte is currently offline  kbyte
Messages: 87
Registered: July 2008
Member
Yes, the third is the easier i think.
When i thought in macros approach will be replace all C and preprocessor using macros and it is not easy when some expression have spaces in the middle. I think that will always a parsing stage for macros too. Example:

abc.h
#define main_include "#include <stdio.h>"
#define main_func "int main(int argc, char**argv)"
#define bloc_b {
#define bloc_e }


Final program:
#include abc.h

main_include
main_func
bloc_b
bloc_e

And not compiles...


So, maybe the gcc lexical translation for C only language can make it.


(Sorry about my thoughs. I am not a C or C++ pro)

Kim

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Potential U++ job in CZ
Next Topic: subversion client recommendation
Goto Forum:
  


Current Time: Sat May 11 07:22:21 CEST 2024

Total time taken to generate the page: 0.03239 seconds