'Erlang: Installing Leex'
Leex is an erlang version of Lex, a Lexical Analyzer Generator written by Robert Virding. Robert (and several others in #erlang on freenode) were incredibly helpful and considerate in helping me understand these tools.
Leex is a tokenizer. It breaks the pieces of your file or text into tokens. You can then use a tool like yecc to take these tokens and generate useful parsers.
First, you’ll need the source. Leex source is available here. Go down to the last post in the forum, download the attached file.
-
Create a directory for your erlang packages. I chose ~/erlang.
-
Drop the leex directory in your new erlang package directory.
-
Edit your ~/.erlang file (it probably doesn’t exist yet) to include this line, making sure to use the path to your erlang package directory instead of mine:
code:add_pathz("/Users/jhaddad/erlang/leex/ebin").
You should be able to use the leex libraries now.
If you found this post helpful, please consider sharing to your network. I'm also available to help you be successful with your distributed systems! Please reach out if you're interested in working with me, and I'll be happy to schedule a free one-hour consultation.