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

[Feature] A list of generator arguments with described structure #24

Open
Kakadu opened this issue Apr 30, 2018 · 3 comments
Open

[Feature] A list of generator arguments with described structure #24

Kakadu opened this issue Apr 30, 2018 · 3 comments

Comments

@Kakadu
Copy link
Contributor

Kakadu commented Apr 30, 2018

I want to write [@@deriving foo ~name1:... ~name2:... ~name3:.... ....... ~name100500:....] where all name%d should be arbitrary. In the generation function I want to get a (Longident.t loc * expression) list with all the expressions that describe the arguments of foo.

@ghost
Copy link

ghost commented May 1, 2018

I suppose we could allow to get the list of arguments uninterpreted and let the generator do the parsing itself

@Kakadu
Copy link
Contributor Author

Kakadu commented May 2, 2018

I also want that arguments in the list be able to have arguments. Something like
[@@deriving foo ~plugins:{ show; functor; something_else=expression_arguemnt}]. Hmmm, maybe it's doable in the current state of ppxlib, I need to check if this is what I want.

@ghost
Copy link

ghost commented May 3, 2018

It should already be doable indeed

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