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