0.12.4 ā€¢ Published 6 months ago

@snowfallorg/sleet v0.12.4

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
6 months ago

Snowfall Sleet

A Nix parser written in TypeScript.

Usage

Lexer

To use the lexer, import the Lexer class and create a new instance.

import { Lexer } from "@snowfallorg/sleet";

const lexer = new Lexer();

const tokens = lexer.lex("let x = 4; in x");

Parser

To use the parser, import the Parser class and create a new instance.

import { Parser } from "@snowfallorg/sleet";

const parser = new Parser();

const ast = parser.parse("let x = 4; in x");

Implementation

This parser is not resilient. On any malformed input, Sleet will throw an error. This may change in the future, but for now you should know that resilient parsing is not a part of this library.

0.12.4

6 months ago

0.12.3

6 months ago

0.12.2

6 months ago

0.12.1

6 months ago

0.12.0

10 months ago

0.11.0

10 months ago

0.10.0

10 months ago

0.9.0

10 months ago

0.8.0

10 months ago

0.7.0

10 months ago

0.6.0

10 months ago

0.5.0

10 months ago

0.4.0

10 months ago

0.3.0

10 months ago

0.2.0

10 months ago

0.1.0

10 months ago

0.0.0

10 months ago