commit ef9f830ae2d8d4f17258b50c16c7a75304637077
parent 0f03c71bbd3d17b1eeea308b1570010dd5209707
Author: erai <erai@omiltem.net>
Date: Sat, 14 Sep 2024 15:35:17 -0400
add check for pegpeg changes
Diffstat:
2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/.gitignore b/.gitignore
@@ -7,6 +7,7 @@ cc2
cc3
gencc
parse3.c
+parsepeg2.c
pxe
cmp
cpio
diff --git a/build.sh b/build.sh
@@ -14,6 +14,9 @@ ALL="${LIBS} ${CC} ${PEG} ${BOOT} ${SSHD} ${KERNEL} ${SHELL} ${BIN}"
./cc1 ${LIBS} ${CC} -o cc2
./cc1 ${LIBS} ${PEG} -o peg
+./peg -o parsepeg2.c peg.peg
+cmp parsepeg.c parsepeg2.c || echo peg mismatch
+
./peg -o parse3.c cc3.peg
./cc1 -o cc3 bufio.c lib.c alloc.c syscall.c peglib.c cc3.c parse3.c