cpplox icon indicating copy to clipboard operation
cpplox copied to clipboard

Following Nystrom's book Crafting Interpreters, implemented in C++.

Results 10 cpplox issues
Sort by recently updated
recently updated
newest added

When you call a method, it starts at the top of the class hierarchy and works down. A superclass method wins over a subclass method. In order to get to...

effort: large
priority: x-low

Only methods on the class can access the raw fields.

effort: large
priority: high

Members on a class that look like field reads and writes but that actually execute user-defined code.

effort: medium
priority: medium

Hint: Make LoxClass extend LoxInstance and go from there.

effort: medium
priority: medium

It should be a syntax error to have a break statement appear outside of any enclosing loop.

effort: medium
priority: high

If they enter a statement, execute it. If they enter an expression, evaluate it and display the result value.

effort: small
priority: medium

Give them the same precedence and associativity as in C.

effort: medium
priority: low

Make sure to handle newlines in them. Consider allowing them to nest.

effort: small
priority: low