Package Usage: go: modernc.org/lex
Package lex provides support for a *nix (f)lex like tool on .l sources.
The syntax is similar to a subset of (f)lex, see also: http://flex.sourceforge.net/manual/Format.html#Format
2021-05-28: Removed global state, NewL can now be called multiple times.
2014-11-18: Add option for marking an accepting state. Required to support
POSIX longest match.
Some feature examples:
Missing/differing functionality of the .l parser/FSM generator (compared to flex):
4 versions
Latest release: over 2 years ago
13 dependent packages
View more package details: https://packages.ecosystem.code.gouv.fr/registries/proxy.golang.org/packages/modernc.org/lex