An open API service indexing awesome lists of open source software.

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.

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