---
name: "mllex"
section: "1"
platform: "linux"
package: "mlton"
version: "20241230-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/mllex"
---

# mllex(1)

lexer generator for use with Standard ML and MLton

## NAME

**mllex** - lexer generator for use with Standard ML and MLton

## SYNOPSIS

**mllex foo.lex**

## DESCRIPTION

**mllex** takes as input a lexer specification **foo.lex** and produces as output in **foo.lex.sml** a lexer written in SML.

For details on the lexer specification, see **A Lexical Analyzer Generator for** **Standard ML**, which is in **/usr/share/doc/mlton/mllex.pdf**.

## SEE ALSO

[**mlton**(1)](/mlton/1.md),[**mlyacc**(1)](/mlyacc/1.md)
