mllex(1)

πŸ“¦
version 20241230+git20251029 Β· 2 versions
, in arch rolling, nixos 26.05, nixpkgs unstable, ubuntu resolute, ubuntu stonking

πŸ’… 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. πŸ’…βœ¨