Skip to content

pdml-lang/simple-pdml-parser

Repository files navigation

Simple Core PDML Parser Written in Java

Overview

This repository contains the source code of a simple Core PDML recursive descent LL(1) parser written in Java.

The parser implements version 2.0.0 of the Core PDML Specification. PDML extensions are not supported.

This implementation is dependency-free and focuses on simplicity and minimalism (no bells and whistles). It shows how basic Core PDML reading/parsing operations can be implemented in Java. The code might serve as a starting point to create more sophisticated parsers providing advanced error handling, feature-rich utilities to explore and transform a PDML AST, etc. You may also have a look at the unit tests in the app/src/test directory.

A much more advanced implementation, covering all PDML extensions, is available in the full-pdml-impl repository.

Usage

File Start.java in the source code tree contains a simple usage example.

You can use the standard CLI commands of the Gradle Build Tool to manage the project:

./gradlew build         // build the project
./gradlew run           // run the application
./gradlew test          // run tests
./gradlew javadoc       // create Javadoc files
./gradlew installDist   // create a distribution

Note: On Windows type gradlew instead of ./gradlew.

About

Simple PDML parser, written in Java

Resources

License

Stars

Watchers

Forks

Packages

No packages published
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy