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

Add support for anonymous functions #18

Closed
wants to merge 2 commits into from

Conversation

paulftw
Copy link
Contributor

@paulftw paulftw commented Feb 22, 2022

Anonymous functions is a very rarely used feature, but it's used in NopSCADlib.

I tried to add support for them in the least intrusive way.

A separate class would probably match the coding style a bit better, but that'd need adding the visitNewClass methods to the visitor API, updating all existing implementations, and would also break people relying on the existing visitor API.

Let me know if this is good enough to merge

@vercel
Copy link

vercel bot commented Feb 22, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/alufers2/openscad-parser/J1263hGtpbaknTQExXhhYj9WYDJD
✅ Preview: Failed

@alufers
Copy link
Owner

alufers commented Mar 3, 2022

Hey, I will probably refactor some stuff to support this, since really these are function expressions and not function statements, I will do this on the weekend.

@alufers
Copy link
Owner

alufers commented Jun 22, 2022

Hi,
I have added support for anonymous functions myself :)

Sorry for not using your code

@alufers alufers closed this Jun 22, 2022
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

Successfully merging this pull request may close these issues.

2 participants