Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/WerWolv/PatternLanguage

The Pattern Language used by the ImHex Hex Editor
https://github.com/WerWolv/PatternLanguage

binary dsl hacktoberfest hex-editor imhex pattern programming-language

Last synced: 2 months ago
JSON representation

The Pattern Language used by the ImHex Hex Editor

Awesome Lists containing this project

README

        

# Pattern Language

![Unit Tests](https://img.shields.io/github/actions/workflow/status/WerWolv/PatternLanguage/tests.yml?branch=master&label=Unit%20Tests&style=flat-square)

This repository contains the source code for the Pattern Language used by the [ImHex](https://github.com/WerWolv/ImHex) Hex Editor.

**[Documentation](https://imhex.werwolv.net/docs)**

## Examples

```rust
fn main() {
std::print("Hello World");
}
```

```cpp
enum Type : u16 {
A = 0x50,
B,
C
};

struct MyStruct {
Type type;
u32 x, y, z;
padding[10];
double a;
};

MyStruct myStruct @ 0x100;
```

## Standard Library

The Pattern Language comes with its own standard library which can be found in the [ImHex Pattern database](https://github.com/WerWolv/ImHex-Patterns/tree/master/includes/std)