-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Real compiler script #10
Comments
I'm not quite understanding. What do you want to compile it to? This project is not a compiler. It is a parser. |
@albertz to a Python script, like |
…several c files
I've named my take on this runcprog.py. There's no -I or -D or any other option parsing (just arguments) but as a substitute for the idea of -D you could put "#define"s in a .h file and make that your first argument, for example you might make mydefines.h and do As for -I support, that's going to require some deeper hacking in cparser.py to have support for searching multiple directories. Right now, readLocalInclude and the helper findIncludeFullFilename are just working relative to current working directory. A possible work around for that is to invoke runcprog.py with paths to every relevant .h file as the first set of arguments: Comments before a pull request? |
Ah I see. That looks useful. About the code: I would avoid the |
I've also created something for this even before I've opened this issue. |
@kaeptmblaubaer1000 Ah, I think I also understand what you have now. This could also be useful. |
dropwhile and takewhile still a thing, going to look for an option parsing library to simplify "--" handling further (will need anyway for options)
dropwhile and takewhile still a thing, going to look for an option parsing library to simplify "--" handling further (will need anyway for options)
A real compiler script with input file options as well as options like
-I
,-D
and-o
would be great-The text was updated successfully, but these errors were encountered: