Skip to content

A general class, methods, utilities and interface library for creating parsers.

License

Notifications You must be signed in to change notification settings

HGARgG-0710/parsers.js

Repository files navigation

parsers.js

This is a library providing simple, yet general and powerful, interfaces for easing the process of parser/tokenizer/code-generator-building, input-validation and manual regular-expression-construction.

It allows one to easily define reusable functions for parsing/code-generation/validation of various data formats, as well as containing useful datatype definitions and general interfaces.

The library allows parsers (and similar structures) to be rewritten entirely in terms of maps of functions and string-based typesystems, on which these maps are based.

Installation

Via npm:

npm install @hgargg-0710/parsers.js

Documentation

Documentations for various versions:

v0.1

v0.1.1

v0.1.2

v0.1.3

Wiki (>=v0.2)

The latest versions' wiki is available online, while for earlier versions, one can git clone it and git checkout to an appropriate tag/commit.

Examples

For usage examples, see the 'tests' directory.

Versioning

When using library caution is advised when choosing the version, as (occasionally) due to growth, refactoring, new releases will contain breaking changes - thus, a precise version-choice is recommended.

As the library is (largely) independent and its growth does not get to be motivated by outside sources, nor any reasons beyond those of purely bettering nature, it is fairly unlikely that code written using it will require change without requiring first the change of the underlying formats themselves. Thus, the process of automatic update (in this case) would do rather more harm than good.

About

A general class, methods, utilities and interface library for creating parsers.

Resources

License

Stars

Watchers

Forks