comparison mercurial/parser.py @ 17500:8ac8db8dc346

en-us: labeled
author timeless@mozdev.org
date Fri, 17 Aug 2012 13:58:18 -0700
parents 4b93bd041772
children 7c4778bc29f0
comparison
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):