initial commit
[emacs-init.git] / nxhtml / tests / in / noweb1.now
1 @
2 \section{Hello world}
3
4 Today I awakened and decided to write
5 some code, so I started to write a Hello World in \textsf C.
6
7 <<hello.c>>=
8 /*
9   <<license>>
10 */
11 #include <stdio.h>
12
13 int main(int argc, char *argv[]) {
14   printf("Hello World!\n");
15   return 0;
16 }
17 @
18 \noindent \ldots then I did the same in PHP.
19
20 <<hello.sql>>=
21 SELECT * FROM Persons
22 WHERE FirstName LIKE '%a'
23 @
24 <<hello.php>>=
25 <?php
26   /*
27   <<license>>
28   */
29   echo "Hello world!\n";
30 ?>
31 @
32 \section{License}
33 Later, same day some lawyer reminded me about licenses.
34 So, here it is:
35
36 <<license>>=
37 This work is placed in the public domain.
38 @