Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Pieter Koopman
Personal Prof public repository
Commits
ebfdb79c
Commit
ebfdb79c
authored
Feb 17, 2020
by
Markus Klinik
Browse files
Main: support supermarket
parent
2e2198e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Main.rsc
View file @
ebfdb79c
...
...
@@ -22,6 +22,7 @@ import AssignmentPropositionalRules;
import AssignmentStreamsRules;
import AssignmentFileFinderMergeSortRules;
import AssignmentTaxiRules;
import AssignmentSupermarketRules;
// args[0] should be the two-digit assignment number like 01 or 14
// args[1] should be the absolute path to the project directory
...
...
@@ -86,6 +87,11 @@ int main(list[str] args)
set[Declaration] ast = createAstsFromDirectory(projectDir, true, javaVersion=defaultJavaVersion);
messages += allAssignmentTaxiRules(m, ast);
}
case "supermarket":
{
set[Declaration] ast = createAstsFromDirectory(projectDir, true, javaVersion=defaultJavaVersion);
messages += allAssignmentSupermarketRules(m, ast);
}
case "coding": messages += {}; // only the coding rules
default: println("Rules for assignment " + assignmentNr + " not implemented");
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment