diff options
| author | Jack Koenig | 2022-09-13 11:49:08 -0400 |
|---|---|---|
| committer | GitHub | 2022-09-13 11:49:08 -0400 |
| commit | 6cf4a175bfae5ff6eb3cd8fcdd1e5f69cda5d92d (patch) | |
| tree | e962a6898d71aea97581ae68d7c437f0de69f001 /doc | |
| parent | 50a1230de1d68014cd88e4fcca2bdf3a5c94d6d3 (diff) | |
Make the Parser handle errors more gracefully (#2549)
Ever since introducing the Listener, the firrtl Parser now can hit
errors in the code converting from concrete syntax to abstract syntax
that may be due to syntax errors. These errors are essentially broken
assumptions about the structure of the parsed code because there is an
error. These errors are reported before the standard ANTLR syntax errors
are aggregated and reported, and thus could result in less than elegant
error messages (eg. NullPointerException). Now, the Parser will mask off
such errors in the event of standard syntax errors caught by the
ANTLR-generated parser.
This commit also cleans up some ParserSpec tests slightly to make the
ScalaTest style more canonical.
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions
