
19 Apr
2010
19 Apr
'10
2:22 p.m.
EricB schrieb:
is there any way to manage this with 1.6.4
If only need to checked whether the string contains the same number of '(' and ')' what about int counter=0; rule<> r = ch_p('(')[increment_a(counter)] >> ~ch_p(')') >> ch_p(')')[decrement_a(counter)] if(counter!=0) { // unbalanced! } L.R.