bnf-parser
Advanced tools
Comparing version 4.0.0 to 4.0.1
@@ -0,0 +0,0 @@ import * as _Shared from "./shared.js"; |
{ | ||
"name": "bnf-parser", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "Deterministic BNF compiler/parser", | ||
@@ -5,0 +5,0 @@ "homepage": "https://bnf-parser.ajanibilby.com", |
# BNF-Parser <!-- no toc --> | ||
[![Reflection Test](https://github.com/AjaniBilby/BNF-parser/actions/workflows/npm-load-check.yml/badge.svg?branch=master)](https://github.com/AjaniBilby/BNF-parser/actions/workflows/npm-load-check.yml) | ||
[![Test](https://github.com/AjaniBilby/BNF-parser/actions/workflows/test.yml/badge.svg?branch=master)](https://github.com/AjaniBilby/BNF-parser/actions/workflows/test.yml) | ||
@@ -13,4 +12,9 @@ | ||
``` | ||
```bash | ||
npx bnf-compile ./syntax.bnf | ||
``` | ||
```ts | ||
const tree = syntax.program(input).root; | ||
import * as syntax from "syntax.js"; | ||
const tree = syntax.Parse_Program(input).root; | ||
const block = program.value[0]; | ||
@@ -17,0 +21,0 @@ const name: string = block.value[0]; // typescript knows this **will** be a string |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
144479
47
3298
39
4