Changeset d484a32 for src/dgp/grammar.cc
- Timestamp:
- 10/24/14 13:07:15 (10 years ago)
- Branches:
- master
- Children:
- acbabee
- Parents:
- 56c300b
- git-author:
- Tomasz Obrebski <obrebski@…> (10/24/14 13:07:15)
- git-committer:
- Tomasz Obrebski <obrebski@…> (10/24/14 13:07:15)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/dgp/grammar.cc
r3b02b04 rd484a32 31 31 Cat::add(s); 32 32 33 if(connect.size() <= Cat::count())34 {35 connect.resize(Cat::count()+RESIZE_DELTA);36 for(int i=0; i<connect.size(); ++i)37 if(connect[i].size() <= Cat::count()) connect[i].resize(Cat::count()+RESIZE_DELTA);38 }33 // if(connect.size() <= Cat::count()) 34 // { 35 // connect.resize(Cat::count()+RESIZE_DELTA); 36 // for(int i=0; i<connect.size(); ++i) 37 // if(connect[i].size() <= Cat::count()) connect[i].resize(Cat::count()+RESIZE_DELTA); 38 // } 39 39 if(connect1.size() <= Cat::count()) 40 40 { … … 331 331 332 332 if( chk_cat(cat1) && chk_cat(cat2) && chk_type(type) ) 333 set_connect(cat1,parse_flags(flags1,"+"),parse_flags(flags1,"-"),cat2,parse_flags(flags2,"+"),parse_flags(flags2,"-"),type,parse_props(props) );333 set_connect(cat1,parse_flags(flags1,"+"),parse_flags(flags1,"-"),cat2,parse_flags(flags2,"+"),parse_flags(flags2,"-"),type,parse_props(props),lineno); 334 334 else if( chk_cat(cat1) && chk_cat(cat2) && chk_long(type) ) 335 335 { … … 504 504 if(obl[c].test(r)) fprintf(f,"REQ\t%s\t%s\n",c.str(),r.str()); 505 505 506 for(Cat c=1; c<Cat::count(); ++c)507 for(Cat d=1; d<Cat::count(); ++d)508 for(Role t=1; t<Role::count(); ++t)509 if(connect[c][d].count(t))510 fprintf(f,"LINK\t%s\t%s\t%s\n",c.str(),d.str(),t.str());506 // for(Cat c=1; c<Cat::count(); ++c) 507 // for(Cat d=1; d<Cat::count(); ++d) 508 // for(Role t=1; t<Role::count(); ++t) 509 // if(connect[c][d].count(t)) 510 // fprintf(f,"LINK\t%s\t%s\t%s\n",c.str(),d.str(),t.str()); 511 511 512 512 for(LongRel i=1; i<LongRel::count(); ++i)
Note: See TracChangeset
for help on using the changeset viewer.