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

Implement Varargs Parameters support #6

Open
NotJustAnna opened this issue Nov 14, 2021 · 0 comments
Open

Implement Varargs Parameters support #6

NotJustAnna opened this issue Nov 14, 2021 · 0 comments
Labels
bug Something isn't working component:vm enhancement New feature or request TODO

Comments

@NotJustAnna
Copy link
Owner

NotJustAnna commented Nov 14, 2021

com.github.adriantodt.lin.vm.impl.FunctionSetupLayer#step(FunctionSetupLayer.kt:40):
image

Implementation Notes:

  • There must be atmost 1 varargs parameters.
    • This should be done at grammar/parser-level 1, but enforced at compiler & VM level 2.
  • The parameters NEED to be handled/loaded in a left-to-right order, even with varargs.

Footnotes

  1. See FunctionParser should disallow more than one varargs parameter. Lin#5

  2. See Modify bytecode to allow atmost 1 varargs parameter in a function. Lin#6

@NotJustAnna NotJustAnna added TODO component:vm bug Something isn't working enhancement New feature or request labels Nov 14, 2021
@NotJustAnna NotJustAnna transferred this issue from NotJustAnna/Lin Mar 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working component:vm enhancement New feature or request TODO
Projects
None yet
Development

No branches or pull requests

1 participant