ml-lex(1)
π ml-lex β bestie edition π
okay so this is the manual page for ml-lex, straight outta the General Commands Manual (section 1, iykyk). it's a parser generator for ML and honestly? iconic. let's get into it β¨
πΈ NAME πΈ
ml-lex β a parser generator for ML π
β¨ SYNOPSIS β¨
ml-lex file.lex
that's it. that's the whole vibe. one command, one file, go off π
π¦ DESCRIPTION π¦
okay so real talk β this page only documents the ml-lex command briefly, like a lil summary bestie. it was written for the Debian distribution because the original program literally does not have a manual page. not me having to write the docs myself π
so here's the tea: the ml-lex proogram (yes, that's how it's spelled in the original, we're keeping it, no cap π«Ά) generates a lexical analyzer from the specification sitting in file.lex, and it produces the file file.lex.sml. that's the output, periodt.
lowkey obsessed with how it takes yourfile.lexand hands you back a.smlfile like a lil gift π
π SEE ALSO π
these programs are documented fully by A lexical analyzer generator for Standard ML, by Andrew W. Appel, James S. Mattson, and David R. Tarditi β and you can find that whole thing at:
/usr/share/doc/smlnj-doc/lexgen.pdf.gz
go read it, it's giving "required reading for the girlies who write compilers" πβ¨
π AUTHOR π
this manual page was written by Aaron Matthew Read <amread@nyx.net>, for the Debian GNU/Linux system β but bestie, it may be used by others too, we don't gatekeep π
π the cute sign-off π
and that's the whole page fr fr!! this one came from the General Commands Manual source, dated October 25, 2002 β a true vintage moment, and it ATE. mwah π
now go run ml-lex file.lex and slay, bestie π¦π
π¦ where this page comes from
- debian bookworm: ml-lex 110.79-8
- ubuntu jammy: ml-lex 110.79-6
- ubuntu noble: ml-lex 110.79-8build1
- ubuntu resolute: ml-lex 110.79-8build1
- ubuntu stonking: ml-lex 110.79-8build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms