New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

adon-parser

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

adon-parser

Antonio De Lucreziis's Object Notation

latest
Source
npmnpm
Version
2.0.0
Version published
Maintainers
1
Created
Source

ADON Parser

npm version

This is a parser generated by PEG.js for my custom object notation syntax.

npm install adon-parser

or

yarn add adon-parser

Motivation

My notation is a bit lighter on quotes than JSON and in a millennium first (sarcasm) accepts identifiers with whitespace between each word.

Examples

These are some examples of the syntax (no real world use cases, just examples).


Config = {

    Title = "This is an example of the syntax"
    Port = 8080

    Routes = [
        {
            Pattern = "/"
            File = "/src/index.html"
        }
        {
            Pattern = "/about"
            File = "/src/about.html"
        }
    ]

    Another List [
        1, 2, 3
        4, 5,
        6
        7
        { 
            First Prop = 12 kg
        }
    ]

    Proposition1   1 1.0 = "This works"

    Front End Framework = React JS
    Back End Framework = Express JS

}

Syntax Definition

TODO: For now see the grammar file.

Keywords

adon format

FAQs

Package last updated on 13 Jul 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts