mercurial/parser.py
changeset 17500 8ac8db8dc346
parent 14701 4b93bd041772
child 20778 7c4778bc29f0
equal deleted inserted replaced
17499:3d6d0aa55966 17500:8ac8db8dc346
    11 
    11 
    12 # takes a tokenizer and elements
    12 # takes a tokenizer and elements
    13 # tokenizer is an iterator that returns type, value pairs
    13 # tokenizer is an iterator that returns type, value pairs
    14 # elements is a mapping of types to binding strength, prefix and infix actions
    14 # elements is a mapping of types to binding strength, prefix and infix actions
    15 # an action is a tree node name, a tree label, and an optional match
    15 # an action is a tree node name, a tree label, and an optional match
    16 # __call__(program) parses program into a labelled tree
    16 # __call__(program) parses program into a labeled tree
    17 
    17 
    18 import error
    18 import error
    19 from i18n import _
    19 from i18n import _
    20 
    20 
    21 class parser(object):
    21 class parser(object):