A library with Symbol Graph and Grammar classes
Project description
Parse Grammar
A library containing Directed Graph representing symbol to symbol translation with a Grammar class representing a start symbol and any terminal symbols.
Used for representing finite state machines in automation bots.
Usage
import grammar as gram
pGraph = gram.Graph()
pGrammar = gram.Grammar(<start_symbol>, <end_symbol>, pGraph)
where <start_symbol> is a vertex within pGraph where <end_symbol> is a vertex, or list/set of verticies, within pGraph
The <start_symbol> can not be an isolated vertex.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
parsegrammar-0.1.0.tar.gz
(2.8 kB
view hashes)
Built Distribution
Close
Hashes for parsegrammar-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e3e99ac832891348dc96bd6e838eade73c7f022761d7aebd2a24cfc1b1dbd63 |
|
MD5 | 699928dee0f49747f53c2f7446418730 |
|
BLAKE2b-256 | eafc073ef3fe4a9280c291aacff2251b99a54ed1c00ae4c82f1458d5d7182f5e |