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