2025-03-14 21:59:59 -06:00
|
|
|
# bison
|
|
|
|
|
|
|
|
|
|
> GNU parser generator.
|
2025-04-03 20:36:56 -06:00
|
|
|
> More information: <https://manned.org/bison>.
|
2025-03-14 21:59:59 -06: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`:
|
|
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
`bison {{[-t|--debug]}} {{path/to/file.y}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Specify the output filename:
|
|
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
`bison {{[-o|--output]}} {{path/to/output.c}} {{path/to/file.y}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Be verbose when compiling:
|
|
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
`bison {{[-v|--verbose]}}`
|