mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-02-03 15:55:47 +00:00
add compiletime evm bytecode generator to macro_assembler
This commit is contained in:
parent
bb89a296dd
commit
d089a61539
@ -377,3 +377,8 @@ macro assembler*(list: untyped): untyped =
|
||||
of "fork": boa.fork = parseFork(body)
|
||||
else: error("unknown section '" & label & "'", callSection[0])
|
||||
result = boa.generateVMProxy()
|
||||
|
||||
macro evmByteCode*(list: untyped): untyped =
|
||||
list.expectKind nnkStmtList
|
||||
var code = parseCode(list)
|
||||
result = newLitFixed(code)
|
||||
|
Loading…
x
Reference in New Issue
Block a user