Housekeeping
This commit is contained in:
parent
bcbfe02783
commit
9d4d20e542
|
@ -213,14 +213,13 @@ rewrite(void)
|
|||
Rule *r = NULL;
|
||||
if(c == '<' && s[1] == '>') { /* rule */
|
||||
r = rules_++;
|
||||
s = compile_rule(r,rules_ - rules - 1, s + 2);
|
||||
s = compile_rule(r, rules_ - rules - 1, s + 2);
|
||||
while(*s == ' ') s++;
|
||||
return write_rule(r, s, 1);
|
||||
}
|
||||
if(c == '?' && s[1] == '(') { /* lambda */
|
||||
cap = walk(s + 1);
|
||||
r = λ
|
||||
compile_rule(r, -1, s + 2);
|
||||
compile_rule(&lambda, -1, s + 2);
|
||||
s = cap;
|
||||
while(*s == ' ') s++;
|
||||
return apply_rule(&lambda, s);
|
||||
|
|
Loading…
Reference in New Issue