public function ParseTokens()
 {
     $objToReturn = new QScriptParserResult();
     QScriptParser::$CurrentParser = $this;
     $this->objStack = new QStack();
     $this->objStack->Push(STATE_NONE);
     $this->objPropertyArray = array();
     $intCount = count($this->objTokenArray);
     $this->objPropertyArray[STATE_CLASSDEF] = new QScriptParserClass();
     for ($intIndex = 0; $intIndex < $intCount; $intIndex++) {
         // Ignore Strings
         if (is_string($this->objTokenArray[$intIndex])) {
             switch ($this->objTokenArray[$intIndex]) {
                 case '{':
                     // Figure out where we are on the stack
                     switch ($this->objStack->PeekLast()) {
                         case STATE_CLASSDEF_IMPLEMENTS:
                             $this->objStack->Pop();
                         case STATE_CLASSDEF:
                             $this->objStack->Pop();
                             $this->objStack->Push(STATE_CLASS);
                             $this->objPropertyArray[STATE_FUNCTIONDEF] = new QScriptParserFunction();
                             $this->objPropertyArray[STATE_VARIABLE] = new QScriptParserVariable();
                             break;
                         case STATE_INTERFACEDEF:
                             $this->objStack->Pop();
                             $this->objStack->Push(STATE_INTERFACE);
                             $this->objPropertyArray[STATE_FUNCTIONDEF] = new QScriptParserFunction();
                             break;
                         case STATE_FUNCTIONDEF:
                             $this->objStack->Pop();
                             $this->objStack->Push(STATE_FUNCTION);
                             $this->objPropertyArray[STATE_FUNCTIONDEF]->BraceCount++;
                             break;
                         case STATE_FUNCTION:
                         case STATE_GET:
                         case STATE_SET:
                             $this->objPropertyArray[STATE_FUNCTIONDEF]->BraceCount++;
                             break;
                     }
                     break;
                 case '}':
                     switch ($this->objStack->PeekLast()) {
                         case STATE_CLASS:
                             array_push($objToReturn->ClassArray, $this->objPropertyArray[STATE_CLASSDEF]);
                             $this->objPropertyArray[STATE_CLASSDEF] = new QScriptParserClass();
                             $this->objPropertyArray[STATE_FUNCTIONDEF] = new QScriptParserFunction();
                             $this->objPropertyArray[STATE_VARIABLE] = new QScriptParserVariable();
                             $this->objStack->Pop();
                             break;
                         case STATE_INTERFACE:
                             array_push($objToReturn->InterfaceArray, $this->objPropertyArray[STATE_INTERFACEDEF]);
                             $this->objPropertyArray[STATE_INTERFACEDEF] = new QScriptParserInterface();
                             $this->objPropertyArray[STATE_FUNCTIONDEF] = new QScriptParserFunction();
                             $this->objStack->Pop();
                             break;
                         case STATE_FUNCTION:
                             $this->objPropertyArray[STATE_FUNCTIONDEF]->BraceCount--;
                             if ($this->objPropertyArray[STATE_FUNCTIONDEF]->BraceCount == 0) {
                                 $this->objStack->Pop();
                                 if ($this->objStack->PeekLast() == STATE_CLASS) {
                                     array_push($this->objPropertyArray[STATE_CLASSDEF]->MethodArray, $this->objPropertyArray[STATE_FUNCTIONDEF]);
                                 } else {
                                     if ($this->objStack->PeekLast() == STATE_NONE) {
                                         array_push($objToReturn->FunctionArray, $this->objPropertyArray[STATE_FUNCTIONDEF]);
                                     } else {
                                         throw new Exception('Invalid Stack State: ' . $this->objStack->Peeklast());
                                     }
                                 }
                                 $this->objPropertyArray[STATE_FUNCTIONDEF] = new QScriptParserFunction();
                                 $this->objPropertyArray[STATE_VARIABLE] = new QScriptParserVariable();
                             } else {
                                 if ($this->objPropertyArray[STATE_FUNCTIONDEF]->BraceCount < 0) {
                                     throw new Exception('Unmatched Braces');
                                 }
                             }
                             break;
                         case STATE_SET:
                         case STATE_GET:
                             $this->objPropertyArray[STATE_FUNCTIONDEF]->BraceCount--;
                             if ($this->objPropertyArray[STATE_FUNCTIONDEF]->BraceCount == 0) {
                                 $this->objStack->Pop();
                                 $this->objPropertyArray[STATE_FUNCTIONDEF] = new QScriptParserFunction();
                                 $this->objPropertyArray[STATE_VARIABLE] = new QScriptParserVariable();
                             } else {
                                 if ($this->objPropertyArray[STATE_FUNCTIONDEF]->BraceCount < 0) {
                                     throw new Exception('Unmatched Braces');
                                 }
                             }
                             break;
                         case STATE_IGNORE_LINE:
                             $this->objStack->Pop();
                             break;
                     }
                     break;
                 case '=':
                     switch ($this->objStack->PeekLast()) {
                         case STATE_VARIABLE:
                             $this->objStack->Push(STATE_VARIABLE_DEFAULT);
                             break;
                         case STATE_FUNCTIONPARAM:
                             $this->objStack->Push(STATE_FUNCTIONPARAM_DEFAULT);
                             break;
                     }
                     break;
                 case '(':
                     switch ($this->objStack->PeekLast()) {
                         case STATE_FUNCTIONDEF:
                             $this->objStack->Push(STATE_FUNCTIONPARAMS);
                             $this->objStack->Push(STATE_FUNCTIONPARAM);
                             $this->objPropertyArray[STATE_FUNCTIONPARAM] = new QScriptParserParameter();
                             break;
                     }
                     break;
                 case ')':
                     switch ($this->objStack->PeekLast()) {
                         case STATE_FUNCTIONPARAMS:
                             $this->objStack->Pop();
                             break;
                         case STATE_FUNCTIONPARAM_DEFAULT:
                             $this->objStack->Pop();
                         case STATE_FUNCTIONPARAM:
                             $this->objStack->Pop();
                             $this->objStack->Pop();
                             if ($this->objPropertyArray[STATE_FUNCTIONPARAM]->Name) {
                                 array_push($this->objPropertyArray[STATE_FUNCTIONDEF]->ParameterArray, $this->objPropertyArray[STATE_FUNCTIONPARAM]);
                             }
                             break;
                     }
                     break;
                 case ';':
                     switch ($this->objStack->PeekLast()) {
                         case STATE_VARIABLE_DEFAULT:
                             $this->objStack->Pop();
                         case STATE_VARIABLE:
                             $this->objStack->Pop();
                             if ($this->objStack->PeekLast() == STATE_CLASS) {
                                 array_push($this->objPropertyArray[STATE_CLASSDEF]->VariableArray, $this->objPropertyArray[STATE_VARIABLE]);
                             } else {
                                 if ($this->objStack->PeekLast() == STATE_NONE) {
                                     array_push($objToReturn->VariableArray, $this->objPropertyArray[STATE_VARIABLE]);
                                 } else {
                                     throw new Exception('Invalid Stack State: ' . $this->objStack->Peeklast());
                                 }
                             }
                             $this->objPropertyArray[STATE_FUNCTIONDEF] = new QScriptParserFunction();
                             $this->objPropertyArray[STATE_VARIABLE] = new QScriptParserVariable();
                             break;
                         case STATE_FUNCTIONDEF:
                             $this->objStack->Pop();
                             if ($this->objStack->PeekLast() == STATE_CLASS) {
                                 array_push($this->objPropertyArray[STATE_CLASSDEF]->MethodArray, $this->objPropertyArray[STATE_FUNCTIONDEF]);
                             } else {
                                 if ($this->objStack->PeekLast() == STATE_INTERFACE) {
                                     array_push($this->objPropertyArray[STATE_INTERFACEDEF]->MethodArray, $this->objPropertyArray[STATE_FUNCTIONDEF]);
                                 } else {
                                     throw new Exception('Invalid Stack State: ' . $this->objStack->Peeklast());
                                 }
                             }
                             $this->objPropertyArray[STATE_FUNCTIONDEF] = new QScriptParserFunction();
                             $this->objPropertyArray[STATE_VARIABLE] = new QScriptParserVariable();
                             break;
                         case STATE_CLASSCONSTVALUE:
                             $this->objStack->Pop();
                             if ($this->objStack->PeekLast() == STATE_CLASS) {
                                 array_push($this->objPropertyArray[STATE_CLASSDEF]->ConstantArray, $this->objPropertyArray[STATE_CLASSCONSTDEF]);
                             } else {
                                 if ($this->objStack->PeekLast() == STATE_INTERFACE) {
                                     array_push($this->objPropertyArray[STATE_INTERFACEDEF]->ConstantArray, $this->objPropertyArray[STATE_CLASSCONSTDEF]);
                                 } else {
                                     throw new Exception('Invalid Stack State: ' . $this->objStack->Peeklast());
                                 }
                             }
                             break;
                         case STATE_CONSTVALUE:
                             $this->objStack->Pop();
                             if ($this->objStack->PeekLast() == STATE_NONE) {
                                 array_push($objToReturn->ConstantArray, $this->objPropertyArray[STATE_CONSTDEF]);
                             } else {
                                 throw new Exception('Invalid Stack State: ' . $this->objStack->PeekLast());
                             }
                             break;
                         case STATE_IGNORE_LINE:
                             $this->objStack->Pop();
                             break;
                     }
                     break;
                 case ',':
                     switch ($this->objStack->PeekLast()) {
                         case STATE_CLASSDEF_IMPLEMENTS:
                             $this->objPropertyArray[STATE_CLASSDEF]->Implements .= ',';
                             break;
                         case STATE_VARIABLE_DEFAULT:
                             $this->objPropertyArray[STATE_VARIABLE]->DefaultValue .= ',';
                             break;
                         case STATE_FUNCTIONPARAM_DEFAULT:
                             $this->objStack->Pop();
                         case STATE_FUNCTIONPARAM:
                             array_push($this->objPropertyArray[STATE_FUNCTIONDEF]->ParameterArray, $this->objPropertyArray[STATE_FUNCTIONPARAM]);
                             $this->objPropertyArray[STATE_FUNCTIONPARAM] = new QScriptParserParameter();
                             break;
                         case STATE_CONSTDEF:
                             $this->objStack->Pop();
                             $this->objStack->Push(STATE_CONSTVALUE);
                             break;
                     }
                     break;
                 case '&':
                     switch ($this->objStack->PeekLast()) {
                         case STATE_FUNCTIONPARAM:
                             $this->objPropertyArray[STATE_FUNCTIONPARAM]->Reference = true;
                             break;
                     }
                     break;
             }
             continue;
         }
         // Pull out the Token Type and Token Text
         list($intTokenType, $strText) = $this->objTokenArray[$intIndex];
         // Ignore what we always want to ignore
         switch ($intTokenType) {
             case T_COMMENT:
             case T_DOC_COMMENT:
             case T_OPEN_TAG:
             case T_CLOSE_TAG:
             case T_WHITESPACE:
                 // No Action
                 continue 2;
         }
         // Figure out where we are on the stack
         switch ($this->objStack->PeekLast()) {
             case STATE_NONE:
                 switch ($intTokenType) {
                     case T_ABSTRACT:
                         $this->objPropertyArray[STATE_CLASSDEF]->Abstract = true;
                         break;
                     case T_CLASS:
                         $this->objStack->Push(STATE_CLASSDEF);
                         break;
                     case T_INTERFACE:
                         $this->objStack->Push(STATE_INTERFACEDEF);
                         $this->objPropertyArray[STATE_INTERFACEDEF] = new QScriptParserInterface();
                         break;
                     case T_VARIABLE:
                         $this->objStack->Push(STATE_VARIABLE);
                         $this->objPropertyArray[STATE_VARIABLE] = new QScriptParserVariable();
                         $this->objPropertyArray[STATE_VARIABLE]->Name = $strText;
                         break;
                     case T_FUNCTION:
                         $this->objStack->Push(STATE_FUNCTIONDEF);
                         $this->objPropertyArray[STATE_FUNCTIONDEF] = new QScriptParserFunction();
                         break;
                     case T_STRING:
                         if ($strText == 'define') {
                             $this->objStack->Push(STATE_CONSTDEF);
                             $this->objPropertyArray[STATE_CONSTDEF] = new QScriptParserConstant();
                         }
                         break;
                     case T_DOUBLE_COLON:
                         // Likley assigning some static member variable or calling some static method
                         // either way, let's ignore
                         $this->objStack->Push(STATE_IGNORE_LINE);
                         break;
                     case T_IF:
                         $this->objStack->Push(STATE_IGNORE_LINE);
                         break;
                 }
                 break;
             case STATE_INTERFACEDEF:
                 switch ($intTokenType) {
                     case T_STRING:
                         $this->objPropertyArray[STATE_INTERFACEDEF]->Name = $strText;
                         break;
                     case T_EXTENDS:
                         $this->objStack->Push(STATE_INTERFACEDEF_EXTENDS);
                         break;
                     default:
                         throw new QScriptParserInvalidTokenException($intTokenType);
                 }
                 break;
             case STATE_INTERFACEDEF_EXTENDS:
                 switch ($intTokenType) {
                     case T_STRING:
                         $this->objPropertyArray[STATE_INTERFACEDEF]->Extends = $strText;
                         $this->objStack->Pop();
                         break;
                     default:
                         throw new QScriptParserInvalidTokenException($intTokenType);
                 }
                 break;
             case STATE_INTERFACE:
                 switch ($intTokenType) {
                     case T_PRIVATE:
                     case T_PROTECTED:
                     case T_PUBLIC:
                         $this->objPropertyArray[STATE_FUNCTIONDEF]->Visibility = strtolower($strText);
                         break;
                     case T_STATIC:
                         $this->objPropertyArray[STATE_FUNCTIONDEF]->Static = true;
                         break;
                     case T_CONST:
                         $this->objPropertyArray[STATE_CLASSCONSTDEF] = new QScriptParserConstant();
                         $this->objStack->Push(STATE_CLASSCONSTDEF);
                         break;
                     case T_FUNCTION:
                         $this->objStack->Push(STATE_FUNCTIONDEF);
                         break;
                     case T_ABSTRACT:
                     case T_VARIABLE:
                     case T_VAR:
                         throw new QScriptParserInvalidTokenException($intTokenType);
                     default:
                         throw new QScriptParserInvalidTokenException($intTokenType);
                 }
                 break;
             case STATE_CLASSDEF:
                 switch ($intTokenType) {
                     case T_STRING:
                         $this->objPropertyArray[STATE_CLASSDEF]->Name = $strText;
                         break;
                     case T_EXTENDS:
                         $this->objStack->Push(STATE_CLASSDEF_EXTENDS);
                         break;
                     case T_IMPLEMENTS:
                         $this->objStack->Push(STATE_CLASSDEF_IMPLEMENTS);
                         break;
                     default:
                         throw new QScriptParserInvalidTokenException($intTokenType);
                 }
                 break;
             case STATE_CLASSDEF_EXTENDS:
                 switch ($intTokenType) {
                     case T_STRING:
                         $this->objPropertyArray[STATE_CLASSDEF]->Extends = $strText;
                         $this->objStack->Pop();
                         break;
                     default:
                         throw new QScriptParserInvalidTokenException($intTokenType);
                 }
                 break;
             case STATE_CLASSDEF_IMPLEMENTS:
                 switch ($intTokenType) {
                     case T_STRING:
                         $this->objPropertyArray[STATE_CLASSDEF]->Implements .= $strText;
                         break;
                     default:
                         throw new QScriptParserInvalidTokenException($intTokenType);
                 }
                 break;
             case STATE_CLASS:
                 switch ($intTokenType) {
                     case T_PRIVATE:
                     case T_PROTECTED:
                     case T_PUBLIC:
                         $this->objPropertyArray[STATE_VARIABLE]->Visibility = strtolower($strText);
                         $this->objPropertyArray[STATE_FUNCTIONDEF]->Visibility = strtolower($strText);
                         break;
                     case T_STATIC:
                         $this->objPropertyArray[STATE_VARIABLE]->Static = true;
                         $this->objPropertyArray[STATE_FUNCTIONDEF]->Static = true;
                         break;
                     case T_ABSTRACT:
                         $this->objPropertyArray[STATE_FUNCTIONDEF]->Abstract = true;
                         break;
                     case T_FINAL:
                         $this->objPropertyArray[STATE_FUNCTIONDEF]->Final = true;
                         break;
                     case T_CONST:
                         $this->objPropertyArray[STATE_CLASSCONSTDEF] = new QScriptParserConstant();
                         $this->objStack->Push(STATE_CLASSCONSTDEF);
                         break;
                     case T_VARIABLE:
                         $this->objPropertyArray[STATE_VARIABLE]->Name = $strText;
                         $this->objStack->Push(STATE_VARIABLE);
                         break;
                     case T_FUNCTION:
                         $this->objStack->Push(STATE_FUNCTIONDEF);
                         break;
                     case T_VAR:
                         throw new QScriptParserInvalidTokenException($intTokenType);
                     default:
                         throw new QScriptParserInvalidTokenException($intTokenType);
                 }
                 break;
             case STATE_CLASSCONSTDEF:
                 switch ($intTokenType) {
                     case T_STRING:
                         $this->objPropertyArray[STATE_CLASSCONSTDEF]->Name = $strText;
                         $this->objStack->Pop();
                         $this->objStack->Push(STATE_CLASSCONSTVALUE);
                         break;
                     default:
                         throw new QScriptParserInvalidTokenException($intTokenType);
                 }
                 break;
             case STATE_CLASSCONSTVALUE:
                 switch ($intTokenType) {
                     case T_STRING:
                     case T_CONSTANT_ENCAPSED_STRING:
                     case T_NUM_STRING:
                     case T_DNUMBER:
                     case T_LNUMBER:
                     case T_DOUBLE_COLON:
                     case T_DOUBLE_ARROW:
                         $this->objPropertyArray[STATE_CLASSCONSTDEF]->Value .= $strText;
                         break;
                     default:
                         throw new QScriptParserInvalidTokenException($intTokenType);
                 }
                 break;
             case STATE_VARIABLE:
                 print $strText;
                 throw new QScriptParserInvalidTokenException($intTokenType);
                 break;
             case STATE_VARIABLE_DEFAULT:
                 switch ($intTokenType) {
                     case T_STRING:
                     case T_CONSTANT_ENCAPSED_STRING:
                     case T_NUM_STRING:
                     case T_DNUMBER:
                     case T_LNUMBER:
                     case T_DOUBLE_COLON:
                     case T_DOUBLE_ARROW:
                         $this->objPropertyArray[STATE_VARIABLE]->DefaultValue .= $strText;
                         break;
                     case T_ARRAY:
                         $this->objPropertyArray[STATE_VARIABLE]->DefaultValue .= 'array ';
                         break;
                 }
                 break;
             case STATE_FUNCTION:
                 break;
             case STATE_IGNORE_LINE:
                 break;
             case STATE_FUNCTIONDEF:
                 switch ($intTokenType) {
                     case T_STRING:
                         if ($strText == '__get') {
                             $this->objStack->Pop();
                             $this->objStack->Push(STATE_GET);
                         } else {
                             if ($strText == '__set') {
                                 $this->objStack->Pop();
                                 $this->objStack->Push(STATE_SET);
                             } else {
                                 $this->objPropertyArray[STATE_FUNCTIONDEF]->Name = $strText;
                             }
                         }
                         break;
                         //							default:
                         //								throw new QScriptParserInvalidTokenException($intTokenType);
                 }
                 break;
             case STATE_FUNCTIONPARAMS:
                 break;
             case STATE_FUNCTIONPARAM:
                 switch ($intTokenType) {
                     case T_STRING:
                         $this->objPropertyArray[STATE_FUNCTIONPARAM]->Type = $strText;
                         break;
                     case T_VARIABLE:
                         $this->objPropertyArray[STATE_FUNCTIONPARAM]->Name = $strText;
                         break;
                     default:
                         throw new QScriptParserInvalidTokenException($intTokenType);
                 }
                 break;
             case STATE_FUNCTIONPARAM_DEFAULT:
                 switch ($intTokenType) {
                     case T_STRING:
                     case T_CONSTANT_ENCAPSED_STRING:
                     case T_NUM_STRING:
                     case T_DNUMBER:
                     case T_LNUMBER:
                     case T_DOUBLE_COLON:
                     case T_DOUBLE_ARROW:
                         $this->objPropertyArray[STATE_FUNCTIONPARAM]->DefaultValue .= $strText;
                         break;
                     case T_ARRAY:
                         $this->objPropertyArray[STATE_FUNCTIONPARAM]->DefaultValue .= 'array ';
                         break;
                 }
                 break;
             case STATE_GET:
             case STATE_SET:
                 switch ($intTokenType) {
                     case T_CASE:
                         $this->objStack->Push(STATE_CLASSPROPERTY);
                         break;
                 }
                 break;
             case STATE_CLASSPROPERTY:
                 switch ($intTokenType) {
                     case T_CONSTANT_ENCAPSED_STRING:
                         $this->objStack->Pop();
                         $this->objPropertyArray[STATE_CLASSDEF]->SetProperty($strText, $this->objStack->PeekLast());
                         break;
                     default:
                         throw new QScriptParserInvalidTokenException($intTokenType);
                 }
                 break;
             case STATE_CONSTDEF:
                 $this->objPropertyArray[STATE_CONSTDEF]->Name .= $strText;
                 break;
             case STATE_CONSTVALUE:
                 $this->objPropertyArray[STATE_CONSTDEF]->Value .= $strText;
                 break;
             default:
                 throw new Exception('Invalid Stack State: ' . $this->objStack->PeekLast());
         }
     }
     return $objToReturn;
 }
 protected function ProcessFolder($strFolder)
 {
     $strLabel = substr($strFolder, strlen($this->strRoot) + 1);
     if (!$strLabel) {
         $strLabel = 'root';
     }
     print 'Processing ' . $strLabel . ' [';
     $strFileArray = array();
     $strFolderArray = array();
     // Iterate through all subfolders and files in this folder
     // Be sure not to process anything with CVS, SVN or ds_store
     $objDirectory = opendir($strFolder);
     while ($strName = readdir($objDirectory)) {
         if ($strName != '.' && $strName != '..' && $strName != 'SVN' && $strName != '.svnignore' && $strName != 'CVS' && $strName != '.cvsignore' && strtolower($strName) != '.ds_store') {
             $strFullPath = $strFolder . '/' . $strName;
             if (is_dir($strFullPath)) {
                 array_push($strFolderArray, $strFullPath);
             } else {
                 array_push($strFileArray, $strFullPath);
             }
         }
     }
     $intFileCount = count($strFileArray);
     for ($intFileIndex = 0; $intFileIndex < $intFileCount; $intFileIndex++) {
         print ' ';
     }
     print ']';
     for ($intFileIndex = 0; $intFileIndex <= $intFileCount; $intFileIndex++) {
         print chr(8);
     }
     foreach ($strFileArray as $strFile) {
         print 'X';
         $strMd5 = md5_file($strFile);
         $strFullPath = $strFile;
         $strFile = substr($strFile, strlen($this->strRoot) + 1);
         // Process all files other than the root _README.txt and LICENSE.txt
         if ($strFile != '_README.txt' && $strFile != '_LICENSE.txt') {
             $intDirectoryId = null;
             $objFileDirectory = null;
             foreach ($this->objDirectoryTokens as $objDirectory) {
                 if (!$intDirectoryId) {
                     if (strpos($strFile, $objDirectory->Path) === 0) {
                         $intDirectoryId = $objDirectory->Id;
                         $objFileDirectory = $objDirectory;
                         $strFile = substr($strFile, strlen($objDirectory->Path));
                     }
                 }
             }
             if (!$intDirectoryId) {
                 var_dump($this->objDirectoryTokens);
                 exit("FATAL ERROR: No DirectoryToken resolution for " . $strFile . "\r\n");
             }
             $objFile = File::LoadByDirectoryIdPath($intDirectoryId, $strFile);
             if (!$objFile) {
                 $objFile = new File();
                 $objFile->Path = $strFile;
                 $objFile->DirectoryId = $intDirectoryId;
             } else {
                 $objFile->DeprecatedMajorVersion = null;
                 $objFile->DeprecatedMinorVersion = null;
                 $objFile->DeprecatedBuild = null;
             }
             $objFile->Save();
             $this->blnFileProcessedArray['id' . $objFile->Id] = true;
             $this->strXml .= sprintf("<file directoryToken=\"%s\" path=\"%s\" md5=\"%s\"/>\r\n", $objFileDirectory->Token, $strFile, $strMd5);
             // Parse tokens for documetation for all PHP files outside of assets and PHPUnit
             if (substr($strFile, strlen($strFile) - 4) == '.php' && strpos($strFullPath, '/assets/') === false && strpos($strFullPath, '/PHPUnit/') === false) {
                 switch ($objFileDirectory->Token) {
                     case '__INCLUDES__':
                     case '__QCODO__':
                     case '__QCODO_CORE__':
                         $objParser = new QScriptParser($strFullPath);
                         $objResult = $objParser->ParseTokens();
                         // Iterate through the Class Definitions
                         foreach ($objResult->ClassArray as $objParserClass) {
                             if ($objParserClass->Extends) {
                                 $objParentClass = QcodoClass::RestoreByName($objParserClass->Extends, $this->strVersion, null);
                             } else {
                                 $objParentClass = null;
                             }
                             // TO DO
                             // if ($strImplements) {
                             // }
                             $objClass = QcodoClass::RestoreByName($objParserClass->Name, $this->strVersion, $objFile);
                             $objClass->AbstractFlag = $objParserClass->Abstract;
                             $objClass->ParentQcodoClass = $objParentClass;
                             $objClass->Save();
                             // Class Constants
                             $strConstantArray = array();
                             foreach ($objParserClass->ConstantArray as $objParserConstant) {
                                 $objConstant = QcodoConstant::RestoreByNameForClass($objParserConstant->Name, $objClass->Id, $this->strVersion, $objFile);
                                 //										$strValue = QBuildMaker::StripQuotes($objParserConstant->Value);
                                 $strValue = $objParserConstant->Value;
                                 $objConstant->Variable->DefaultValue = $strValue;
                                 $objConstant->Variable->Save();
                                 $strConstantArray[$objParserConstant->Name] = true;
                             }
                             // Class Constants (Deprecate)
                             foreach ($objClass->GetQcodoConstantArray(QQ::Clause(QQ::Expand(QQN::QcodoConstant()->Variable))) as $objConstant) {
                                 if (!array_key_exists($objConstant->Variable->Name, $strConstantArray)) {
                                     $objConstant->Variable->LastVersion = $this->strVersion;
                                     $objConstant->Variable->Save();
                                 }
                             }
                             // Class Variables
                             $strVariableArray = array();
                             foreach ($objParserClass->VariableArray as $objParserVariable) {
                                 $strName = QBuildMaker::StripDollar($objParserVariable->Name);
                                 //										$strValue = QBuildMaker::StripQuotes($objParserVariable->DefaultValue);
                                 $strValue = $objParserVariable->DefaultValue;
                                 $objClassVariable = ClassVariable::RestoreByNameForClass($strName, $objClass->Id, $this->strVersion);
                                 $objClassVariable->Variable->DefaultValue = $strValue;
                                 $objClassVariable->Variable->Save();
                                 $objClassVariable->StaticFlag = $objParserVariable->Static;
                                 switch (strtolower($objParserVariable->Visibility)) {
                                     case 'public':
                                         $objClassVariable->ProtectionTypeId = ProtectionType::_Public;
                                         break;
                                     case 'protected':
                                         $objClassVariable->ProtectionTypeId = ProtectionType::_Protected;
                                         break;
                                     case 'private':
                                         $objClassVariable->ProtectionTypeId = ProtectionType::_Private;
                                         break;
                                     default:
                                         throw new Exception('Unknown Protection Type');
                                 }
                                 $objClassVariable->Save();
                                 $strVariableArray[$strName] = true;
                             }
                             // Class Variables (deprecate)
                             foreach ($objClass->GetClassVariableArray(QQ::Clause(QQ::Expand(QQN::ClassVariable()->Variable))) as $objClassVariable) {
                                 if (!array_key_exists($objClassVariable->Variable->Name, $strVariableArray)) {
                                     $objClassVariable->Variable->LastVersion = $this->strVersion;
                                     $objClassVariable->Variable->Save();
                                 }
                             }
                             // Class Methods
                             $strMethodArray = array();
                             foreach ($objParserClass->MethodArray as $objParserFunction) {
                                 $objOperation = Operation::RestoreByNameForClass($objParserFunction->Name, $objClass->Id, $this->strVersion, $objFile);
                                 $objOperation->StaticFlag = $objParserFunction->Static;
                                 $objOperation->FinalFlag = $objParserFunction->Final;
                                 $objOperation->AbstractFlag = $objParserFunction->Abstract;
                                 switch (strtolower($objParserFunction->Visibility)) {
                                     case 'public':
                                         $objOperation->ProtectionTypeId = ProtectionType::_Public;
                                         break;
                                     case 'protected':
                                         $objOperation->ProtectionTypeId = ProtectionType::_Protected;
                                         break;
                                     case 'private':
                                         $objOperation->ProtectionTypeId = ProtectionType::_Private;
                                         break;
                                     default:
                                         throw new Exception('Unknown Protection Type');
                                 }
                                 $objOperation->Save();
                                 $strMethodArray[$objParserFunction->Name] = true;
                                 // Figure Out the Parameters
                                 $objParserParameterArray = array();
                                 foreach ($objParserFunction->ParameterArray as $objParserParameter) {
                                     $strName = QBuildMaker::StripDollar($objParserParameter->Name);
                                     $objParserParameterArray[$strName] = $objParserParameter;
                                 }
                                 $objParameterArray = Parameter::RestoreParameterArrayByNameForOperation(array_keys($objParserParameterArray), $objOperation->Id, $this->strVersion);
                                 foreach ($objParameterArray as $objParameter) {
                                     $objParserParameter = $objParserParameterArray[$objParameter->Variable->Name];
                                     $objParameter->ReferenceFlag = $objParserParameter->Reference;
                                     $objParameter->Save();
                                     $objParameter->Variable->DefaultValue = $objParserParameter->DefaultValue;
                                     $objParameter->Variable->Save();
                                 }
                             }
                             // Class Methods (deprecate)
                             foreach ($objClass->GetOperationArray() as $objOperation) {
                                 if (!array_key_exists($objOperation->Name, $strMethodArray)) {
                                     $objOperation->LastVersion = $this->strVersion;
                                     $objOperation->Save();
                                 }
                             }
                             // Class Properties
                             $strPropertyArray = array();
                             foreach ($objParserClass->PropertyArray as $objParserProperty) {
                                 $strName = QBuildMaker::StripQuotes($objParserProperty->Name);
                                 if ($strName != 'ttf' && $strName != 'pfb' && $strName != 'afm') {
                                     $objProperty = ClassProperty::RestoreByNameForClass($strName, $objClass->Id, $this->strVersion);
                                     if ($objParserProperty->Read && !$objParserProperty->Write) {
                                         $objProperty->ReadOnlyFlag = true;
                                         $objProperty->WriteOnlyFlag = false;
                                     } else {
                                         if (!$objParserProperty->Read && $objParserProperty->Write) {
                                             $objProperty->ReadOnlyFlag = false;
                                             $objProperty->WriteOnlyFlag = true;
                                         } else {
                                             $objProperty->ReadOnlyFlag = false;
                                             $objProperty->WriteOnlyFlag = false;
                                         }
                                     }
                                     $objProperty->Save();
                                     $strPropertyArray[$strName] = true;
                                 }
                             }
                             // Class Properties (deprecate)
                             foreach ($objClass->GetClassPropertyArray() as $objProperty) {
                                 if (!array_key_exists($objProperty->Variable->Name, $strPropertyArray)) {
                                     $objProperty->Variable->LastVersion = $this->strVersion;
                                     $objProperty->Save();
                                 }
                             }
                         }
                         // Iterate through the Interfaces
                         // TODO
                         // Iterate through the Global Functions
                         foreach ($objResult->FunctionArray as $objParserFunction) {
                             $objOperation = Operation::RestoreByNameForClass($objParserFunction->Name, null, $this->strVersion, $objFile);
                             // Figure Out the Parameters
                             $objParserParameterArray = array();
                             foreach ($objParserFunction->ParameterArray as $objParserParameter) {
                                 $strName = QBuildMaker::StripDollar($objParserParameter->Name);
                                 $objParserParameterArray[$strName] = $objParserParameter;
                             }
                             $objParameterArray = Parameter::RestoreParameterArrayByNameForOperation(array_keys($objParserParameterArray), $objOperation->Id, $this->strVersion);
                             foreach ($objParameterArray as $objParameter) {
                                 $objParserParameter = $objParserParameterArray[$objParameter->Variable->Name];
                                 $objParameter->ReferenceFlag = $objParserParameter->Reference;
                                 $objParameter->Save();
                                 $objParameter->Variable->DefaultValue = $objParserParameter->DefaultValue;
                                 $objParameter->Variable->Save();
                             }
                         }
                         // Iterate through the Global Constants
                         foreach ($objResult->ConstantArray as $objParserConstant) {
                             $objConstant = QcodoConstant::RestoreByNameForClass($objParserConstant->Name, null, $this->strVersion, $objFile);
                             // $strValue = QBuildMaker::StripQuotes($objParserConstant->Value);
                             $strValue = $objParserConstant->Value;
                             $objConstant->Variable->DefaultValue = $strValue;
                             $objConstant->Variable->Save();
                         }
                         // Iterate through the Global Variables
                         // NOT SUPPORTED
                         break;
                 }
             }
         }
     }
     print "] Done.\r\n";
     foreach ($strFolderArray as $strFolder) {
         $this->ProcessFolder($strFolder);
     }
 }