You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**Ds format**: S-expression (lisp-like) syntax used internally by DS
360
-
-**Dsp format**: Traditional, human-readable syntax with infix operators
361
-
362
-
This makes it easier to write logical rules in a natural mathematical notation and convert them to/from the DS internal format.
363
-
364
-
**Installation:**
365
-
```bash
366
-
# Python
367
-
pip install apyds-bnf
368
-
369
-
# JavaScript
370
-
npm install atsds-bnf
371
-
```
372
-
373
-
**Quick example:**
374
-
```python
375
-
from apyds_bnf import parse, unparse
376
-
377
-
# Convert readable syntax to DS format
378
-
parse("a, b -> c") # Returns: "a\nb\n----\nc"
379
-
380
-
# Convert DS format to readable syntax
381
-
unparse("a\nb\n----\nc") # Returns: "a, b -> c"
382
-
```
383
-
384
-
For more details, see the [BNF package README](/bnf/README.md).
349
+
-**BNF Conversion Library** ([apyds-bnf](https://pypi.org/project/apyds-bnf/), [atsds-bnf](https://www.npmjs.com/package/atsds-bnf)): Bidirectional conversion between DS syntax formats. See [/bnf](/bnf) for details.
0 commit comments