Skip to content

Commit

Permalink
don't require strings around venom code
Browse files Browse the repository at this point in the history
  • Loading branch information
z80dev committed Nov 27, 2023
1 parent 0a93ff7 commit 95c3541
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dasy/builtin/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,12 @@

from dasy import parser

from hy import repr, read_many


def parse_venom(expr):
ir = IRnode.from_list((parse_s_exp(expr[1]))[0])
ir = IRnode.from_list((parse_s_exp(repr(expr[1])[1:]))[0])

# generate some vyper code to patch in.
IDENTIFIER = f"__DASY_VENOM_BUILTIN_{parser.next_nodeid()}__"
insert_code = f"{IDENTIFIER}()"
Expand Down

0 comments on commit 95c3541

Please sign in to comment.