parse.yをyaccかけてみる
コンパイラ入門でyaccの使い方読んだのでruby/rubyのparse.yで試す code:shell
$ yacc parse.y
parse.y:12.10-14: require bison 3.0, but have 2.3
なるほどね。
code:sh
$ which bison
/usr/bin/bison
$ fish_add_path /opt/homebrew/opt/bison/bin
$ which bison
/opt/homebrew/opt/bison/bin/bison
$ bison --version
bison (GNU Bison) 3.8.2
Written by Robert Corbett and Richard Stallman.
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
はい