From 89b5cb358a13e7229487fe3c22785942d329b018 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 7 Aug 2006 05:37:32 +0000 Subject: Updated the lexer to not include + or = in string literals outside of quotes. Added the new make style viewer, the simplest, lamest viewer, but it looks just like the output of make. Very useful for debugging and seeing what's going on. --- src/viewermake.cpp | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 src/viewermake.cpp (limited to 'src/viewermake.cpp') diff --git a/src/viewermake.cpp b/src/viewermake.cpp new file mode 100644 index 0000000..7f63552 --- /dev/null +++ b/src/viewermake.cpp @@ -0,0 +1,62 @@ +#include +#include "viewermake.h" +#include "perform.h" + +ViewerMake::ViewerMake() +{ +} + +ViewerMake::~ViewerMake() +{ +} + +void ViewerMake::beginTarget( const char *sName, const char *sType, const char *sOperation, int nPerforms ) +{ + //sAction = sName; + //bPrinted = false; +} + +void ViewerMake::printHead() +{ + /* + if( bPrinted == false ) + { + printf("--- %s ---\n", sAction.getString() ); + bPrinted = true; + }*/ +} + +void ViewerMake::endTarget() +{ + /*if( bPrinted == true ) + { + printf("\n"); + } + else + { + printf("Nothing to be done for %s.\n", sAction.getString() ); + }*/ +} + +void ViewerMake::beginPerform( Perform *pPerf ) +{ + //sTarget = pPerf->getTarget(); +} + +void ViewerMake::beginExtraRequiresCheck( const char *sCommand ) +{ + //printHead(); + //printf(" check: %s\n", sTarget.getString() ); +} + +void ViewerMake::beginExecute() +{ + //printHead(); + //printf(" build: %s\n", sTarget.getString() ); +} + +void ViewerMake::executeCmd( const char *sCmd ) +{ + printf("%s\n", sCmd ); +} + -- cgit v1.2.3