GithubHelp home page GithubHelp logo

aaronhuggins / js-edi Goto Github PK

View Code? Open in Web Editor NEW
14.0 3.0 0.0 1.87 MB

Next-gen EDI parser in Antlr4 grammar compiled by antlr4ts

License: MIT License

ANTLR 9.44% TypeScript 90.56%
js-edi parser grammars edi x12 edifact javascript typescript antlr4

js-edi's Introduction

JS-EDI

Work in progress, not fit for production use. Parser for both EDIX12 and EDIFACT leveraging Antlr4 grammar.

If I could call it J-EDI, I would. May the force be with you.

Quality Gate Status Maintainability Rating Security Rating Lines of Code

Features

  • Support for EDI X12 and EDIFACT
  • Parse natively in JS to a document object model (DOM)
  • Generate from a constructed dom
  • Query the dom using element selectors
  • Traverse as a hierarchical dom
  • Transform to and from JS objects
  • Serialize to and from JSON EDI notation
  • Validate parsed EDI using JSON Schema

What's done prior to alpha so far

  • EDI X12 support; parser in antlr4ts is fully functional, detects component and repeated elements
  • Document object model, supports detecting difference between EDI flavors and complexe nodes
  • Validator, works with the DOM to be able to validate a document with JSON Schema
  • Element selector query language

Known TO-DOs

Before alpha release

  • Complete initial documentation

Before beta release

  • Improve accuracy of parsing/handling EDIFACT
    • Better service string advice detection
    • Conform to EDIFACT standard with "release indicator"
    • Conform to EDIFACT charactar sets better (technically only UNOA and UNOB supported for now)

Before release candidate

  • Add custom eventing in document parser
    • Events for each node type generated
    • on errors
    • on parse start and stop
  • Stabilize
  • Finish writing tests

Roadmap

  • Complete EDIFACT support and optimize grammar
  • Stabilize all APIs
  • Expose listener APIs
  • Write examples
  • Make tests more broadly specific to the parsing of grammars(??)

js-edi's People

Contributors

ahuggins-nhs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.