as-pect / visitor-as

Visitor utilities for AssemblyScript compiler transforms
Apache License 2.0
37 stars 11 forks source link

fix(SimpleParser): make methods be pure functions and add parseTopLevelStatement #20

Closed yjhmelody closed 3 years ago

yjhmelody commented 3 years ago

I used parseTopLevelStatement in my project, because parseStatement cannot handle the situation.

willemneal commented 3 years ago

I pushed to your branch and added some tests. I also added parseClassMember for parsing a field or method in the context of a class.

willemneal commented 3 years ago

Still not sure why this failed with two test files but I will merge it for now.