aboutsummaryrefslogtreecommitdiff
path: root/test/indented-triple-pass
diff options
context:
space:
mode:
Diffstat (limited to 'test/indented-triple-pass')
-rw-r--r--test/indented-triple-pass/1=program.markdown34
-rw-r--r--test/indented-triple-pass/2=program.markdown35
-rw-r--r--test/indented-triple-pass/EXP=program.c9
-rw-r--r--test/indented-triple-pass/OUT=program.c9
-rw-r--r--test/indented-triple-pass/build.bat6
-rw-r--r--test/indented-triple-pass/program.c1
-rw-r--r--test/indented-triple-pass/program.markdown28
7 files changed, 122 insertions, 0 deletions
diff --git a/test/indented-triple-pass/1=program.markdown b/test/indented-triple-pass/1=program.markdown
new file mode 100644
index 0000000..db170bc
--- /dev/null
+++ b/test/indented-triple-pass/1=program.markdown
@@ -0,0 +1,34 @@
+# My program -> program.c
+
+ char *line;
+ int line_length;
+ int line_size;
+ int main(int argc, char *argv[]) {
+ int i;
+ <<main.options>>
+ ...
+ }
+
+## Main function -> main
+
+Here is the main function:
+
+ int main(int argc, char *argv[]) {
+ int i;
+ for (i = 1; i < argc; i++)
+ ...
+ ...
+ }
+
+### Command-line options -> main.options
+
+ for (i = 1; i < argc; i++)
+ ...
+
+### Declarations -> declarations
+
+So far, we have used the following global variables:
+
+ char *line;
+ int line_length;
+ int line_size;
diff --git a/test/indented-triple-pass/2=program.markdown b/test/indented-triple-pass/2=program.markdown
new file mode 100644
index 0000000..38b3ee9
--- /dev/null
+++ b/test/indented-triple-pass/2=program.markdown
@@ -0,0 +1,35 @@
+# My program -> program.c
+
+ char *line;
+ int line_length;
+ int line_size;
+ int main(int argc, char *argv[]) {
+ int i;
+ for (i = 1; i < argc; i++)
+ ...
+ ...
+ }
+
+## Main function -> main
+
+Here is the main function:
+
+ int main(int argc, char *argv[]) {
+ int i;
+ for (i = 1; i < argc; i++)
+ ...
+ ...
+ }
+
+### Command-line options -> main.options
+
+ for (i = 1; i < argc; i++)
+ ...
+
+### Declarations -> declarations
+
+So far, we have used the following global variables:
+
+ char *line;
+ int line_length;
+ int line_size;
diff --git a/test/indented-triple-pass/EXP=program.c b/test/indented-triple-pass/EXP=program.c
new file mode 100644
index 0000000..37a8bc3
--- /dev/null
+++ b/test/indented-triple-pass/EXP=program.c
@@ -0,0 +1,9 @@
+char *line;
+int line_length;
+int line_size;
+int main(int argc, char *argv[]) {
+ int i;
+ for (i = 1; i < argc; i++)
+ ...
+ ...
+}
diff --git a/test/indented-triple-pass/OUT=program.c b/test/indented-triple-pass/OUT=program.c
new file mode 100644
index 0000000..37a8bc3
--- /dev/null
+++ b/test/indented-triple-pass/OUT=program.c
@@ -0,0 +1,9 @@
+char *line;
+int line_length;
+int line_size;
+int main(int argc, char *argv[]) {
+ int i;
+ for (i = 1; i < argc; i++)
+ ...
+ ...
+}
diff --git a/test/indented-triple-pass/build.bat b/test/indented-triple-pass/build.bat
new file mode 100644
index 0000000..be5a294
--- /dev/null
+++ b/test/indented-triple-pass/build.bat
@@ -0,0 +1,6 @@
+@echo off
+setlocal
+cd /d %~dp0
+..\..\tt -d# -o1= program.markdown < program.markdown
+..\..\tt -d# -o2= program.markdown < "1=program.markdown"
+..\..\tt -d# -oOUT= program.c < "2=program.markdown" \ No newline at end of file
diff --git a/test/indented-triple-pass/program.c b/test/indented-triple-pass/program.c
new file mode 100644
index 0000000..d82e40b
--- /dev/null
+++ b/test/indented-triple-pass/program.c
@@ -0,0 +1 @@
+<<program.c>> \ No newline at end of file
diff --git a/test/indented-triple-pass/program.markdown b/test/indented-triple-pass/program.markdown
new file mode 100644
index 0000000..6628f00
--- /dev/null
+++ b/test/indented-triple-pass/program.markdown
@@ -0,0 +1,28 @@
+# My program -> program.c
+
+ <<includes>>
+ <<declarations>>
+ <<main>>
+
+## Main function -> main
+
+Here is the main function:
+
+ int main(int argc, char *argv[]) {
+ int i;
+ <<main.options>>
+ ...
+ }
+
+### Command-line options -> main.options
+
+ for (i = 1; i < argc; i++)
+ ...
+
+### Declarations -> declarations
+
+So far, we have used the following global variables:
+
+ char *line;
+ int line_length;
+ int line_size; \ No newline at end of file