ieml/grammar/paths/parser/parser.py
def p_coordinate(self, p):
        """ coordinate : COORD_KIND
                        | COORD_KIND COORD_INDEX"""

        if len(p) == 2:
            p[0] = Coordinate(p[1])
        else:
            p[0] = Coordinate(p[1], int(p[2]))
def p_coordinate(self, p):
        """ coordinate : COORD_KIND
                        | COORD_KIND COORD_INDEX"""

        if len(p) == 2:
            p[0] = Coordinate(p[1])
        else:
            p[0] = Coordinate(p[1], int(p[2]))
def p_coordinate ( self , p ) : if len ( p ) == 2 : p [ 0 ] = Coordinate ( p [ 1 ] ) else : p [ 0 ] = Coordinate ( p [ 1 ] , int ( p [ 2 ] ) )
coordinate : COORD_KIND
                        | COORD_KIND COORD_INDEX
coordinate : COORD_KIND | COORD_KIND COORD_INDEX