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

Transform "local variables" to method calls when they're not really variables... #7

Open
vidarh opened this issue May 8, 2009 · 0 comments

Comments

@vidarh
Copy link
Owner

vidarh commented May 8, 2009

The parser will treat "foo" by itself as a local variable because it initially doesn't know if it's a local variable or a method call. When we have identified the set of local variables, we need to transform the set of what looks like local vars but isn't in the identified set into [:callm, :self, var,[]] instead.

(Note: This also forces us to ensure the s-expression syntax is exempt from being rewritten, and to rewrite of any calls to C functions to use the s-expression syntax to still have a way of calling out... Maybe time to look at FFI instead soon)

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