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

Request: forward facing object/variable with components defined in newParser() #66

Open
casey-SK opened this issue May 24, 2021 · 1 comment

Comments

@casey-SK
Copy link

casey-SK commented May 24, 2021

I am trying to implement something similar to ArgDoc, but unfortunately I am pretty novice and macros and templates still baffle me. I wanted to get an object/sequence/something that contained all of the components after I defined them in the newParser template.

I see you have the Builder object and the BuilderStack, and I tried playing around with those, without success.

Any help/suggestions greatly appreciated!

@casey-SK
Copy link
Author

I see that builderStack is a {.compileTime.} variable. I was trying to create a const using something like

const b = builderStack[^1]

but since the Builder object is a ref, it does not want to work...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant