1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/bison.md

21 lines
452 B
Markdown
Raw Normal View History

2020-01-01 02:44:15 +00:00
# bison
> GNU parser generator.
> More information: <https://manned.org/bison>.
2020-01-01 02:44:15 +00:00
- Compile a bison definition file:
`bison {{path/to/file.y}}`
- Compile in debug mode, which causes the resulting parser to write additional information to `stdout`:
2020-01-01 02:44:15 +00:00
`bison {{[-t|--debug]}} {{path/to/file.y}}`
2020-01-01 02:44:15 +00:00
- Specify the output filename:
`bison {{[-o|--output]}} {{path/to/output.c}} {{path/to/file.y}}`
2020-01-01 02:44:15 +00:00
- Be verbose when compiling:
`bison {{[-v|--verbose]}}`