Go action expression is very repetitive

Bug #1244912 reported by Jeremy Thurgood
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Divmod Imaginary
New
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.