python-instruction-dsl-proc 0.1.1

A procedural macro for defining Python instructions in a DSL.
Documentation
1
2
3
4
5
# Python Instruction DSL proc macro


This repository is for a Rust proc macro that allows you to define Python opcodes with their stack effects using the Domain Specific Language (DSL) syntax. The syntax is described [here](https://github.com/python/cpython/blob/main/Tools/cases_generator/interpreter_definition.md).

It only supports a subset of the full syntax. This is meant to be used by the [pyc-editor](https://github.com/Svenskithesource/pyc-editor) library to define Python opcodes in a concise manner.