Commit ebfdb79c authored by Markus Klinik's avatar Markus Klinik
Browse files

Main: support supermarket

parent 2e2198e0
...@@ -22,6 +22,7 @@ import AssignmentPropositionalRules; ...@@ -22,6 +22,7 @@ import AssignmentPropositionalRules;
import AssignmentStreamsRules; import AssignmentStreamsRules;
import AssignmentFileFinderMergeSortRules; import AssignmentFileFinderMergeSortRules;
import AssignmentTaxiRules; import AssignmentTaxiRules;
import AssignmentSupermarketRules;
// args[0] should be the two-digit assignment number like 01 or 14 // args[0] should be the two-digit assignment number like 01 or 14
// args[1] should be the absolute path to the project directory // args[1] should be the absolute path to the project directory
...@@ -86,6 +87,11 @@ int main(list[str] args) ...@@ -86,6 +87,11 @@ int main(list[str] args)
set[Declaration] ast = createAstsFromDirectory(projectDir, true, javaVersion=defaultJavaVersion); set[Declaration] ast = createAstsFromDirectory(projectDir, true, javaVersion=defaultJavaVersion);
messages += allAssignmentTaxiRules(m, ast); 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 case "coding": messages += {}; // only the coding rules
default: println("Rules for assignment " + assignmentNr + " not implemented"); default: println("Rules for assignment " + assignmentNr + " not implemented");
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment