mercurial/parser.py
changeset 25963 7448df709b2e
parent 25818 455190fb4e51
child 26231 87c9c562c37a
equal deleted inserted replaced
25962:738314da6c75 25963:7448df709b2e
    14 # elements is a mapping of types to binding strength, primary, prefix, infix
    14 # elements is a mapping of types to binding strength, primary, prefix, infix
    15 # and suffix actions
    15 # and suffix actions
    16 # an action is a tree node name, a tree label, and an optional match
    16 # an action is a tree node name, a tree label, and an optional match
    17 # __call__(program) parses program into a labeled tree
    17 # __call__(program) parses program into a labeled tree
    18 
    18 
    19 import error
    19 from __future__ import absolute_import
    20 from i18n import _
    20 
       
    21 from .i18n import _
       
    22 from . import error
    21 
    23 
    22 class parser(object):
    24 class parser(object):
    23     def __init__(self, elements, methods=None):
    25     def __init__(self, elements, methods=None):
    24         self._elements = elements
    26         self._elements = elements
    25         self._methods = methods
    27         self._methods = methods