The easiest way to install lexor is to use pip
. If you wish to perform a global installation and you have admin rights then do
sudo pip install lexor
or to install in some directory under your user account
pip install --user lexor
Or if you prefer to do do a manual installation then you may do the following from the command line (where x.y is the version number):
wget https://pypi.python.org/packages/source/l/lexor/lexor-x.y.tar.gz
tar xvzf lexor-x.y.tar.gz
cd lexor-x.y/
sudo python setup.py install
The last command can be replaced by python setup.py install --user
. See PyPI for all available versions.
The basic lexor installation does not provide any parsers, converters or writers. You must install them manually using the install
lexor command.
lexor install <language>
To see the available languages see http://jmlopez-rod.github.io/lexor-lang/.