jParsec

A parser combinator library in Java, modelled after Haskell' Parsec

Лицензия

Лицензия

Группа

Группа

org.jparsec
Идентификатор

Идентификатор

jparsec
Последняя версия

Последняя версия

3.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

jParsec
A parser combinator library in Java, modelled after Haskell' Parsec
Организация-разработчик

Организация-разработчик

jparsec

Скачать jparsec

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.jparsec/jparsec/ -->
<dependency>
    <groupId>org.jparsec</groupId>
    <artifactId>jparsec</artifactId>
    <version>3.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.jparsec/jparsec/
implementation 'org.jparsec:jparsec:3.1'
// https://jarcasting.com/artifacts/org.jparsec/jparsec/
implementation ("org.jparsec:jparsec:3.1")
'org.jparsec:jparsec:jar:3.1'
<dependency org="org.jparsec" name="jparsec" rev="3.1">
  <artifact name="jparsec" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.jparsec', module='jparsec', version='3.1')
)
libraryDependencies += "org.jparsec" % "jparsec" % "3.1"
[org.jparsec/jparsec "3.1"]

Зависимости

test (4)

Идентификатор библиотеки Тип Версия
org.easymock : easymock jar 2.4
org.easytesting : fest-assert jar 1.4
junit : junit jar 4.8.1
org.jparsec : jparsec-testutils jar 3.1

Модули Проекта

Данный проект не имеет модулей.

jparsec

Builds mini parsers in pure Java.

Latest version: 3.0 (requires Java 8+)

News

2016-12-05

  • Removed references to Codehaus in copyright and package layout
  • Support for Java 8 now complete
  • Support for OSGi is merged in master, thanks to Alex Michael Berry and this PR

How to Use?

jparsec is available in maven-central. Snapshot Javadoc

Maven

Add the following fragment to your <dependencies> section:

If using Java 7-:

  <dependency>
    <groupId>org.jparsec</groupId>
    <artifactId>jparsec</artifactId>
    <version>2.3</version>
  </dependency>

If using Java 8+:

  <dependency>
    <groupId>org.jparsec</groupId>
    <artifactId>jparsec</artifactId>
    <version>3.1</version>
  </dependency>

Tell me more

Jparsec is a recursive-descent parser combinator framework written for Java. It's an implementation of Haskell Parsec on the Java platform.

Feature highlights

  • Operator precedence grammar,
  • Accurate error location and customizable error message,
  • Rich set of pre-defined reusable combinator functions,
  • Declarative API that resembles BNF.

Documentation

Look at the wiki for documentation on implementing parsers with jparsec.

Talking about jparsec

  • 2014-01-16 - Nantes JUG: Quickie on jparsec for local JUG
  • 2013-09-23 - JUGSummerCamp 2013: Directory parsing-made-easy contains material for the talk (slides + sample code)

Версии библиотеки

Версия
3.1
3.0
3.0-rc1
2.3
2.2.1
2.1