andrew-johnson-4 / lambda-mountain

Compact Portable Assembler (5K SLOC)
MIT License
12 stars 0 forks source link

Better error messages for pattern match typos #535

Open andrew-johnson-4 opened 4 days ago

andrew-johnson-4 commented 4 days ago
match x (
   ()
   (Pair( x y )) ( ... )
)

vs 

match x (
   ()
   (TPair( x y )) ( ... )
)

will encounter an error during preprocess instead of typecheck