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
TODO meta-issue #9
Comments
Closed
Closed
masak
pushed a commit
that referenced
this issue
Mar 4, 2017
Try doing this: $ bin/007 --backend=i13n examples/name.007 Should get this output: # static frame #1 # call A from line zero: frame 2 # static frame #3 # call B from line zero: frame 4 1. macro name(expr) { # static frame #5 # call C from line zero: frame 6 2. if expr ~~ Q::Postfix::Property { 3. expr = expr.property; 4. } # static frame #7 # call D from line zero: frame 8 5. if expr !~~ Q::Identifier { 6. throw new Exception { 7. message: "Cannot turn a " ~ type(expr) ~ " into a name" 8. }; 9. } # static frame #9 # call E from line zero: frame 10 # call F from line zero: frame 11 10. return quasi { expr.name }; 11. } 12. 13. my info = { 14. foo: "Bond", 15. bar: { 16. baz: "James Bond" 17. }, 18. }; 19. 20. say(name(info)); # info 21. say(name(info.foo)); # foo 22. say(name(info.bar.baz)); # baz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
These TODO items were moved from the README.md file to here. Please open individual issues for things you wish to take on.
This issue can be closed when each of the above TODO items either has an issue of its own, or has been taken care of anyway.
The text was updated successfully, but these errors were encountered: