Changeset 42033f3 in tol
- Timestamp:
- Jan 21, 2009, 1:27:04 PM (18 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- 804f404
- Parents:
- a6201a5
- File:
-
- 1 edited
-
tol/btol/bgrammar/nameblock.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tol/btol/bgrammar/nameblock.cpp
ra6201a5 r42033f3 109 109 const BText& name = BEqualOperator::CreatingName(); 110 110 //Std(BText("BNameBlock::EvaluateTree:\n")+BParser::treWrite((List*)tre," ")); 111 BBool hasName = name.HasName(); 111 112 BText fullName = name; 112 if(BNameBlock::current_ )113 if(BNameBlock::current_ && hasName) 113 114 { 114 115 fullName = BNameBlock::current_->Name()+"::"+name; … … 116 117 BSyntaxObject* result = NULL; 117 118 int level = BGrammar::Level(); 118 if( level>0)119 if((level>0) && hasName) 119 120 { 120 121 result = BGrammar::FindLocal(name); … … 136 137 " ya está siendo usado\n")+ ((!BNameBlock::current_)?"": 137 138 I2("Current NameBlock is ", 138 "El Nam Spaceen curso es ")+BNameBlock::current_->Name()));139 "El NameBlock en curso es ")+BNameBlock::current_->Name())); 139 140 return(NULL); 140 141 } 141 142 const BNameBlock* oldNameBlock = BNameBlock::current_; 142 //const BNameBlock* oldNameBlock = BNameBlock::current_; 143 143 BUserNameBlock* ns_result = new BGraContensP<BNameBlock>(new BNameBlock); 144 144 BNameBlock& newNameBlock = ns_result->Contens(); 145 145 newNameBlock.PutName(fullName); 146 BNameBlock::current_ = &newNameBlock;146 //BNameBlock::current_ = &newNameBlock; 147 147 int oldErr = (int)TOLErrorNumber().Value(); 148 148 BGrammar::IncLevel(); 149 149 int stackPos = BGrammar::StackSize(); 150 150 BSyntaxObject* set_result = GraSet()->EvaluateTree(tre); 151 BGrammar::DestroyStackUntil(stackPos, 0);151 BGrammar::DestroyStackUntil(stackPos, set_result); 152 152 BGrammar::DecLevel(); 153 153 int numErr = (int)TOLErrorNumber().Value()-oldErr; … … 166 166 } 167 167 } 168 BNameBlock::current_ = oldNameBlock;168 //BNameBlock::current_ = oldNameBlock; 169 169 if(!set_result) 170 170 {
Note: See TracChangeset
for help on using the changeset viewer.
