Go action expression is very repetitive

Bug #1244912 reported by Jeremy Thurgood on 2013-10-26
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Divmod Imaginary
Undecided
Unassigned

Bug Description

We can probably do better than this:

    expr = (
        (pyparsing.Literal("go") + pyparsing.White() +
         targetString("direction")) |
        (pyparsing.Literal("enter") + pyparsing.White() +
         targetString("direction")) |
        (pyparsing.Literal("exit") + pyparsing.White() +
         targetString("direction")) |
        DIRECTION_LITERAL)

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers