We explain how to install ESMeta with the necessary environment settings from scratch. Our framework is developed in Scala, which works on JDK 17+. So before installation, please install JDK 17+ and sbt, an interactive build tool for Scala.
$ git clone https://github.com/es-meta/esmeta.gitInsert the following commands to ~/.bashrc (or ~/.zshrc):
# for ESMeta
export ESMETA_HOME="<path to ESMeta>" # IMPORTANT!!!
export PATH="$ESMETA_HOME/bin:$PATH" # for executables `esmeta` and etc.
source $ESMETA_HOME/.completion # for auto-completion in shellThe <path to ESMeta> should be the absolute path of the ESMeta repository.
Please type the following command to 1) update the git submodules, 2) generate
binary file bin/esmeta, and 3) apply the .completion for auto-completion.
$ cd esmeta && git submodule update --init && sbt assembly && source .completionIf you see the following message, ESMeta is successfully installed:
$ esmeta
# Welcome to ESMeta v0.6.4 - ECMAScript Specification Metalanguage.
# Please type `esmeta help` to see the help message.