github.com/timtadh/lexmachine
Package lexmachine is a full lexical analysis framework for the Go programming language. It supports a restricted but usable set of regular expressions appropriate for writing lexers for complex programming languages. The framework also supports sub-lexers and non-regular lexing through an "escape hatch" which allows the users to consume any number of further bytes after a match. So if you want to support nested C-style comments or other paired structures you can do so at the lexical analysis stage. For a tutorial see http://hackthology.com/writing-a-lexer-in-go-with-lexmachine.html Example of defining a lexer Example of using a lexer
proxy.golang.org
v0.2.3
over 3 years ago
6
80
193
Links
| Registry | proxy.golang.org |
| Source | Repository |
| Docs | Documentation |
| JSON API | View JSON |
| CodeMeta | codemeta.json |
Package Details
| PURL |
pkg:golang/github.com/timtadh/lexmachine
spec |
| License | BSD-3-Clause |
| Namespace | github.com/timtadh |
| First Release | almost 9 years ago |
| Last Synced | about 16 hours ago |
Repository
| Stars | 388 on GitHub |
| Forks | 29 on GitHub |
| Docker Dependents | 264 |
| Docker Downloads | 22,394,240 |