Comparison of parser generators

« Back to Glossary Index

Regular languages
– Regular languages can be matched by a state machine constructed from a regular expression.
– Regular languages can express constructs like A follows B, Either A or B, A followed by zero or more instances of B.
– Regular languages cannot express constructs that require consistency between non-adjacent elements or recursive nesting.
– Regular languages cannot handle problems like checking correctly-nested parentheses.
– Examples of regular language parser generators include .NET CLR, Free, GNU GPL, C# Lex, DFA, Mixed.

Context-free languages
– Context-free languages can be matched by a sequence of replacement rules.
– Context-free languages can handle the concept of recursive nesting.
– Context-free grammars are purely local and cannot handle non-local analysis.
– Context-free grammars can be extended with limited context-sensitivity using user-written code.
– Examples of context-free language parser generators include .NET CLR, Free, Apache 2.0, CookCC, DFA, Java.

Deterministic context-free languages
– Deterministic context-free languages are a subset of context-free languages.
– Deterministic context-free languages can be efficiently parsed by deterministic pushdown automata.
– Examples of programming languages that support deterministic context-free languages include C, C++, C#, F#, Java, Ada, Object Pascal, Delphi, Modula-2, Oberon, Ruby, Swift, Unicon, Visual Basic .NET.
– Parser generators for deterministic context-free languages include LR(?), LL(?), LALR(?), SLR(?).
– The generated parsers can be used for partial parsing and follow CPOL 1.0 license.

General context-free, conjunctive, or boolean languages
– General context-free, conjunctive, or boolean languages are compared in a table.
– Parser generators for these languages are free and use licenses like Apache 2.0.
– Examples of programming languages supported by these parser generators include C++, C#, Java, Visual Basic .NET.
– These parser generators are compared with context-sensitive grammars.
– Ragel State Machine Compiler is mentioned as a related tool.

Other parser generator tools
– Other parser generator tools are mentioned in various references.
– These tools include Drat!, Narwhal, POSIX, Windows, Nearley, Earley, JavaScript, Nemerle.Peg, Lambda PEG, PyPy rlib, Rats!, Rekex, PEG Parser?, PHP, and more.
– These tools support different programming languages and use various licenses like MIT, BSD, GNU LGPL, and Apache 2.0.
– Some tools are specifically designed for packrat parsing.
– References and sources are provided for further reading.

This is a list of notable lexer generators and parser generators for various language classes.

« Back to Glossary Index

Submit your RFP

We can't wait to read about your project. Use the form below to submit your RFP!

Gabrielle Buff
Gabrielle Buff

Just left us a 5 star review

Great customer service and was able to walk us through the various options available to us in a way that made sense. Would definitely recommend!

Stoute Web Solutions has been a valuable resource for our business. Their attention to detail, expertise, and willingness to help at a moment's notice make them an essential support system for us.

Paul and the team are very professional, courteous, and efficient. They always respond immediately even to my minute concerns. Also, their SEO consultation is superb. These are good people!

Paul Stoute & his team are top notch! You will not find a more honest, hard working group whose focus is the success of your business. If you’re ready to work with the best to create the best for your business, go Stoute Web Solutions; you’ll definitely be glad you did!

Wonderful people that understand our needs and make it happen!

Paul is the absolute best! Always there with solutions in high pressure situations. A steady hand; always there when needed; I would recommend Paul to anyone!

Vince Fogliani

The team over at Stoute web solutions set my business up with a fantastic new website, could not be happier

Steve Sacre

If You are looking for Website design & creativity look no further. Paul & his team are the epitome of excellence.Don't take my word just refer to my website ""that Stoute Web Solutions created.This should convince anyone that You have finally found Your perfect fit

Jamie Hill

Paul and the team at Stoute Web are amazing. They are super fast to answer questions. Super easy to work with, and knows their stuff. 10,000 stars.

Paul and the team from Stoute Web solutions are awesome to work with. They're super intuitive on what best suits your needs and the end product is even better. We will be using them exclusively for our web design and hosting.

Dean Eardley

Beautifully functional websites from professional, knowledgeable team.

Along with hosting most of my url's Paul's business has helped me with website development, graphic design and even a really cool back end database app! I highly recommend him as your 360 solution to making your business more visible in today's social media driven marketplace.

I hate dealing with domain/site hosts. After terrible service for over a decade from Dreamhost, I was desperate to find a new one. I was lucky enough to win...

Paul Stoute has been extremely helpful in helping me choose the best package to suite my needs. Any time I had a technical issue he was there to help me through it. Superb customer service at a great value. I would recommend his services to anyone that wants a hassle free and quality experience for their website needs.

Paul is the BEST! I am a current customer and happy to say he has never let me down. Always responds quickly and if he cant fix the issue right away, if available, he provides you a temporary work around while researching the correct fix! Thanks for being an honest and great company!!

Paul Stoute is absolutely wonderful. Paul always responds to my calls and emails right away. He is truly the backbone of my business. From my fantastic website to popping right up on Google when people search for me and designing my business cards, Paul has been there every step of the way. I would recommend this company to anyone.

I can't say enough great things about Green Tie Hosting. Paul was wonderful in helping me get my website up and running quickly. I have stayed with Green...