An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 1.7% on proxy.golang.org
Top 0.5% dependent packages on proxy.golang.org
Top 0.5% dependent repos on proxy.golang.org
Top 4.2% forks on proxy.golang.org
Top 0.4% docker downloads on proxy.golang.org

proxy.golang.org : 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

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/timtadh/lexmachine
Keywords: dfa , go , lex , lexer , lexical-analysis-engines , lexical-analysis-framework , nfa , regular-expression , tokenizer
License: BSD-3-Clause
Latest release: almost 3 years ago
First release: almost 8 years ago
Namespace: github.com/timtadh
Dependent packages: 80
Dependent repositories: 193
Stars: 388 on GitHub
Forks: 29 on GitHub
Docker dependents: 264
Docker downloads: 22,394,240
See more repository details: repos.ecosyste.ms
Last synced: 1 day ago

    Loading...
    Readme
    Loading...