Changeset 9ace5d2 for app/src/dgp/grammar.cc
- Timestamp:
- 12/11/08 22:20:14 (16 years ago)
- Branches:
- master, help
- Children:
- 2d89d4b
- Parents:
- 91ed676
- git-author:
- obrebski <obrebski@…> (12/11/08 22:20:14)
- git-committer:
- obrebski <obrebski@…> (12/11/08 22:20:14)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
app/src/dgp/grammar.cc
r0214596 r9ace5d2 44 44 lt.resize(types_sz); 45 45 gt.resize(types_sz); 46 } 47 } 48 49 void Grammar::add_flag(const char* s) 50 { 51 Flag::add(s); 52 if(Flag::count()>flags_sz) 53 { 54 flags_sz += 16; 55 pass.resize(flags_sz); 46 56 } 47 57 } … … 124 134 set_connect(arg1,arg2,arg3); 125 135 } 136 // FLAG DECLARATION 137 else if(strcmp(key,"FLAG")==0 && fields>=2) 138 { 139 add_flag(arg1); 140 } 126 141 127 142 else fprintf(stderr,"Invalid line %d. Ignored.\n", lineno); … … 160 175 if(connect[c][d].count(t)) 161 176 fprintf(f,"LINK\t%s\t%s\t%s\n",c.str(),d.str(),t.str()); 177 178 for(Flag i=1; i<Flag::count(); ++i) 179 fprintf(f,"FLAG\t%s\n",i.str()); 162 180 } 163 181
Note: See TracChangeset
for help on using the changeset viewer.