Do not skip first token
This commit is contained in:
parent
23e3fc2176
commit
6ad9490f45
|
@ -0,0 +1,4 @@
|
||||||
|
<> (?x dup) (?x ?x)
|
||||||
|
<> (?x ?y swap) (?y ?x)
|
||||||
|
|
||||||
|
foo ((A B swap) dup)
|
|
@ -1,4 +1,3 @@
|
||||||
<> (?x dup) (?x ?x)
|
<> (duppre ?x) (?x ?x)
|
||||||
<> (?x ?y swap) (?y ?x)
|
|
||||||
|
|
||||||
foo ((A B swap) dup)
|
what (duppre twice)
|
|
@ -128,8 +128,11 @@ 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((c = *t++))
|
||||||
|
*prog_++ = c;
|
||||||
|
*prog_++ = ' ';
|
||||||
while(f && fread(&c, 1, 1, f) && c)
|
while(f && fread(&c, 1, 1, f) && c)
|
||||||
*prog_++ = c == 0xa ? 0x20 : c;
|
*prog_++ = c == 0xa ? ' ' : c;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
|
Loading…
Reference in New Issue