From 54e3fc82f159f567f2455328ba1d36d94509020f Mon Sep 17 00:00:00 2001 From: Callum Styan Date: Wed, 23 Oct 2019 23:03:08 -0700 Subject: [PATCH] Add a README.md to textparse package about how to update lexers. Signed-off-by: Callum Styan --- pkg/textparse/README.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 pkg/textparse/README.md diff --git a/pkg/textparse/README.md b/pkg/textparse/README.md new file mode 100644 index 000000000..697966f09 --- /dev/null +++ b/pkg/textparse/README.md @@ -0,0 +1,6 @@ +# Making changes to textparse lexers +In the rare case that you need to update the textparse lexers, edit promlex.l or openmetricslex.l and then run the following command: +`golex -o=promlex.l.go promlex.l` + +Note that you need golex installed: +`go get -u modernc.org/golex` \ No newline at end of file