# Parboiled (Java)

> Mediated Wiki article. Canonical URL: https://mediated.wiki/source/Parboiled_(Java)
> Markdown URL: https://mediated.wiki/source/Parboiled_(Java).md
> Source: https://en.wikipedia.org/wiki/Parboiled_(Java)
> Source revision: 1259347934
> License: Creative Commons Attribution-ShareAlike 4.0 International (https://creativecommons.org/licenses/by-sa/4.0/)

{{Short description|Open-source Java library}}
{{Infobox software
| name                   = parboiled Library
| logo                   =
| screenshot             =
| caption                =
| developer              = Mathias Doenitz
| released               = {{start date and age|2009|11|12}}
| operating system       = [Cross-platform](/source/Cross-platform)
| programming language   = [Java](/source/Java_(programming_language))
| license                = [Apache License](/source/Apache_License) 2.0
| website                = {{URL|parboiled.org}}
| latest release version = 1.4.1
| latest release date    = {{Start date and age|2022|03|11}}<ref>{{cite web | url=https://raw.githubusercontent.com/sirthias/parboiled/master/CHANGELOG | title=Changelog | website=Parboiled | date=Mar 11, 2022 | access-date=Oct 20, 2024}}</ref>
}}
'''parboiled''' is an open-source [Java](/source/Java_(programming_language)) library released under an [Apache License](/source/Apache_License). It provides support for defining [PEG](/source/Parsing_expression_grammar) parsers directly in Java source code.<ref>{{Cite book |last=Kumar |first=Jayant |title=Apache Solr Search Patterns: Leverage the Power of Apache Solr to Power Up Your Business by Navigating Your Users to Their Data Quickly and Efficiently |publisher=[Packt Publishing](/source/Packt_Publishing) |year=2015 |isbn=9781783981854 |pages=69}}</ref><ref>{{Cite book |last=Darwin |first=Ian F. |title=Java Cookbook: Solutions and Examples for Java Developers |publisher=[O'Reilly](/source/O'Reilly_Media) |year=2014 |isbn=9781449338824 |edition=3rd |pages=317}}</ref>

parboiled is commonly used as an alternative for [regular expressions](/source/regular_expressions) or [parser generators](/source/parser_generators) (like [ANTLR](/source/ANTLR) or [JavaCC](/source/JavaCC)), especially for smaller and medium-size applications.

Apart from providing the constructs for grammar definition parboiled implements a complete [recursive descent parser](/source/recursive_descent_parser) with support for [abstract syntax tree](/source/abstract_syntax_tree) construction, parse error reporting and parse error recovery.{{Portal|Free and open-source software}}
==References==
{{reflist}}

==External links==
*[https://github.com/sirthias/parboiled/wiki/parboiled-for-Java Official parboiled web site]
*[https://github.com/sirthias/parboiled/blob/master/examples-java/src/main/java/org/parboiled/examples/java/JavaParser.java Example of a complete Java 6 parser written with parboiled]

Category:XML software
Category:Java (programming language) libraries
Category:Free computer programming tools
Category:Parser generators

{{compu-library-stub}}

---
Adapted from the Wikipedia article [Parboiled (Java)](https://en.wikipedia.org/wiki/Parboiled_(Java)) by Wikipedia contributors ([contributor history](https://en.wikipedia.org/wiki/Parboiled_(Java)?action=history)). Available under [Creative Commons Attribution-ShareAlike 4.0 International](https://creativecommons.org/licenses/by-sa/4.0/). Changes may have been made.
