antarestrader / sapphire

The Sapphire Programming Language [WIP]
GNU General Public License v3.0
1 stars 0 forks source link

Scanner needs to fail gracefully #20

Open antarestrader opened 10 years ago

antarestrader commented 10 years ago

If the scanner fails to scan a certain lexem it's only option is to crash the program with an error message. In some way the scanner needs to work in an Error monad and return a failure message when things go wrong. This is particularly critical because blocks are no longer all scanned at once.