bdevorem / ggnore Goto Github PK
View Code? Open in Web Editor NEWGCC Goes with No Recompiling: GNU compiler collection that enforces good coding practices at the expense of the programmer
License: GNU General Public License v3.0
GCC Goes with No Recompiling: GNU compiler collection that enforces good coding practices at the expense of the programmer
License: GNU General Public License v3.0
Currently it can get stuck in cylces.
If you program wrong and do something like
int main()
{
it won't detect the function name.
It should retry GETs to duckduckgo
if (!d) return;
if (scope_level() == 1) {
d->symbol = symbol_create(SYMBOL_GLOBAL, d->type, d->name);
} else {
// nonglobal functions
if (d->type->kind == TYPE_FUNCTION) {
fprintf(stderr, "ERROR: cannot declare non-global function %s\n", d->name);
exit(1);
} else { // local vars
d->symbol = symbol_create(SYMBOL_LOCAL, d->type, d->name);
}
}
// redeclarations
if(scope_lookup_local(d->name)) {
if(d->type->kind == TYPE_FUNCTION && scope_lookup_local(d->name)) {
scope_remove_local(d->name);
d->symbol = symbol_create(SYMBOL_GLOBAL, d->type, d->name);
} else {
fprintf(stderr, "ERROR: cannot declare %s more than once\n", d->name);
exit(1);
}
}
// finish the decl
scope_bind(d->symbol->name, d->symbol);
expr_resolve(d->value);
decl_resolve100001(errors, labels);
}
void decl_resolve100001(int errors, int labels) {
if (d->code) {
scope_enter();
param_list_resolve(d->type->params);
stmt_resolve(d->code);
scope_exit();
}
decl_resolve(d->next);
}
If there are more than 1 new functions created, they all have the same name (plus a new number, that part is fine)
It re-adds scoped variables incorrectly
The function parsing in force_rot fails when a func parameter is a pointer declaration, like char * argc[]
. Exception: 'PtrDecl' object has no attribute 'names'
None of the source files have the heading comment for the source license.
current the force_rot.py only supports functions with an int return type.
Um, so this project is using the dead snake. Make it use the good snake.
The force rot currently is not able to tell the end of a function
something like
int main() {...}
leads to no action taken.
It has duckduckgo 0.3.0 or whatever, but it really uses
https://github.com/thibauts/duckduckgo
which is different and not available on pip.
There should be tests for some of the scripts here.
GGcc is destructive - perhaps it should warn the user / the README should state that it can / will mangle code?
y r we using python3
It should try each possible bit of code in a Stack Overflow post before trying the next. Ideally choosing one with the fewest changes or so if non are compilable.
Come on fam
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.