Skip to content

Conversation

@amiri
Copy link

@amiri amiri commented Jul 14, 2013

I added PACKAGE as a sub, and I would like to check whether this is the right basic idea. It seems like to make it work as just PACKAGE, I need to make it something like selfLiteral in MoeLiterals or I need to provide some special keyword parser, like for subroutineCall in MoeProductions.

@stevan
Copy link
Member

stevan commented Jul 14, 2013

Hmm, are you sure it requires the parens? Perhaps making it a special token might not be a bad idea.

@amiri
Copy link
Author

amiri commented Jul 14, 2013

This current implementation requires parens, PACKAGE(). Otherwise the interpreter attempts to resolve it as a class. I will definitely work on making it a special token or adding a special keyword parser.

@stevan
Copy link
Member

stevan commented Jul 15, 2013

Excellent, thanks!

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