Metadata-Version: 2.4
Name: binscheme-parser
Version: 0.0.1
Summary: A parser for the binScheme language, a declarative language for defining binary data layouts.
Author-email: kazakan <dojh99@google.com>
License: 
        Copyright 2025 JunHyung Do
        
        Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
        
Project-URL: Homepage, https://github.com/kazakan/binscheme
Project-URL: Bug Tracker, https://github.com/kazakan/binscheme/issues
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Compilers
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: lark>=1.0
Dynamic: license-file

# binScheme Parser

A parser for the binScheme language.

This library provides a parser for `.binscheme` files, which define binary data layouts. It parses the schema definition into a collection of Python data structures.

## Installation

```bash
pip install binscheme-parser
```

## Usage

To parse a `.binscheme` file, use the `load` function from the `binscheme_parser` module:

```python
from binscheme_parser import load

schema_collection = load('path/to/your/schema.binscheme')

# You can now access the parsed schemes, enums, and instances
print(schema_collection.schemes)
print(schema_collection.enums)
```
