Skip to content

Tidy the SAWCore parser #2331

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
May 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions intTests/test_parse_errors/coreparser001.log.good
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Loading file "coreparser001.saw"
Stack trace:
"load_sawcore_from_file" (coreparser001.saw:2:1-2:23)
Module parsing failed:
PosPair {_pos = Pos {posBase = ".", posPath = "coreparser001.sawcore", posLine = 2, posCol = 7}, val = UnexpectedToken (TKey "where")}

FAILED
2 changes: 2 additions & 0 deletions intTests/test_parse_errors/coreparser001.saw
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
enable_experimental;
load_sawcore_from_file "coreparser001.sawcore";
3 changes: 3 additions & 0 deletions intTests/test_parse_errors/coreparser001.sawcore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-- Missing module name in file header
module where
import Prelude;
Loading
Loading