Changeset cdd0e84 in tol


Ignore:
Timestamp:
Feb 13, 2012, 7:46:28 PM (15 years ago)
Author:
Jorge Pérez <josp.jorge@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
4c13d5c
Parents:
1053ab7
Message:

refs #994, #1404: using exported function from TOL CheckSyntax

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@4128 be4846ae-f051-483a-831f-b64e7d08527f

Location:
tol/btol/text_type
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tol/btol/text_type/tol_btxtgra.h

    r1053ab7 rcdd0e84  
    3838template class TOL_API BGraContens     < BText >;
    3939
    40 TOL_API BText EvalText (const BText& expr, const BText& defVal);
     40TOL_API BText EvalText (const BText& expr, const BText& defVal);
     41TOL_API BText CheckSyntax( const BText &expr );
    4142
    4243//--------------------------------------------------------------------
  • tol/btol/text_type/txtgra.cpp

    r1053ab7 rcdd0e84  
    9696  BGrammar::DecLevel();
    9797  return(result);
     98}
     99
     100//--------------------------------------------------------------------
     101TOL_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;
    98113}
    99114
    … …  
    25982613//--------------------------------------------------------------------
    25992614{
    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 );
    26092617}
    26102618
Note: See TracChangeset for help on using the changeset viewer.