Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
GNU Bison
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Use== Because Bison was written as a replacement for Yacc, and is largely compatible, the code from a lot of projects using Bison could equally be fed into Yacc. This makes it difficult to determine if a project "uses" Bison-specific source code or not. In many cases, the "use" of Bison could be trivially replaced by the equivalent use of Yacc or one of its other derivatives. Bison has features not found in Yacc, so some projects can be truly said to "use" Bison, since Yacc would not suffice. The following list is of projects which are known to "use" Bison in the looser sense, that they use free software development tools and distribute code which is intended to be fed into Bison or a Bison-compatible package. * [[Bash (Unix shell)|Bash]] shell uses a yacc grammar for parsing the command input. * Bison's own grammar parser is generated by Bison.<ref name="parse-gram.y">{{cite web |title=parse-gram.y |url=http://git.savannah.gnu.org/cgit/bison.git/tree/src/parse-gram.y |department=bison.git |work=[[GNU Savannah]] |access-date=2020-07-29}}</ref> * [[CMake]] uses several Bison grammars.<ref>{{cite web|url=https://github.com/Kitware/CMake/tree/master/Source/LexerParser|title=LexerParser in CMake|website=github.com}}</ref> * [[GNU Compiler Collection|GCC]] started out using Bison, but switched to a hand-written [[Recursive descent parser|recursive-descent parser]] for C++ in 2004 (version 3.4),<ref>[https://gcc.gnu.org/gcc-3.4/changes.html GCC 3.4 Release Series Changes, New Features, and Fixes]</ref> and for C and Objective-C in 2006 (version 4.1)<ref>[https://gcc.gnu.org/gcc-4.1/changes.html GCC 4.1 Release Series Changes, New Features, and Fixes]</ref> * The [[Go (programming language)|Go]] programming language (GC) used Bison, but switched to a hand-written scanner and parser in version 1.5.<ref>[https://forum.golangbridge.org/t/golang-grammar-definition/14473/3 Golang grammar definition]</ref> * [[LilyPond]] requires Bison to generate its parser.<ref>{{Cite web|url=https://git.savannah.gnu.org/cgit/lilypond.git/tree/lily/parser.yy|title=Parser.yy - GNU LilyPond Git Repository|website=git.savannah.gnu.org}}</ref> * [[MySQL]]<ref>{{Cite web|url=https://www.safaribooksonline.com/library/view/flex-bison/9780596805418/ch04.html|title=4. Parsing SQL - flex & bison [Book]}}</ref> * [[GNU Octave]] uses a Bison-generated parser.<ref>{{Cite web|url=http://octave.org/doxygen/4.0/d5/d60/oct-parse_8cc_source.html|title = GNU Octave: Libinterp/Parse-tree/Oct-parse.cc Source File}}</ref> * [[Perl 5]] uses a Bison-generated parser starting in 5.10.<ref>{{cite web|url=http://perldoc.perl.org/perl5100delta.html|title=What is new for perl 5.10.0?|publisher=perl.org}}</ref> * The [[PHP]] programming language (Zend Parser). * [[PostgreSQL]]<ref>{{cite web|url=https://www.postgresql.org/docs/current/parser-stage.html|publisher=postgresql.org|title=The Parser Stage|date=30 September 2021}}</ref> * [[Ruby MRI]], the reference implementation of the [[Ruby (programming language)|Ruby]] programming language, relies on a Bison grammar.<ref>{{cite web|url=https://github.com/ruby/ruby/blob/master/parse.y|website=github.com |title=Ruby MRI Parser}}</ref> * [[syslog-ng]] uses several Bison grammars assembled together.<ref>{{cite web|url=https://github.com/syslog-ng/syslog-ng/blob/2d594f664a5d8c01081c96c966ac3d05ef8675d4/modules/xml/xml-grammar.ym|website=github.com |title=syslog-ng's XML Parser|date=14 October 2021 }}</ref>
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)