Giter VIP home page Giter VIP logo

toml-tools's Introduction

Build Status LICENSE code style: prettier

TOML-Tools

** This project is currently un-maintained and looking for a new maintainer **

Introduction

This mono-repo contains a set of tools for working with the Toml configuration file format.

Why

The common Toml related tooling are Toml -> Json compilers. But compiling to Json is just one scenario of many, lets consider some other potential use cases:

  • Building a Toml Syntax Highlighter.
  • Converting Toml to Yaml.
  • Building a Toml Beautifier.
  • Validating Toml versus a given schema.
  • Providing content assist in a Toml file.

These scenarios cannot be implemented (well) using most existing Toml to Json compilers, for example:

  • Lost comments information.
    • How can we beautify or convert Toml to Yaml if we don't possess the comments information?
  • Lack of Token type & positioning information.
    • How could we syntax highlight(paint) parts of a Toml file if we do not know where every single Token starts and ends (Commas/Parenthesis/Literals/...)?
  • Failing on the first error
    • How would we implement content assist on a Toml file currently being edited if our parser fails on the first error?
  • Lack of full position information
    • How will we provide useful Schema validation errors if we lack full position information?
    • Full position information would also be needed for the content assist scenario.

How

This mono repo will contain two types of packages.

  • Low level Infrastructure (Toml Lexer & Parser implemented using Chevrotain) with advanced capabilities to support the complex scenarios described above.
  • Toml (end user) Tooling (Beautifier/Compiler/Schema Validator/...) that would be implemented using the advanced low level infrastructure packages mentioned above.

Status (Alpha)

Infrastructure packages:

Tooling Packages:

toml-tools's People

Contributors

bd82 avatar evolutics avatar coliff avatar weirongxu 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.