ml-antlr command not found

In this troubleshooting guide we learn how to fix ml-antlr command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

ml-antlr: command not found

or when using sudo you get the following error message

sudo: ml-antlr: command not found

Solutions to ml-antlr: command not found

How To Fix ml-antlr: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu ml-antlr is provided by ml-lpt package.

ml-lpt is:

Tradition has it that when a new programming language is introduced, new scanner and parser generators are written in that language, and generate code for that language. Traditional also has it that the new tools are modeled after the old lex and yacc tools, both in terms of the algorithms used, and often the syntax as well. The language Standard ML is no exception: ml-lex and ml-yacc are the SML incarnations of the old Unix tools.

This package has two new tools, ml-ulex and ml-antlr, that follow tradition in separating scanning from parsing, but break from tradition in their implementation: ml-ulex is based on regular expression derivatives rather than subset-construction, and ml-antlr is based on LL(k) parsing rather than LALR(1) parsing.

To fix this problem, we can install more using the command below.

sudo apt-get -y install ml-lpt

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install ml-lpt.

sudo apt -y install ml-lpt

Or if you have aptitude installed you can use the following command.

sudo aptitude install ml-lpt

Summary

In this tutorial we learn how to fix ml-antlr command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.