roc/crates/compiler/can
Elias Mulhall 56c5b790a7 Refactor dbg expression parsing to work more like function application
Instead of parsing dbg with an expression block, parse the dbg keyword
with no additional arguments. This way the parser treats dbg just like a
variable in function application. We desugar by pattern matching on
`Apply(Dbg, args, called_via)` nodes. This changes the output of syntax
tests since the initial AST is different, but does not change the output
of can or mono.

Add two new errors for dbg in expression position with either no args or
too many args. This is similar to the error behavior of `crash`.

Continue to parse dbg statements with an expression block, as before.
2024-08-29 15:36:48 -04:00
..
src Refactor dbg expression parsing to work more like function application 2024-08-29 15:36:48 -04:00
tests Test dbg expr desugaring 2024-08-28 12:16:22 -04:00
Cargo.toml remove redundant dependency 2024-07-23 23:16:50 +02:00