Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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!

Awesome Lists containing this project

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 glexer

pub fn main() {
let tokens = "pub fn main() {}"
|> glexer.new()
|> glexer.lex()

// tokens is of type List(#(glexer.Token, glexer.Position))
}
```