nusmods icon indicating copy to clipboard operation
nusmods copied to clipboard

Bug in prerequisite tree parsing

Open jloh02 opened this issue 2 months ago • 1 comments

This prerequisite text leads to incorrect parsing.

If undertaking an Undergraduate DegreeTHEN( must have completed EE2012/ST2334 at a grade of at least D)AND( must have completed CG2023/EE2023 at a grade of at least D)

Source: https://api.nusmods.com/v2/2025-2026/modules/EE5140.json

Compared to https://api.nusmods.com/v2/2025-2026/modules/EE4205.json

We should implicitly add (effectively) brackets around the OR conditions for "/" - ((COURSES (1) EE2012:D, ST2334:D) vs (COURSES EE2012:D, ST2334:D)

jloh02 avatar Nov 30 '25 14:11 jloh02

Image

another issue brought here

jloh02 avatar Dec 08 '25 15:12 jloh02