Changeset 814 in dev for branches/egtra/ab5.0/abdev/BasicCompiler_Common/src/LexicalAnalyzer_Procedure.cpp
- Timestamp:
- Mar 19, 2011, 1:29:12 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/egtra/ab5.0/abdev/BasicCompiler_Common/src/LexicalAnalyzer_Procedure.cpp
r750 r814 913 913 914 914 if( source[i] == 1 && source[i+1] == ESC_NAMESPACE ){ 915 for(i+=2,i2=0;;i2++,i++){ 916 if( IsCommandDelimitation( source[i] ) ){ 917 temporary[i2]=0; 918 break; 919 } 920 temporary[i2]=source[i]; 921 } 922 namespaceScopes.push_back( temporary ); 915 i+=2; 916 char const* p = &source[i]; 917 while (!IsCommandDelimitation(source[i])) 918 { 919 ++i; 920 } 921 namespaceScopes.push_back(std::string(p, &source[i])); 923 922 924 923 continue; … … 936 935 } 937 936 else if( source[i] == 1 && source[i+1] == ESC_IMPORTS ){ 938 for(i+=2,i2=0;;i2++,i++){939 if( IsCommandDelimitation( source[i] ) ){940 temporary[i2]=0;941 break;942 }943 temporary[i2]=source[i];944 }945 if ( !compiler.GetNamespaceSupporter().ImportsNamespace( temporary ))946 { 947 compiler.errorMessenger.Output(64, temporary,cp);937 i+=2; 938 char const* p = &source[i]; 939 while (!IsCommandDelimitation(source[i])) 940 { 941 ++i; 942 } 943 std::string s(p, &source[i]); 944 if (!compiler.GetNamespaceSupporter().ImportsNamespace(s)) 945 { 946 compiler.errorMessenger.Output(64, s.c_str(), i); 948 947 } 949 948
Note:
See TracChangeset
for help on using the changeset viewer.