Git Product home page Git Product logo

ggnore's People

Contributors

bdevorem avatar johnathonnow avatar nicholascjones avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

nnnjjj

ggnore's Issues

Breaks with structs

        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);
}

Pointer Declarations

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'

Add GPLv3 Headers

None of the source files have the heading comment for the source license.

Convert to python3

Um, so this project is using the dead snake. Make it use the good snake.

Add warning for GGcc?

GGcc is destructive - perhaps it should warn the user / the README should state that it can / will mangle code?

GGcc is too nondeterministic

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.