Changeset cdd0e84 in tol
- Timestamp:
- Feb 13, 2012, 7:46:28 PM (15 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- 4c13d5c
- Parents:
- 1053ab7
- Location:
- tol/btol/text_type
- Files:
-
- 2 edited
-
tol_btxtgra.h (modified) (1 diff)
-
txtgra.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tol/btol/text_type/tol_btxtgra.h
r1053ab7 rcdd0e84 38 38 template class TOL_API BGraContens < BText >; 39 39 40 TOL_API BText EvalText (const BText& expr, const BText& defVal); 40 TOL_API BText EvalText (const BText& expr, const BText& defVal); 41 TOL_API BText CheckSyntax( const BText &expr ); 41 42 42 43 //-------------------------------------------------------------------- -
tol/btol/text_type/txtgra.cpp
r1053ab7 rcdd0e84 96 96 BGrammar::DecLevel(); 97 97 return(result); 98 } 99 100 //-------------------------------------------------------------------- 101 TOL_API BText CheckSyntax( const BText& expr ) 102 //-------------------------------------------------------------------- 103 { 104 BBool stat = BOut::ErrorHci(); 105 BOut::PutErrorHci(BFALSE); 106 BParser* parser = new BParser; 107 Tree* tree = parser->Parsing( expr ); 108 BText result = parser->MessageError(); 109 delete parser; 110 BOut::PutErrorHci( stat ); 111 DESTROY(tree); 112 return result; 98 113 } 99 114 … … 2598 2613 //-------------------------------------------------------------------- 2599 2614 { 2600 BText expr = Text(Arg(1)); 2601 BBool stat = BOut::ErrorHci(); 2602 BOut::PutErrorHci(BFALSE); 2603 BParser* parser = new BParser; 2604 Tree* tree = parser->Parsing(expr); 2605 contens_ = parser->MessageError(); 2606 delete parser; 2607 BOut::PutErrorHci(stat); 2608 DESTROY(tree); 2615 BText &expr = Text(Arg(1)); 2616 contens_ = CheckSyntax( expr ); 2609 2617 } 2610 2618
Note: See TracChangeset
for help on using the changeset viewer.
