MetaForge is a low-level meta-programming language that bridges the gap between assembly and C, while integrating support for Python, C, and C++ libraries. Designed for system-level programming and advanced memory manipulation, MetaForge offers a unique approach to multi-language interoperability and high-performance computing.
- Introduction
- Key Features
- Language Overview
- How to Compile
- Installation
- Examples
- Roadmap
- Contributing
- FAQ
- License
MetaForge is a low-level meta-programming language that bridges the gap between assembly and C, while integrating support for Python, C, and C++ libraries. Designed for system-level programming and advanced memory manipulation, MetaForge offers a unique approach to multi-language interoperability and high-performance computing.
MetaForge is designed to facilitate interoperability between low, medium and high level languages. It is designed to interact most effectively with the operating system on which it works and for reverse engineering.
- Low-Level Access: Positioned between assembly and C, offering direct communication with system resources.
- Cross-Language Integration: Supports Python, C, and C++ libraries seamlessly.
- Custom Syntax: Combines simplicity with flexibility, tailored for developers seeking control over memory, cryptography, and pattern matching.
- Extensibility: MetaForge is designed to evolve, with planned support for web systems and additional language integrations.
A detailed overview of MetaForge syntax, including statements, advanced types, pattern matching, and error handling.
Explore how MetaForge manages memory allocation, deallocation, and pointers.
Built-in cryptographic tools and their usage.
Understand control structures like loops, conditionals, and error handling.
Learn about generics, pattern matching, list comprehension, and lambda functions.
MetaForge programs are compiled using the official MetaForge Compiler (MFC).
- Visit the MetaForge Compiler Repository to download or clone the compiler source code.
- Follow the instructions in the
readme.md
of the compiler repository to set up the environment. - Compile your MetaForge programs using the following command structure:
Example:
python src/compile_metaforge.py <source_file> -o <output_file> [options]
python src/compile_metaforge.py examples/hello_world.mf -o build/hello_world.exe --platform windows --arch x64 -v
For detailed options and configuration, refer to the CLI Commands documentation.
MetaForge requires the following dependencies:
- Python (3.x) for integration scripts.
- C/C++ Toolchain for compilation and linking.
- Custom MetaForge CLI (provided in the release package).
- Clone the repository:
git clone https://github.com/seregonwar/metaforge.git cd metaforge
- Build the compiler:
make
- Run your first MetaForge program:
./metaforge my_program.mf
Explore more in the Examples and Templates documentation or visit the examples folder.
fn main() -> void {
print("Hello, MetaForge!");
}
fn allocate_memory() -> ptr {
let buffer = alloc 1024;
ret buffer;
}
fn compute_hash() -> hash {
let data = "important data";
let hashed = hash(data);
ret hashed;
}
For planned features and future development, check the Design Philosophy and Roadmap document.
We welcome contributions! Please check the Contributing Guidelines for details on our coding standards and submission process.
For common questions and answers, refer to the FAQ.
License free.
Developed with passion by SeregonWar
Explore, Extend, and Forge the Future!