glexer

Types

pub opaque type Lexer
pub type Position {
  Position(byte_offset: Int)
}

Constructors

  • Position(byte_offset: Int)

Functions

pub fn discard_comments(lexer: Lexer) -> Lexer
pub fn discard_whitespace(lexer: Lexer) -> Lexer
pub fn lex(lexer: Lexer) -> List(#(Token, Position))
pub fn new(source: String) -> Lexer
Search Document