Hi all, I'm trying to create a new node "newClass", which should assign the result of a bit of pepsi code to a variable of which the name if provided as a parameter to "newClass".
So:
(newClass 'MyClass)
should result in:
(define MyClass [Prototype new])
I tried to accomplish this using the following piece of jolt code:
(syntax newClass ; (newClass name)
(lambda (node compiler)
`(define ,[node second] [Prototype new])))
But I get the following error:
undefined: define-quote
I can't really trace this back to something I did wrong, but if I replace ,
[node second] by a hardcoded name, I don't get the error.
Did I do something wrong here?
Also, I'm assuming (newClass 'MyClass) is the correct syntax to use my new
node, but maybe I should use (newClass '"MyClass") or still something else?
Thanks,
Hans
--
A liberal is a person whose interests aren't at stake at the moment
-- Willis Player
Hans Schippers
Research Assistant of the Research Foundation - Flanders (FWO - Vlaanderen)
http://www.win.ua.ac.be/~hschipp/
Formal Techniques in Software Engineering (FoTS)
University of Antwerp
Middelheimlaan 1
2020 Antwerpen - Belgium
Phone: +32 3 265 38 71
Fax: +32 3 265 37 77
pgpoYZTBNKhCR.pgp
Description: PGP signature
_______________________________________________ fonc mailing list [email protected] http://vpri.org/mailman/listinfo/fonc
