Files
tldr/pages.zh/common/bison.md

20 lines
418 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# bison
> GNU 解析器生成器。
> 更多信息:<https://www.gnu.org/software/bison/>.
- 编译一个 bison 定义文件:
`bison {{path/to/file.y}}`
- 以调试模式编译,这会导致生成的解析器将额外信息写入 `stdout`
`bison --debug {{path/to/file.y}}`
- 指定输出文件名:
`bison --output {{path/to/output.c}} {{path/to/file.y}}`
- 编译时详细输出:
`bison --verbose`