This commit is contained in:
Devine Lu Linvega 2024-04-04 11:38:39 -07:00
parent f9dbae56bb
commit d80725f4c8
2 changed files with 4 additions and 3 deletions

View File

@ -89,9 +89,8 @@ tokenize(char *t, FILE *f)
r->a = parse_rulefrag(f), r->b = parse_rulefrag(f); r->a = parse_rulefrag(f), r->b = parse_rulefrag(f);
return; return;
} }
while(f && fread(&c, 1, 1, f) && c && c != 0xa) while(f && fread(&c, 1, 1, f) && c)
*prog_++ = c; *prog_++ = c == 0xa ? 0x20 : c;
*prog_++ = 0x20;
} }
static int static int

View File

@ -1,3 +1,5 @@
<> (?x world) (?x whurl)
<> (?b bar) (?b baz) <> (?b bar) (?b baz)
(hello world)
((foo baz) bar) ((foo baz) bar)