prometheus/pkg/textparse/README.md
Callum Styan 54e3fc82f1 Add a README.md to textparse package about how to update lexers.
Signed-off-by: Callum Styan <callumstyan@gmail.com>
2019-10-23 23:55:42 -07:00

6 lines
273 B
Markdown

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