Update documentation to use new REPL tool

Reviewed By: avp

Differential Revision: D21000366

fbshipit-source-id: 82864f8b6ebcc8d2c821bf8550feaa4042ce730f
This commit is contained in:
Neil Dhar 2020-04-15 10:38:40 -07:00 коммит произвёл Facebook GitHub Bot
Родитель db7344da7c
Коммит 21c522d32b
4 изменённых файлов: 5 добавлений и 7 удалений

Просмотреть файл

@ -30,5 +30,5 @@ The libraries will be built in `./armeabi-v7a/`.
```
mkdir hermes_arm && cd hermes_arm
$path_to_this_directory/config-llvm.sh
ninja hermes hvm hermes-repl
ninja hermes hvm
```

Просмотреть файл

@ -25,7 +25,7 @@ On Mac via Homebrew:
## Building on Linux and macOS
Hermes will place its build files in the current directory by default.
Hermes will place its build files in the current directory by default.
You can also give explicit source and build directories, use `--help` on the build scripts to see how.
Create a base directory to work in, e.g. ~/workspace, and cd into it. Follow the steps below to generate the Hermes build system:
@ -47,7 +47,7 @@ The Windows build depends on which particular combination of GitBash/Cygwin/WSL
## Running Hermes
The primary binary is the `hermes` tool, which will be found at `build/bin/hermes`. This tool compiles JavaScript to Hermes bytecode. It can also execute JavaScript, from source or bytecode.
The primary binary is the `hermes` tool, which will be found at `build/bin/hermes`. This tool compiles JavaScript to Hermes bytecode. It can also execute JavaScript, from source or bytecode or be used as a REPL.
### Executing JavaScript with Hermes
@ -78,7 +78,6 @@ The above instructions create an unoptimized debug build. The `--distribute` fla
In addition to `hermes`, the following tools will be built:
- `hdb`: JavaScript command line debugger
- `hermes-repl`: JavaScript interactive REPL
- `hbcdump`: Hermes bytecode disassembler
- `hermesc`: Standalone Hermes compiler. This can compile JavaScript to Hermes bytecode, but does not support executing it.
- `hvm`: Standalone Hermes VM. This can execute Hermes bytecode, but does not support compiling it.

Просмотреть файл

@ -147,5 +147,5 @@ when they are constructed using their respective JS constructors.
## REPL
The HermesVM provides a REPL in `bin/hermes-repl`,
The HermesVM provides a REPL in `bin/hermes`,
which calls through to the `eval()` global function in the `Runtime`.

Просмотреть файл

@ -4,8 +4,7 @@ Hermes is a small and lightweight JavaScript VM optimized for running React
Native apps on Android. This package contains desktop binaries for testing and
development purposes:
* `hermes`, to run bytecode and run/compile source code
* `hermes-repl`, a JavaScript REPL
* `hermes`, can be used as a REPL, to run bytecode, and to run/compile source code
* `hdb`, a command line debugger
* `hbcdump`, a low level bytecode inspection tool
* `hermesc`, a subset of `hermes` that only compiles source code