Changeset de5a7dd in tol


Ignore:
Timestamp:
Oct 26, 2008, 10:31:06 AM (18 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
8958dab
Parents:
82ef353
Message:

Adding optional tags $BEGIN and $END

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tol/btol/vmatrix_type/vmat_bsr.cpp

    r82ef353 rde5a7dd  
    864864
    865865vector<noise_info>*  assign_noise_to_term::noise_vec_   = NULL;
    866 symbols<int>*          assign_noise_to_term::noise_table_ = NULL;
    867 lin_reg_equation*      assign_noise_to_term::equ_       = NULL;
    868 vector<sigma_info>*    assign_noise_to_term::sig_vec_   = NULL;
     866symbols<int>*        assign_noise_to_term::noise_table_ = NULL;
     867lin_reg_equation*    assign_noise_to_term::equ_         = NULL;
     868vector<sigma_info>*  assign_noise_to_term::sig_vec_     = NULL;
    869869
    870870///////////////////////////////////////////////////////////////////////////////
    … …  
    11061106  int numEqu_;
    11071107
     1108  bool endFound_;
    11081109
    11091110  bys_sparse_reg()
    11101111  : Xnzmax_  (0),
    11111112    Anzmax_  (0),
    1112     numEqu_  (0)
     1113    numEqu_  (0),
     1114    endFound_ (false)
    11131115  {
    11141116    var.count = 0;
    … …  
    11501152      model_nameDef, model_descriptionDef,
    11511153      session_nameDef, session_descriptionDef, session_authorDef,
    1152       problem;
     1154      explicit_begin, explicit_end, problem;
    11531155
    11541156    definition(const bys_sparse_reg& s_)
    … …  
    17001702        error_SessionAuthorDefExpected
    17011703        ;
    1702 
     1704      explicit_begin = str_p("$BEGIN");
     1705      explicit_end   = str_p("$END")[assign_a(s.endFound_,true)];
    17031706      problem =
     1707        (explicit_begin | eps_p) >>
    17041708        //header
    17051709        (
    … …  
    17181722           inequation ) >>
    17191723        //end
    1720         (end_p | error_declarationExpected )
     1724        (explicit_end | end_p | error_declarationExpected )
    17211725        ;
    17221726      //BOOST_SPIRIT_DEBUG_NODE(argumentSeparator );
    … …  
    21002104  Std(BSR()+"Parsing BSR file "+fName+" with "+(int)bsr.fileSize+" bytes\n");
    21012105  parse_info<iterator_t> result = parse(begin, end, bsr, skip);
    2102   if(!result.full)
     2106  if(!result.full && !bsr.endFound_)
    21032107  {
    21042108    BText msg = BSR() + BText(fName) + " Fails Parsing\n"+url_parse_bsr();
Note: See TracChangeset for help on using the changeset viewer.