Difference between revisions of "Applications/Bison"
From HPC
m |
(added example and moved description downward) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
==Application Details== | ==Application Details== | ||
− | *Description: Bison, is a parser generator that is part of the GNU Project. | + | *Description: Bison, is a parser generator that is part of the GNU Project. |
*Version: 3.0.4 | *Version: 3.0.4 | ||
*Modules: bison/3.0.4 | *Modules: bison/3.0.4 | ||
Line 8: | Line 8: | ||
==Usage== | ==Usage== | ||
+ | Bison reads a specification of a context-free language, warns about any parsing ambiguities, and generates a parser (either in C, C++, or Java) which reads sequences of tokens and decides whether the sequence conforms to the syntax specified by the grammar. | ||
===Load Module=== | ===Load Module=== | ||
<pre style="background-color: #000000; color: white; border: 2px solid black; font-family: monospace, sans-serif;"> | <pre style="background-color: #000000; color: white; border: 2px solid black; font-family: monospace, sans-serif;"> | ||
Line 13: | Line 14: | ||
</pre> | </pre> | ||
− | == | + | ===Run Bison=== |
− | [ | + | <pre style="background-color: #000000; color: white; border: 2px solid black; font-family: monospace, sans-serif;"> |
+ | [username@login01 ~]$ bison filename.y | ||
+ | </pre> | ||
− | == | + | ==Next Steps== |
+ | *[https://www.gnu.org/software/bison/ GNU Bison] | ||
− | + | {{Modulepagenav}} | |
− | |||
− | |||
− |
Latest revision as of 14:42, 16 November 2022
Application Details
- Description: Bison, is a parser generator that is part of the GNU Project.
- Version: 3.0.4
- Modules: bison/3.0.4
- License: GNU Licence
Usage
Bison reads a specification of a context-free language, warns about any parsing ambiguities, and generates a parser (either in C, C++, or Java) which reads sequences of tokens and decides whether the sequence conforms to the syntax specified by the grammar.
Load Module
[username@login01 ~]$ module add bison/3.0.4
Run Bison
[username@login01 ~]$ bison filename.y