elenchus-parser 0.10.0

English-like DSL parser for the elenchus consistency checker (facts, premises, rules, checks).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
---
source: crates/elenchus-parser/tests/errors.rs
expression: "err(\"VAR k extra\\n\")"
---
RESULT: 1 syntax error

VAR  (1 problem)
  syntax  : VAR <name> [DEFAULT true|false]
  example : VAR db_ready DEFAULT false
    line 1, col 6 - unexpected text after the VAR declaration
      | VAR k extra
      |      ^^^^^^