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

Make ASTNode initializer methods more convenient #4

Open
nick-ulle opened this issue Oct 27, 2017 · 0 comments
Open

Make ASTNode initializer methods more convenient #4

nick-ulle opened this issue Oct 27, 2017 · 0 comments
Assignees

Comments

@nick-ulle
Copy link
Owner

Generating new code is unwieldy because most of the ASTNode initializer methods only accept ASTNodes as arguments. This issue is to make the initializer methods more user friendly by having them accept regular R objects and convert automatically.

For example,

Call$new(Symbol$new("+"), list(Integer$new(3L), Integer$new(4L)))

should be something we can write succinctly as

Call$new("+", list(3L, 4L))

or even

Call$new("+", 3L, 4L)
@nick-ulle nick-ulle self-assigned this Oct 27, 2017
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