-
Notifications
You must be signed in to change notification settings - Fork 16
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
idea: add namespace management #4
Comments
For the moment, I have no plan of adding this. Maybe someday I'll add this support. |
@haifenghuang why I can’t include magpie modules?
Are they included by default? And is there any way to do not include them by default? |
You don't need to include
Which methods or constants the BTW, there is no way to not include them by default, sorry for this. But..., If you really do not want to include them by default, then you must modify the source. How? |
@haifenghuang I want to add ability to include this modules from: func (p *Parser) getIncludedStatements(importpath string) (*ast.Program, error) { ... } Can I add Thanks |
I think you can not do it. If you check the What I mean is that in parser phase, it deals with AST, but in evaluator phase, it mainly deals with object. |
For your understanding, the magpie interpreter works like below:
Below table lists the input & output of each phase:
|
@haifenghuang
You can add something like this:
The magpie is amazing! Thanks!
The text was updated successfully, but these errors were encountered: