Matthewar / ASV

A Haskell VHDL Simulation Tool
GNU General Public License v3.0
0 stars 0 forks source link

Improved lexer error types #12

Open Matthewar opened 6 years ago

Matthewar commented 6 years ago

Add regexes to lexer to match known error cases.

Matthewar commented 6 years ago

This has been completed for all but based types for the most part (could constantly re-evaluate what to test for).

Matthewar commented 6 years ago

Need to add expression regexes for mistakes that occur there.

Matthewar commented 6 years ago

With the change from Alex (lexer generator) to Parsec (parser combinators) the error handling has changed. There are built-in types instead for errors, and these should be used as appropriate. The scope of this issue should perhaps change to advanced testing of the error messages that Parsec generates, or at least a manual review of them.

Related to issue #15 as the parsing technique has changed from Happy (parser generator) to using Parsec as well.