From fbf855027409cc9d5a5f9918ce8600288bcac1d2 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 17 Aug 2014 12:07:31 -0400 Subject: [PATCH] Parser - ::findBinary diagnostics. --- src/Parser.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Parser.cpp b/src/Parser.cpp index 77e12e099..e9c7a1025 100644 --- a/src/Parser.cpp +++ b/src/Parser.cpp @@ -338,9 +338,12 @@ void Parser::scan (void (Parser::*callback) (Tree*), Tree* tree /* = NULL */) } //////////////////////////////////////////////////////////////////////////////// -// Locate and tag the binary. +// Locate and tag the binary. It is assumed that the binary is the first +// argument, which is valid. void Parser::findBinary () { + context.debug ("Parser::findBinary"); + if (_tree->_branches.size () >= 1) { _tree->_branches[0]->unTag ("?"); @@ -364,6 +367,8 @@ void Parser::findBinary () _tree->_branches[0]->tag ("TW"); } } + + context.debug (_tree->dump ()); } ////////////////////////////////////////////////////////////////////////////////