aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/examples
diff options
context:
space:
mode:
authorDavid M. Syzdek <david@syzdek.net>2008-10-03 02:06:54 -0800
committerDavid M. Syzdek <david@syzdek.net>2008-10-03 02:06:54 -0800
commit35e0eb09f77498714534e727646fe7cfce0d74cd (patch)
tree7beb58288f59a49a64f29effcf17617500205484 /examples
downloaddmstools-35e0eb09f77498714534e727646fe7cfce0d74cd.tar.gz
dmstools-35e0eb09f77498714534e727646fe7cfce0d74cd.tar.bz2
dmstools-35e0eb09f77498714534e727646fe7cfce0d74cd.tar.xz
dmstools-35e0eb09f77498714534e727646fe7cfce0d74cd.zip
initial import
Diffstat (limited to 'examples')
-rw-r--r--examples/Makefile12
-rw-r--r--examples/example-c.tags28
-rw-r--r--examples/example-defaults.tags29
-rw-r--r--examples/example-html.tags21
-rw-r--r--examples/example-space.tags10
-rw-r--r--examples/example.c12
-rw-r--r--examples/example.html9
-rw-r--r--examples/example.spc11
-rw-r--r--examples/example.txt15
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
3all:
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
11clean:
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
8Blah Blah Blah
9
10//info_end
11
12
13//header_start
14#include <stdio.h>
15
16int main(void);
17//header_end
18
19
20//TAILER_START
21
22int 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
7Pi starts with 3.14159
8
9@INFO_END@
10
11@HEADER_START@
12hello
13hello
14bonjour
15hallo
16ciao
17hola
18@HEADER_END@
19
20
21@TAILER_START@
22tot ziens
23bye
24bye
25arrivederci
26Tschuis
27adios
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@
4This is a test.
5This is a test.
6This is a test.
7This is a test.
8This is a test.
9This 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
6My 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
8How to say hello:
9 @HEADER_START@
10 @HEADER_END@
11
12
13How to Say Good bye:
14 @TAILER_START@
15 @TAILER_END@