diff options
| author | David M. Syzdek <david@syzdek.net> | 2008-10-03 02:06:54 -0800 |
|---|---|---|
| committer | David M. Syzdek <david@syzdek.net> | 2008-10-03 02:06:54 -0800 |
| commit | 35e0eb09f77498714534e727646fe7cfce0d74cd (patch) | |
| tree | 7beb58288f59a49a64f29effcf17617500205484 /examples | |
| download | dmstools-35e0eb09f77498714534e727646fe7cfce0d74cd.tar.gz dmstools-35e0eb09f77498714534e727646fe7cfce0d74cd.tar.bz2 dmstools-35e0eb09f77498714534e727646fe7cfce0d74cd.tar.xz dmstools-35e0eb09f77498714534e727646fe7cfce0d74cd.zip | |
initial import
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/Makefile | 12 | ||||
| -rw-r--r-- | examples/example-c.tags | 28 | ||||
| -rw-r--r-- | examples/example-defaults.tags | 29 | ||||
| -rw-r--r-- | examples/example-html.tags | 21 | ||||
| -rw-r--r-- | examples/example-space.tags | 10 | ||||
| -rw-r--r-- | examples/example.c | 12 | ||||
| -rw-r--r-- | examples/example.html | 9 | ||||
| -rw-r--r-- | examples/example.spc | 11 | ||||
| -rw-r--r-- | examples/example.txt | 15 |
9 files changed, 147 insertions, 0 deletions
diff --git a/examples/Makefile b/examples/Makefile new file mode 100644 index 0000000..3fc6981 --- /dev/null +++ b/examples/Makefile | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | |||
| 2 | |||
| 3 | all: | ||
| 4 | cp example.c test.c | ||
| 5 | cp example.txt test.txt | ||
| 6 | cp example.html test.html | ||
| 7 | codetagger -f example-defaults.tags test.txt | ||
| 8 | codetagger -l '//' -r '' -f example-c.tags test.c | ||
| 9 | codetagger -l '<!--' -r '-->' -f example-html.tags test.html | ||
| 10 | |||
| 11 | clean: | ||
| 12 | rm -f test.* | ||
diff --git a/examples/example-c.tags b/examples/example-c.tags new file mode 100644 index 0000000..7f5e42e --- /dev/null +++ b/examples/example-c.tags | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | /* | ||
| 2 | * Usage: codetagger -l '//' -r '' -f example-c.tags file1 file2 ... fileN | ||
| 3 | */ | ||
| 4 | |||
| 5 | |||
| 6 | //info_start | ||
| 7 | |||
| 8 | Blah Blah Blah | ||
| 9 | |||
| 10 | //info_end | ||
| 11 | |||
| 12 | |||
| 13 | //header_start | ||
| 14 | #include <stdio.h> | ||
| 15 | |||
| 16 | int main(void); | ||
| 17 | //header_end | ||
| 18 | |||
| 19 | |||
| 20 | //TAILER_START | ||
| 21 | |||
| 22 | int main(void) | ||
| 23 | { | ||
| 24 | printf("hello tagged world\n"); | ||
| 25 | return(0); | ||
| 26 | } | ||
| 27 | //TAILER_END | ||
| 28 | |||
diff --git a/examples/example-defaults.tags b/examples/example-defaults.tags new file mode 100644 index 0000000..c694a6f --- /dev/null +++ b/examples/example-defaults.tags | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | # | ||
| 2 | # Usage: codetagger -f example-defaults.tags file1 file2 ... fileN | ||
| 3 | # | ||
| 4 | |||
| 5 | @INFO_START@ | ||
| 6 | |||
| 7 | Pi starts with 3.14159 | ||
| 8 | |||
| 9 | @INFO_END@ | ||
| 10 | |||
| 11 | @HEADER_START@ | ||
| 12 | hello | ||
| 13 | hello | ||
| 14 | bonjour | ||
| 15 | hallo | ||
| 16 | ciao | ||
| 17 | hola | ||
| 18 | @HEADER_END@ | ||
| 19 | |||
| 20 | |||
| 21 | @TAILER_START@ | ||
| 22 | tot ziens | ||
| 23 | bye | ||
| 24 | bye | ||
| 25 | arrivederci | ||
| 26 | Tschuis | ||
| 27 | adios | ||
| 28 | @TAILER_END@ | ||
| 29 | |||
diff --git a/examples/example-html.tags b/examples/example-html.tags new file mode 100644 index 0000000..85b445a --- /dev/null +++ b/examples/example-html.tags | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | <!-- | ||
| 2 | Usage: codetagger -l '<!--' -r '-->' -f example-html.tags file1 file2 ... fileN | ||
| 3 | --> | ||
| 4 | |||
| 5 | |||
| 6 | <!--HEADER_START--> | ||
| 7 | <html> | ||
| 8 | <head> | ||
| 9 | <title>My Fancy Title</title> | ||
| 10 | </head> | ||
| 11 | <body> | ||
| 12 | <!-- my awesome formatting skills --> | ||
| 13 | Hello World | ||
| 14 | <!--HEADER_END--> | ||
| 15 | |||
| 16 | |||
| 17 | <!--TAILER_START--> | ||
| 18 | </body> | ||
| 19 | </html> | ||
| 20 | <!--TAILER_END--> | ||
| 21 | |||
diff --git a/examples/example-space.tags b/examples/example-space.tags new file mode 100644 index 0000000..959ef5a --- /dev/null +++ b/examples/example-space.tags | |||
| @@ -0,0 +1,10 @@ | |||
| 1 | |||
| 2 | |||
| 3 | @test tag start@ | ||
| 4 | This is a test. | ||
| 5 | This is a test. | ||
| 6 | This is a test. | ||
| 7 | This is a test. | ||
| 8 | This is a test. | ||
| 9 | This is a test. | ||
| 10 | @test tag end@ | ||
diff --git a/examples/example.c b/examples/example.c new file mode 100644 index 0000000..00dd209 --- /dev/null +++ b/examples/example.c | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | /* | ||
| 2 | * //INFO_START | ||
| 3 | * //INFO_END | ||
| 4 | */ | ||
| 5 | |||
| 6 | //header_start | ||
| 7 | //header_end | ||
| 8 | |||
| 9 | //tailer_start | ||
| 10 | //tailer_end | ||
| 11 | |||
| 12 | /* end of source code */ | ||
diff --git a/examples/example.html b/examples/example.html new file mode 100644 index 0000000..c499c45 --- /dev/null +++ b/examples/example.html | |||
| @@ -0,0 +1,9 @@ | |||
| 1 | |||
| 2 | |||
| 3 | <!--HEADER_START--> | ||
| 4 | <!--HEADER_END--> | ||
| 5 | |||
| 6 | My mind boggling content. | ||
| 7 | |||
| 8 | <!--TAILER_START--> | ||
| 9 | <!--TAILER_END--> | ||
diff --git a/examples/example.spc b/examples/example.spc new file mode 100644 index 0000000..4eb5ba0 --- /dev/null +++ b/examples/example.spc | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | |||
| 2 | /* | ||
| 3 | * @TeSt TaG StArT@ | ||
| 4 | * This is a test. | ||
| 5 | * This is a test. | ||
| 6 | * This is a test. | ||
| 7 | * This is a test. | ||
| 8 | * This is a test. | ||
| 9 | * This is a test. | ||
| 10 | * @test tag end@ | ||
| 11 | */ | ||
diff --git a/examples/example.txt b/examples/example.txt new file mode 100644 index 0000000..e2ec4bc --- /dev/null +++ b/examples/example.txt | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | # | ||
| 2 | # Blah blah blah | ||
| 3 | # | ||
| 4 | # @INFO_START@ | ||
| 5 | # @INFO_END@ | ||
| 6 | @ | ||
| 7 | |||
| 8 | How to say hello: | ||
| 9 | @HEADER_START@ | ||
| 10 | @HEADER_END@ | ||
| 11 | |||
| 12 | |||
| 13 | How to Say Good bye: | ||
| 14 | @TAILER_START@ | ||
| 15 | @TAILER_END@ | ||
