Skip to content
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

Closed
masak opened this issue Jan 17, 2015 · 0 comments
Closed

TODO meta-issue #9

masak opened this issue Jan 17, 2015 · 0 comments

Comments

@masak
Copy link
Owner

masak commented Jan 17, 2015

These TODO items were moved from the README.md file to here. Please open individual issues for things you wish to take on.

TODO

  • setting wishlist
  • Q:: constructors/destructors in the setting
  • subroutines for ops
  • man or boy
  • unquotes

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.

masak pushed a commit that referenced this issue Jan 17, 2015
These were moved to #9
@masak masak closed this as completed Oct 7, 2015
masak pushed a commit that referenced this issue Mar 4, 2017
wip
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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant