This commit is contained in:
parent
742cbf1298
commit
18abf56626
|
@ -32,14 +32,7 @@ match(char *p, Rule *r)
|
|||
{
|
||||
char c, *a = r->a, *b = p;
|
||||
while((c = *a)) {
|
||||
/* registers */
|
||||
if(c == '?') {
|
||||
char cc;
|
||||
int id = *(++a);
|
||||
bind(id, b);
|
||||
a++, b = walk(b);
|
||||
printf("[%s][%s]\n", a, b);
|
||||
}
|
||||
if(c == '?') bind(*(++a), b), a++, b = walk(b), c = *b;
|
||||
if(c != *b) return 0;
|
||||
a++, b++;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue