JSAbrahams / mamba

🐍 The Mamba programming language, because we care about safety
MIT License
85 stars 3 forks source link

Create readable syntax error messages #137

Closed JSAbrahams closed 5 years ago

JSAbrahams commented 5 years ago

Relevant issues

Resolves #95

Summary

Display parse errors as syntax error messages, together with the accompanyin source code. I.e.:

[syntax] ✖ --> path/to/file/generics.mamba:19:28
    |
28  |     def private fun_b(self => print "this function is private!"
    |                            ^^ Expected an identifier, but found token '=>'