Changeset a15e59b for src/dgp/grammar.hh
- Timestamp:
- 03/13/12 17:07:34 (13 years ago)
- Branches:
- master
- Children:
- f4bf33e
- Parents:
- abd28d1
- git-author:
- Tomasz Obrebski <to@…> (03/13/12 17:07:34)
- git-committer:
- Tomasz Obrebski <to@…> (03/13/12 17:07:34)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/dgp/grammar.hh
re7de6cc ra15e59b 192 192 //---------------------------------------------------------------------------------------------------- 193 193 194 inline195 bool Grammar::check_constr(NodeProp& hprop, NodeProp& dprop, int dir, Role role) // dir: 0-left 1-right196 {197 return198 !hprop.forbidden[role] &&199 ( dir==1 || !right[role] ) &&200 ( dir==0 || !left[role] ) &&201 ( dir==1 || (hprop.attached&init).none() ) &&202 ( dir==0 || (hprop.attached&fin).none() )203 ;204 }194 // inline 195 // bool Grammar::check_constr(NodeProp& hprop, NodeProp& dprop, int dir, Role role) // dir: 0-left 1-right 196 // { 197 // return 198 // !hprop.forbidden[role] && 199 // ( dir==1 || !right[role] ) && 200 // ( dir==0 || !left[role] ) && 201 // ( dir==1 || (hprop.attached&init).none() ) && 202 // ( dir==0 || (hprop.attached&fin).none() ) 203 // ; 204 // } 205 205 206 206 //---------------------------------------------------------------------------------------------------- … … 211 211 return 212 212 !hprop.forbidden[link.role] && 213 ( dir==1 || !right[link.role] ) &&214 ( dir==0 || !left[link.role]) &&213 ( dir==1 || (!right[link.role] && !link.props[Prop("RIGHT")]) ) && // ZREZYGNOWAÆ Z TABLICY right[<role>] 214 ( dir==0 || (!left[link.role] && !link.props[Prop("LEFT")]) ) && 215 215 ( dir!=0 || !hprop.init_attached ) && 216 216 ( dir!=1 || !hprop.fin_attached )
Note: See TracChangeset
for help on using the changeset viewer.