0.6.0 • Published 1 month ago

miniscript-core v0.6.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

miniscript-core

miniscript-core

Basic Lexer and Parser for MiniScript.

Install

npm install --save miniscript-core

Lexer

Options

  • validator - define custom validator
  • tabWidth - define the used tab width in file
  • unsafe - will parse invalid MiniScript without throwing (useful for debugging)

Usage

const content = 'print "hello world"';
const lexer = new Lexer(content);
const parser = new Parser(content, { lexer });
const payload = parser.parseChunk(); // AST

Parser

Options

  • validator - define custom validator
  • astProvider - define custom ast provider
  • lexer - define custom lexer
  • tabWidth - define the used tab width in file
  • unsafe - will parse invalid MiniScript without throwing (useful for debugging)

Usage

const content = 'print "hello world"';
const parser = new Parser(content);
const payload = parser.parseChunk(); // AST
0.6.0

1 month ago

0.5.14

1 month ago

0.5.15

1 month ago

0.5.12

1 month ago

0.5.13

1 month ago

0.5.11

2 months ago

0.5.10

3 months ago

0.5.8

3 months ago

0.5.7

3 months ago

0.5.9

3 months ago

0.5.4

3 months ago

0.5.3

3 months ago

0.5.6

3 months ago

0.5.5

3 months ago

0.5.0

3 months ago

0.5.2

3 months ago

0.5.1

3 months ago

0.4.1

6 months ago

0.4.0

6 months ago

0.3.0

6 months ago

0.2.3

6 months ago

0.2.2

6 months ago

0.2.1

6 months ago

0.2.0

6 months ago

0.1.2

7 months ago

0.1.1

7 months ago

0.1.0

7 months ago