Skip to content

Proc-macro to generate ergotree from sigmastate-interpreter JIT test suite #633

@kettlebell

Description

@kettlebell

Create a proc-macro in sigma-rust that takes ergotree from scala side (e.g. https://github.com/ScorexFoundation/sigmastate-interpreter/blob/d254cad473c974889981b03ac2368464b0ec200c/sigmastate/src/test/scala/special/sigma/SigmaDslSpecification.scala#L243-L249) and generates an equivalent instance of ergotree_ir::mir::expr::Expr.

We need this because it is too laborious to manually craft ergotree_ir::mir::expr::Expr instances. There are about 180 tests in the scala JIT test suite. Copy-pasting these ergotrees is essential.

Part of #193

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions