(file) Return to parser.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Compiler

Diff for /pegasus/src/Pegasus/Compiler/parser.cpp between version 1.26 and 1.26.8.1

version 1.26, 2008/12/02 09:01:21 version 1.26.8.1, 2013/09/29 21:45:43
Line 63 
Line 63 
 //#include <sstream> //#include <sstream>
 #include "parserExceptions.h" #include "parserExceptions.h"
  
   
   //-----------------------------------------------------------------------
   //Implementation of the parserTypeFunctions
   //-----------------------------------------------------------------------
   static const char* _parserTypeStrings[] =
   {
      "Null","Integer", "Real", "String", "Boolean,", "Char"
   };
   
   static const Uint32 _NUM_TYPES = sizeof(_parserTypeStrings) /
                                   sizeof(_parserTypeStrings[0]);
   
   const char* strValTypeEnumToString(strValTypeNS::strValTypeEnum type)
   {
       PEGASUS_ASSERT(Uint32(type) < _NUM_TYPES);
       return _parserTypeStrings[Uint32(type)];
   
   }
 //--------------------------------------------------------------------- //---------------------------------------------------------------------
 // Take a YY_BUFFERSTATE off the stack of saved contexts // Take a YY_BUFFERSTATE off the stack of saved contexts
 //--------------------------------------------------------------------- //---------------------------------------------------------------------
Line 88 
Line 106 
 #else #else
     FILE *f = fopen(filename.getCString(),"rt");     FILE *f = fopen(filename.getCString(),"rt");
 #endif #endif
     if (f) {      if (f)
       {
         set_current_filename(filename);         set_current_filename(filename);
         set_lineno(1);         set_lineno(1);
         return setInputBuffer(f, false);         return setInputBuffer(f, false);
     } else {      } else
       {
         return 1;         return 1;
     }     }
 } }
Line 113 
Line 133 
         set_current_filenamePath(v->filenamePath);         set_current_filenamePath(v->filenamePath);
         delete v;         delete v;
         return 0;  // more data available         return 0;  // more data available
     } else {      } else
       {
         return 1;  // end of it all         return 1;  // end of it all
     }     }
 } }


Legend:
Removed from v.1.26  
changed lines
  Added in v.1.26.8.1

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2