Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/DanielleMaywood/glexer
Gleam lexer implemented in Gleam!
https://github.com/DanielleMaywood/glexer
Last synced: 27 days ago
JSON representation
Gleam lexer implemented in Gleam!
- Host: GitHub
- URL: https://github.com/DanielleMaywood/glexer
- Owner: DanielleMaywood
- License: mit
- Created: 2023-05-11T13:26:32.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-13T13:50:06.000Z (8 months ago)
- Last Synced: 2024-04-14T04:09:48.044Z (8 months ago)
- Language: Gleam
- Homepage:
- Size: 41 KB
- Stars: 11
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-gleam - glexer - [📚](https://hexdocs.pm/glexer/) - A lexer for Gleam source code (Packages / Gleam)
README
# glexer
[![Package Version](https://img.shields.io/hexpm/v/glexer)](https://hex.pm/packages/glexer)
[![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/glexer/)A lexer for Gleam, written in Gleam!
## Installation
```sh
gleam add glexer
```Documentation can be found at .
## Quick Start
```gleam
import glexerpub fn main() {
let tokens = "pub fn main() {}"
|> glexer.new()
|> glexer.lex()// tokens is of type List(#(glexer.Token, glexer.Position))
}
```