AZHenley / knox

A toy programming language written in Go that compiles to C.
MIT License
96 stars 7 forks source link

Increase precedence of casting #177

Closed AZHenley closed 4 years ago

AZHenley commented 4 years ago

The "as" operator should be much higher precedence (more like Rust's).

1 + x as y 3 should evaluate as 1 + (x as y) 3 x < y as z should evaluate as x < (y as z)