don't track line/column until you encounter an error, then re-parse
authorEvan Martin <martine@danga.com>
Tue, 26 Jul 2011 00:51:47 +0000 (17:51 -0700)
committerEvan Martin <martine@danga.com>
Tue, 26 Jul 2011 00:51:47 +0000 (17:51 -0700)
commitb86a9ebb949767ac6cfc73aacfd9428bfd9dc9a7
tree5379b23d73c501a65c214230148faa31b4c8b329
parentf506c49387407789aabb9ee19e47eb49422ac79b
don't track line/column until you encounter an error, then re-parse

This speeds up the common case (where you don't need a line number)
at the small expense of the uncommon case (for error messages, you
do need a line number).  And it's less code.
src/parsers.cc
src/parsers.h