Comment 1 by Nikolaus Schaller, Jul 3, 2014
almost done - but syntax and tree generation not yet complete. Evaluator also does not do anything useful yet. New ideas: * allow to "run" compiled binaries through objc file.mobj * Evaluator: safely check for array and integer overflows, NULL pointers etc. * debugging???
Sign in to reply to this comment.
Reported by Nikolaus Schaller, May 1, 2014
1. handle #!/path 2. check if there is a $0.objcbin (or similar) 3. if not pipe through cpp 4. build AST 5. store tree in $0.objcbin (precompiled...) 6. if yes, load from $0.objcbin 7. execute tree by directly setting up classes and objects (needs to interpret C statements!) This would allow to write scripts like #!/usr/local/bin/objc main() { [Class method]; } or call them as objc file similar to python file php file ... and -l could just check for syntax errors and -c would just compile Generally this would make it a much ore useful command line tool. Not only compiler. Or sort of inter-piler :)