Replies: 2 comments 1 reply
-
I believe you still need a |
Beta Was this translation helpful? Give feedback.
1 reply
-
I've changed the second example but I'm getting new error:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
NOTICE: I've read this post #69 anyway I want to Implement this with current unsafe features
I want to Implement abstract syntax tree in mojo, so far no luck,
Something simple as this in C :
https://github.com/orangeduck/mpc/blob/master/mpc.h#L291
I have tried two solution
First: I could not implement add_chlid getting error: candidate not viable: method argument #1 cannot bind generic !mlirtype to memory-only type 'AST'
Second error: no matching function in call to 'init':
var child1 = AST()
~~~^~
candidate not viable: callee expects at least 1 argument, but 0 were specified
is there a way to use memory.unsafe.bitcast (or anything else) to solve this ?
Beta Was this translation helpful? Give feedback.
All reactions