|
Created |
|
2014-05-01 17:10:13 CEST
by
Nikolaus Schaller
|
|
Updated |
|
2014-07-03 08:02:12 CEST |
|
Status |
|
New |
|
Related to: |
|
something |
|
Followed by |
|
2 persons |
|
Labels |
|
Type: |
|
Priority |
|
|
Reported by
Nikolaus Schaller
2014-05-01 17:10:13 CEST
[Report as Spam]
|
|
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 :) |
|
|
Comment
1
by
Nikolaus Schaller
2014-07-03 08:02:11 CEST
[Report as Spam]
|
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??? |
|
|
|
Please
Sign in
to write comments |
|