https://github.com/a3onn/parseed
A C-struct inspired language generating parsers in multiple programming languages.
https://github.com/a3onn/parseed
c-struct file-format generator language parser protocols python
Last synced: about 1 year ago
JSON representation
A C-struct inspired language generating parsers in multiple programming languages.
- Host: GitHub
- URL: https://github.com/a3onn/parseed
- Owner: A3onn
- License: mit
- Created: 2023-02-28T15:31:15.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-24T08:53:47.000Z (almost 3 years ago)
- Last Synced: 2025-01-22T11:48:15.998Z (about 1 year ago)
- Topics: c-struct, file-format, generator, language, parser, protocols, python
- Language: Python
- Homepage: https://github.com/A3onn/parseed
- Size: 242 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Parseed
Parseed is a project made of a language and a transpiler that enables you to easily create parsers in any language.
The language is inspired by the C language, it is composed of structures and bitfields.
# How to use Parseed ?
## Requirements
The transpiler is written in Python 3 and uses typing annotations, so you will need Python 3.5 or greater.
No external libraries are needed.
# How to use
The transpiler can be used in the command line.
Here is an example:
```bash
./parseed.py -G python_class example/arp.py
```
# TODO
- Finish the Python generator
- Add a C generator
- Add more examples:
- ELF
- GIF
# Done
- Lexer