# HG changeset patch # User Yuya Nishihara # Date 2015-06-20 15:56:09 # Node ID b8b73652c1c97600e7cabea1f628561e00ecd127 # Parent af329a84310c3d784b3717395b6fc4a32ca736f2 parser: update documentation about tokenizer and elements diff --git a/mercurial/parser.py b/mercurial/parser.py --- a/mercurial/parser.py +++ b/mercurial/parser.py @@ -10,8 +10,9 @@ # for background # takes a tokenizer and elements -# tokenizer is an iterator that returns type, value pairs -# elements is a mapping of types to binding strength, prefix and infix actions +# tokenizer is an iterator that returns (type, value, pos) tuples +# elements is a mapping of types to binding strength, prefix, infix and +# optional suffix actions # an action is a tree node name, a tree label, and an optional match # __call__(program) parses program into a labeled tree