We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
A list of or groups and and groups isn't enough for preqs. For example, CS 3000:
Actual:
(CS 2510 or DS 2500) and CS 1800 or EECE 2160
Output:
CS 2510 or (DS 2500 and CS 1800) or EECE 2160 [ [ { subject: "CS", number: "2510" } ], [ { subject: "DS", number: "2500" }, { subject: "CS", number: "1800" } ], [ { subject: "EECE", number: "2160" } ] ]
The text was updated successfully, but these errors were encountered:
Some courses have prereqs (ex, Graduate Admission) which aren't courses
Sorry, something went wrong.
Switching to a structure that looks like
[ "(", "(", { subject: "CS", number: "2510" }, "Or", { subject: "DS", number: "2500" }, ")", "And", { subject: "CS", number: "1800" }, ")", "Or", { subject: "EECE", number: "2160" } ]
which translates to
( ( CS 2510 or DS 2500 ) and CS 1800 ) or EECE 2160
which is more accurate.
Types:
type PrerequisiteItem = "Or" | "And" | "(" | ")" | Requisite | string;
string is included because some courses have prereqs which aren't courses
string
No branches or pull requests
A list of or groups and and groups isn't enough for preqs. For example, CS 3000:
Actual:
Output:
The text was updated successfully, but these errors were encountered: