Skip to content
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

Add procedural macros #58

Open
MilkeeyCat opened this issue Sep 10, 2024 · 0 comments
Open

Add procedural macros #58

MilkeeyCat opened this issue Sep 10, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@MilkeeyCat
Copy link
Owner

MilkeeyCat commented Sep 10, 2024

https://blog.jetbrains.com/rust/2022/07/07/procedural-macros-under-the-hood-part-ii/

Syntax ideas:

struct TokenStream {
    tokens: *Token;
    size: usize;
}

macro foo(tokens: *TokenStream) -> *TokenStream {
    return tokens;   
}

foo!(do the magic stuff);
@MilkeeyCat MilkeeyCat added the enhancement New feature or request label Sep 10, 2024
@MilkeeyCat MilkeeyCat changed the title Macros Add procedural macros Oct 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant