Skip to content

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

@vidarh

Description

@vidarh

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions