Allow rules to be connected

This commit is contained in:
Devine Lu Linvega 2024-04-08 09:53:22 -07:00
parent 8e22324ce2
commit fcc4076d62
1 changed files with 4 additions and 2 deletions

View File

@ -141,8 +141,10 @@ rewrite(void)
int i; int i;
if(p[0] == '<' && p[1] == '>') { if(p[0] == '<' && p[1] == '>') {
Rule *r = &rules[rules_len++]; Rule *r = &rules[rules_len++];
p += 3; p += 2;
r->a = parse_rule(p), p = walk(p) + 1; while((c = *p) && c <= ' ') p++;
r->a = parse_rule(p), p = walk(p);
while((c = *p) && c <= ' ') p++;
r->b = parse_rule(p), p = walk(p); r->b = parse_rule(p), p = walk(p);
return save(-1, p); return save(-1, p);
} }