Skip to content

DanielleMaywood/glexer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

glexer

Package Version Hex Docs

A lexer for Gleam, written in Gleam!

Installation

gleam add glexer

Documentation can be found at https://hexdocs.pm/glexer.

Quick Start

import glexer

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

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

About

Gleam lexer implemented in Gleam!

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages