Merge pull request #6210 from cstyan/lex-notes

Add a README.md to textparse package about how to update lexers.
This commit is contained in:
Ganesh Vernekar 2019-11-09 09:36:27 +01:00 committed by GitHub
commit 8330801222
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

6
pkg/textparse/README.md Normal file
View file

@ -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`