...
Code Block |
---|
// <user> is indented two spaces
main(user) ::= <<
Hi
\t$user:quote(); separator="\n"$
\>>
quote ::= " '$it$'"
|
In this case, you would get output like:
...
Code Block |
---|
function(name,body) ::= << void $name$() $body$ \>> slist(statements) ::= << { $statements; separator="\n"$ }\>> |
Your code would create a function
template instance and an slist
instance, which gets passed to the function
template as attribute body
. The following code:
...