Update compile prerequisites in `doc/guides/compile.md` [ci skip]
Bison and gperf are optional.
@@ -10,19 +10,20 @@ To compile mruby out of the source code you need the following tools:
* C Compiler (e.g. `gcc` or `clang`)
* Linker (e.g. `gcc` or `clang`)
* Archive utility (e.g. `ar`)
-* Parser generator (`bison`)
* Ruby 2.5 or later (e.g. `ruby` or `jruby`)
+Optional:
+
+* Git (to update mruby source and integrate mrbgems easier)
+* C++ compiler (to use mrbgems which include `*.cpp`, `*.cxx`, `*.cc`)
+* Bison (to compile `mrbgems/mruby-compiler/core/parse.y`)
+* gperf (to compile `mrbgems/mruby-compiler/core/keywords`)
+
Note that `bison` bundled with MacOS is too old to compile `mruby`.
Try `brew install bison` and follow the instruction shown to update
the `$PATH` to compile `mruby`. We also encourage to upgrade `ruby`
on MacOS in similar manner.
-Optional:
-
-* git (to update mruby source and integrate mrbgems easier)
-* C++ compiler (to use GEMs which include \*.cpp, \*.cxx, \*.cc)
-
## Build
To compile `mruby` with the default build configuration, just invoke `rake`
@@ -468,7 +469,6 @@ proceeds like this:
* create binary commands according to binary gems (e.g. `mirb` and `mruby`)
* copy binaries under `build/host/bin` to `bin` directory
-
```
_______________________________________________________________
| Native Compilation for Host System |
