Search Results

Search found 2 results on 1 pages for 'quasiquote'.

Page 1/1 | 1 

  • quasiquote/quote in lua?

    - by anon
    In Lisp, I can have: (a b c d e f g) which means look up b, c, d, e, f, g look up a; apply value of a to above Then, I can also have: `(a b c d e f g) which is the equiv to (list 'a 'b 'c 'd 'e 'f 'g) Now, in lua, I can have: [snipplet 1] foo = { Foo, {Cat, cat}, {Dog, dog} }; Which ends up most likely expanding into: { nil, { nil, nil}, {nil, nil}} Whereas what I really want is something like: [snipplet 2] { "Foo", {"Cat", "cat"}, {"Dog", "dog"}} Is there some backquote-like method in lua? I find [snipplet 1] to be more visually pleasing than [snipplet 2], but what I mean is snipplet 2. Thanks!

    Read the article

  • Writing an Eval Procedure in Scheme?

    - by Planeman
    My problem isn't with the built-in eval procedure but how to create a simplistic version of it. Just for starters I would like to be able to take this in '(+ 1 2) and have it evaluate the expression + where the quote usually takes off the evaluation. I have been thinking about this and found a couple things that might be useful: Unquote: , (quasiquote) (apply) My main problem is regaining the value of + as a procedure and not a symbol. Once I get that I think I should just be able to use it with the other contents of the list. Any tips or guidance would be much appreciated.

    Read the article

1