home: hub: minipeg

Download patch

ref: e61b61635bdab84e2db5532907a078f221da82a1
parent: 860d5e268b3c523eac57e463b2a96824b98e044d
author: Andrew Chambers <ac@acha.ninja>
date: Sun Apr 10 19:05:40 CDT 2022

Work on version script.

--- a/Makefile
+++ b/Makefile
@@ -33,8 +33,7 @@
 www/index.html: .FORCE
 	sh ./www/index.html.sh > $@
 
-# Check the pregenerated peg.c matches the built peg-new.c.
-# We also check peg-amalg.c to test our amalgamation process.
+# Check the bootstrap minipeg.c matches the built minipeg-new.c.
 check-self-host: minipeg-new.c .FORCE
 	diff -u minipeg.c minipeg-new.c
 
--- a/minipeg.c
+++ b/minipeg.c
@@ -27,7 +27,7 @@
 #include <string.h>
 #include <unistd.h>
 #line 0 "version.h"
-#define MINIPEG_VERSION "0.1.19"
+#define MINIPEG_VERSION "unreleased"
 #line 0 "tree.h"
 
 enum { Unknown= 0, Rule, Variable, Name, Dot, Character, String, Class, Action, Inline, Predicate, Error, Alternate, Sequence, PeekFor, PeekNot, Query, Star, Plus };
@@ -1274,7 +1274,7 @@
 
 void Rule_print(Node *node)	{ Rule_fprint(stderr, node); }
 #line 0 "peg.c"
-/* A recursive-descent parser generated by minipeg 0.1.19 */
+/* A recursive-descent parser generated by minipeg unreleased */
 
 #define YYRULECOUNT 38
 #line 1 "peg.peg"
--- a/version.h
+++ b/version.h
@@ -1,1 +1,1 @@
-#define MINIPEG_VERSION "0.1.19"
+#define MINIPEG_VERSION "unreleased"