Fixed issue with inline rule definition

This commit is contained in:
Devine Lu Linvega 2024-04-06 17:59:54 -07:00
parent 8b8cc103e0
commit 8a94adc1c3
2 changed files with 3 additions and 5 deletions

View File

@ -1,5 +1,3 @@
<> (?x dup) (?x ?x) <> ((eval ?x)) (?x)
<> (?x ?y swap) (?y ?x)
<> ( ?x pop) ()
(1 2 3) (4 5 6) swap pop dup (eval (<> (join (?x) (?y)) (?x ?y))) (join (foo) (bar))

View File

@ -154,7 +154,7 @@ rewrite(char *incoming)
while((c = *p)) { while((c = *p)) {
int i; int i;
if(p[0] == '<' && p[1] == '>') { if(p[0] == '<' && p[1] == '>') {
p = addrule(p) + 1; p = addrule(p);
while((*outp_++ = *p++)) while((*outp_++ = *p++))
; ;
save(-1); save(-1);