-
-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Universal conversion to pointer #68
Comments
There's the approach with the conversion function in #51 but I like |
I assume you mean a function that will take an object and put it on the heap, giving you a pointer to that object. No, such a function does not exists currently |
Is it possible to write such a function in Zig?
…On Mon, 28 Oct 2024 at 14:03, Komari Spaghetti ***@***.***> wrote:
Is there a universal conversion function that will return a pointer to
whatever the parser returns.
I assume you mean a function that will take an object and put it on the
heap, giving you a pointer to that object. No, such a function does not
exists currently
—
Reply to this email directly, view it on GitHub
<#68 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAESZ7XNJUVCPCVUG2NGMLZ5YKXNAVCNFSM6AAAAABQXH3TPGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINBRGM4TINBXG4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
This works! Would it be a good addition to Mecha?
|
Assuming I have a recursive grammar that matches this AST
Is there a universal conversion function that will return a pointer to whatever the parser returns, assuming parsing success?
The text was updated successfully, but these errors were encountered: