Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We are going to start enforcing the invariant that an expression with priority N can only directly things of higher priority. In that case for something like this: ``` enum Expr { Id(Id), Literal(Literal), #[precedence(1, left)] Add(Expr, Expr), #[precedence(2, left)] Mul(Expr, Expr), } ``` you want Id/Literal to be max priority so they can be embedded into anything.
- Loading branch information