Skip to content

add zk instruction parsing support - #11

Open
JohnDr1971 wants to merge 1 commit into
masterfrom
feature/zk-instructions-clean
Open

add zk instruction parsing support#11
JohnDr1971 wants to merge 1 commit into
masterfrom
feature/zk-instructions-clean

Conversation

@JohnDr1971

Copy link
Copy Markdown
Member

I recreated the PR from different "clean" branch. Adds parsing support for ZK-specific instructions to the assembler.

Implements parsing for:

  • ZK I/O instructions: read, write, hint
  • ZK custom instructions: assert_eq, assert_ne, assert_zero, range_check, commit

Added helper functions to handle different operand patterns:

  • parse_single_register for single register operands
  • parse_two_registers for two register operands
  • parse_register_immediate for register + immediate operands

Includes tests covering all new instructions with both valid inputs and error cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant