For Haskell, there is a program named Happy which given a set of definition, rules, and some code, results into a lexer.hs or parser.hs. Is there something similar for Elixir ?
Leex and Yecc, but these will require a little Erlang. Alternatively you can use NimbleParsec which use Elixir meta programming facilities to define parser.
A decent example is GitHub - narrowtux/abacus: Parses and evaluates mathematical expressions in Elixir. Inspired by math.js · GitHub - the src folder contains the lexer & parser code (Erlang-land), and the lib folder contains calls into this (e.g. Abacus.lex/1)






















