better example for splice

svn: r14068
This commit is contained in:
Eli Barzilay 2009-03-12 08:15:39 +00:00
parent 60a421e9ab
commit e366d25a85
2 changed files with 13 additions and 4 deletions

View File

@ -1,7 +1,13 @@
#!/bin/env mzscheme #!/bin/env mzscheme
#lang scribble/text #lang scribble/text
@(define (block x)
@splice{{
blah(@x);
}})
start start
@splice{x y @splice{foo();
z} loop:}
@list{if (something) @block{stuff}}
end end

View File

@ -1,4 +1,7 @@
start start
x y foo();
z loop:
if (something) {
blah(stuff);
}
end end