Skip to content

Bug in prerequisite tree parsing #4261

@jloh02

Description

@jloh02

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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions