ictrobot / c2wasm

Dissertation project - C to WebAssembly compiler, written in TypeScript

Home Page:https://ictrobot.github.io/c2wasm/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

implement CEvaluable on more types of expressions

github-actions opened this issue · comments

implement CEvaluable on more types of expressions

// TODO implement CEvaluable on more types of expressions

    const expr = ptExpression(c.expr, new Scope());
    if (expr instanceof CEvaluable) {
        // TODO implement CEvaluable on more types of expressions
        return expr.evaluate();
    }
    throw new ParseTreeValidationError(c, "Invalid constant expression");
ndex 3c1a22e..dfaa579 100644
++ b/src/tree/transform/type_transform.ts

35ee8b2906525e6eb4e942ff2099649f5c28fca8