Skip to content
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

trace reconstruction: bail on parsing errors #1

Merged
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
2 changes: 2 additions & 0 deletions dafny/lcf/datalog/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@ static void Main(string[] args) {
try {
// Parse rule set.
var rules_parser = BuildParser(args[0]);
rules_parser.ErrorHandler = new BailErrorStrategy();
var rules_parse_tree = rules_parser.program();
var rules_ast_builder = new AstBuilder();
var rules = (Sequence<_module.Rule>)rules_ast_builder.VisitProgram(rules_parse_tree);

// Parse trace.
var trace_parser = BuildParser(args[1]);
trace_parser.ErrorHandler = new BailErrorStrategy();
var trace_parse_tree = trace_parser.trace();
var trace_ast_builder = new AstBuilder();
var trace = (Sequence<_module.Event>)trace_ast_builder.VisitTrace(trace_parse_tree);
Expand Down