Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

moniel-parser

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

moniel-parser - npm Package Compare versions

Comparing version
0.0.1
to
0.0.2
+30
_tests/literal_node_parametrized_4/ast.json
{
"type": "Graph",
"definitions": [
{
"type": "Chain",
"blocks": [
{
"type": "Node",
"id": null,
"node": {
"type": "LiteralNode",
"name": "HelloWorld",
"parameters": [
{
"type": "Parameter",
"name": "param1",
"value": "hello"
},
{
"type": "Parameter",
"name": "param2",
"value": "world"
}
]
}
}
]
}
]
}

Sorry, the diff of this file is not supported yet

+1
-1
{
"name": "moniel-parser",
"version": "0.0.1",
"version": "0.0.2",
"description": "Parser for Moniel notation",

@@ -5,0 +5,0 @@ "main": "Parser.js",

# moniel-parser
Parser for Moniel notation
Parser for [Moniel](https://github.com/mlajtos/moniel) notation
## Usage
Install: ```npm i moniel-parser```
Use:
```javascript
const p = require("moniel-parser")
const ast = p.parse(`In -> Out`).ast
```
Run tests: ```npm test```

@@ -52,2 +52,5 @@ module.exports = {

}),
ParameterValue: function(_) {
return this.sourceString
},
path: (path) => ({

@@ -66,5 +69,2 @@ type: "Path",

},
parameterValue: function(_) {
return this.sourceString
},
NonemptyListOf: (x, _, xs) => [x.eval(), ...xs.eval()],

@@ -71,0 +71,0 @@ EmptyListOf: () => [],

Sorry, the diff of this file is not supported yet