mllex(1)
π mllex β the lexer generator bestie π
okay so real talk, this is the manual page for mllex, a lexer generator that you use with Standard ML and MLton. it lives in the General Commands Manual section of your man pages, section 1, and yes it is giving very much "small page, big power." π¦
β¨ NAME β¨
mllex β lexer generator for use with Standard ML and MLton π
πΈ SYNOPSIS πΈ
mllex foo.lex
that's it. that's the whole vibe. one file in, one file out, slay. β¨
π DESCRIPTION π
okay so here's the tea, bestie. mllex takes as input a lexer specification called foo.lex π and produces as output, in foo.lex.sml, a lexer written in SML. like, it literally hands you back a whole lexer in SML. no cap. π₯
so you write the spec, you run the command, and boom β foo.lex.sml is just there, being a lexer. main character energy fr fr. π
and if you're like "okay but how do i even write a lexer specification though??" β valid question, love that for you. for details on the lexer specification, see A Lexical Analyzer Generator for Standard ML, which is in /usr/share/doc/mlton/mllex.pdf. go read it, it's right there on your machine. πβ¨
not me being a whole generator and also coming with homework. the pdf is genuinely the move though, iykyk. π
π¦ SEE ALSO π¦
mlton(1)β the whole compiler situation πmlyacc(1)β parser generator bestie, the other half of the duo π
and that's the page!! π«Ά this version of the manual is dated December 30, 2024, and it's the mllex(1) page from the General Commands Manual β so if you're citing it or whatever, that's the receipt. periodt. π
β¨
π¦ where this page comes from
- arch rolling: mlton 20241230-1 Β· HPND AND MIT
- nixos 26.05: isabelle 2025-2
- nixos 26.05: mlton 20241230
- nixos 26.05: mlton-HEAD
- nixpkgs unstable: isabelle 2025-2
- nixpkgs unstable: mlton 20241230
- nixpkgs unstable: mlton-HEAD
- ubuntu resolute: mlton-tools 20241230+git20251029+dfsg-5 Β· HPND
- ubuntu stonking: mlton-tools 20241230+git20251029+dfsg-5 Β· HPND
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms