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

How to Map R Primitives to Function Calls? #569

Closed
EagleoutIce opened this issue Dec 14, 2023 · 2 comments
Closed

How to Map R Primitives to Function Calls? #569

EagleoutIce opened this issue Dec 14, 2023 · 2 comments
Assignees
Labels
dataflow Related to dataflow extraction done The issue is only open as it relates to a larger feature which is not yet completed question Further information is requested

Comments

@EagleoutIce
Copy link
Member

EagleoutIce commented Dec 14, 2023

Collect mapping rules of all R structures:

  • if(p) x`if`(p, x, NULL)
  • if(p) x else y`if`(p, x, y)
  • for(i in v) b`for`(i, v, b)
  • while(p) b`while`(p, b)
  • repeat b`repeat`(b)
  • break`break`()
  • next`next`()
  • return`return`()
  • function(args) b`function`(alist(args), b)
  • x <- y`<-`(x, y) (similar with <<-, ->, ->>, =, and the others)
  • x * y`*`(x, y) (similar with all other bin ops, now, assignments and binops are indifferent)
  • -x`-`(x) (?)
  • 33 (same for other literals)
  • { b }`{`(b) (same for parenthesis, but we have to check if this accounts for arguments as well)
@EagleoutIce EagleoutIce added question Further information is requested dataflow Related to dataflow extraction labels Dec 14, 2023
@EagleoutIce EagleoutIce changed the title Mapping of R Primitives to Function Calls? How to Map R Primitives to Function Calls? Dec 14, 2023
@EagleoutIce
Copy link
Member Author

@EagleoutIce
Copy link
Member Author

@EagleoutIce EagleoutIce added the done The issue is only open as it relates to a larger feature which is not yet completed label Mar 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dataflow Related to dataflow extraction done The issue is only open as it relates to a larger feature which is not yet completed question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants