- Bison for Windows: https://github.com/lexxmark/winflexbison
- Other platforms: https://www.gnu.org/software/bison
To generate asmparse.cpp
, run either of following:
- Unix:
yacc asmparse.y -o prebuilt/asmparse.cpp
- Windows:
win_bison asmparse.y -o prebuilt\asmparse.cpp
$ cd runtime
# run a throw-away-after-exit container with --rm
$ docker run --rm -v$(pwd):/runtime -w /runtime/src/coreclr/ilasm alpine \
sh -c 'apk add bison && yacc asmparse.y -o prebuilt/asmparse.cpp'
To generate grammar, see GrammarExtractor README.