├── BUGS.txt ├── CONTRIBUTORS.txt ├── LICENSE.txt ├── MANIFEST.in ├── Makefile.py ├── README.md ├── TODO.txt ├── bin ├── preprocess └── preprocess.exe ├── lib └── preprocess.py ├── setup.py ├── src ├── exe │ ├── Makefile.win │ └── launcher.cpp └── trentm.com │ ├── index.markdown │ ├── logo.gif │ └── project-info.xml └── test ├── inputs ├── define_types.py ├── define_undef.py ├── defined.py ├── elif.py ├── else.py ├── else_expr.py ├── empty.py ├── error.py ├── exc1.py ├── exc2.py ├── exc3.py ├── exc4.py ├── exc5.py ├── file_and_line.py ├── if.py ├── ifdef.py ├── ifndef.py ├── ignore_error.py ├── keep_lines_bugs.py ├── keep_lines_bugs.py.opts ├── nested.py ├── nested_bug1.py ├── recursive_include_a.py ├── recursive_include_b.py ├── sample.tex ├── sphere.f ├── subst_bug2.py ├── subst_bug2.py.opts ├── subst_bug2.py.tags ├── substitution.py ├── substitution.py.opts └── undefined.py ├── outputs ├── define_types.py ├── define_undef.py ├── defined.py ├── elif.py ├── else.py ├── else_expr.py ├── empty.py ├── error.py.err ├── exc1.py.err ├── exc2.py.err ├── exc3.py.err ├── exc4.py.err ├── exc5.py.err ├── file_and_line.py ├── if.py ├── ifdef.py ├── ifndef.py ├── ignore_error.py ├── keep_lines_bugs.py ├── nested.py ├── nested_bug1.py ├── recursive_include_a.py.err ├── recursive_include_b.py.err ├── sample.tex ├── sphere.f ├── subst_bug2.py ├── substitution.py └── undefined.py.err ├── test.py ├── test_preprocess.py ├── test_preprocess_inputs.py ├── testlib.py └── testsupport.py /BUGS.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/BUGS.txt -------------------------------------------------------------------------------- /CONTRIBUTORS.txt: -------------------------------------------------------------------------------- 1 | Trent Mick (primary author) 2 | Hans Petter Langtangen 3 | -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/LICENSE.txt -------------------------------------------------------------------------------- /MANIFEST.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/MANIFEST.in -------------------------------------------------------------------------------- /Makefile.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/Makefile.py -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/README.md -------------------------------------------------------------------------------- /TODO.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/TODO.txt -------------------------------------------------------------------------------- /bin/preprocess: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/bin/preprocess -------------------------------------------------------------------------------- /bin/preprocess.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/bin/preprocess.exe -------------------------------------------------------------------------------- /lib/preprocess.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/lib/preprocess.py -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/setup.py -------------------------------------------------------------------------------- /src/exe/Makefile.win: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/src/exe/Makefile.win -------------------------------------------------------------------------------- /src/exe/launcher.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/src/exe/launcher.cpp -------------------------------------------------------------------------------- /src/trentm.com/index.markdown: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/src/trentm.com/index.markdown -------------------------------------------------------------------------------- /src/trentm.com/logo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/src/trentm.com/logo.gif -------------------------------------------------------------------------------- /src/trentm.com/project-info.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/src/trentm.com/project-info.xml -------------------------------------------------------------------------------- /test/inputs/define_types.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/test/inputs/define_types.py -------------------------------------------------------------------------------- /test/inputs/define_undef.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/test/inputs/define_undef.py -------------------------------------------------------------------------------- /test/inputs/defined.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/test/inputs/defined.py -------------------------------------------------------------------------------- /test/inputs/elif.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/test/inputs/elif.py -------------------------------------------------------------------------------- /test/inputs/else.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/test/inputs/else.py -------------------------------------------------------------------------------- /test/inputs/else_expr.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/test/inputs/else_expr.py -------------------------------------------------------------------------------- /test/inputs/empty.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/test/inputs/empty.py -------------------------------------------------------------------------------- /test/inputs/error.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/test/inputs/error.py -------------------------------------------------------------------------------- /test/inputs/exc1.py: -------------------------------------------------------------------------------- 1 | # #if 1 2 | print "1" 3 | -------------------------------------------------------------------------------- /test/inputs/exc2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/test/inputs/exc2.py -------------------------------------------------------------------------------- /test/inputs/exc3.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/test/inputs/exc3.py -------------------------------------------------------------------------------- /test/inputs/exc4.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/test/inputs/exc4.py -------------------------------------------------------------------------------- /test/inputs/exc5.py: -------------------------------------------------------------------------------- 1 | # #if defined(FOO) 2 | print "foo" 3 | # #endif 4 | 5 | -------------------------------------------------------------------------------- /test/inputs/file_and_line.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/test/inputs/file_and_line.py -------------------------------------------------------------------------------- /test/inputs/if.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/test/inputs/if.py -------------------------------------------------------------------------------- /test/inputs/ifdef.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/test/inputs/ifdef.py -------------------------------------------------------------------------------- /test/inputs/ifndef.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/test/inputs/ifndef.py -------------------------------------------------------------------------------- /test/inputs/ignore_error.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/test/inputs/ignore_error.py -------------------------------------------------------------------------------- /test/inputs/keep_lines_bugs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/test/inputs/keep_lines_bugs.py -------------------------------------------------------------------------------- /test/inputs/keep_lines_bugs.py.opts: -------------------------------------------------------------------------------- 1 | --keep-lines 2 | -------------------------------------------------------------------------------- /test/inputs/nested.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/test/inputs/nested.py -------------------------------------------------------------------------------- /test/inputs/nested_bug1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/test/inputs/nested_bug1.py -------------------------------------------------------------------------------- /test/inputs/recursive_include_a.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/test/inputs/recursive_include_a.py -------------------------------------------------------------------------------- /test/inputs/recursive_include_b.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/test/inputs/recursive_include_b.py -------------------------------------------------------------------------------- /test/inputs/sample.tex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/test/inputs/sample.tex -------------------------------------------------------------------------------- /test/inputs/sphere.f: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/test/inputs/sphere.f -------------------------------------------------------------------------------- /test/inputs/subst_bug2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/test/inputs/subst_bug2.py -------------------------------------------------------------------------------- /test/inputs/subst_bug2.py.opts: -------------------------------------------------------------------------------- 1 | --substitute 2 | -------------------------------------------------------------------------------- /test/inputs/subst_bug2.py.tags: -------------------------------------------------------------------------------- 1 | knownfailure 2 | -------------------------------------------------------------------------------- /test/inputs/substitution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/test/inputs/substitution.py -------------------------------------------------------------------------------- /test/inputs/substitution.py.opts: -------------------------------------------------------------------------------- 1 | --substitute 2 | -------------------------------------------------------------------------------- /test/inputs/undefined.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/test/inputs/undefined.py -------------------------------------------------------------------------------- /test/outputs/define_types.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/test/outputs/define_types.py -------------------------------------------------------------------------------- /test/outputs/define_undef.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/test/outputs/define_undef.py -------------------------------------------------------------------------------- /test/outputs/defined.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/test/outputs/defined.py -------------------------------------------------------------------------------- /test/outputs/elif.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/test/outputs/elif.py -------------------------------------------------------------------------------- /test/outputs/else.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/test/outputs/else.py -------------------------------------------------------------------------------- /test/outputs/else_expr.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/test/outputs/else_expr.py -------------------------------------------------------------------------------- /test/outputs/empty.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/test/outputs/empty.py -------------------------------------------------------------------------------- /test/outputs/error.py.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/test/outputs/error.py.err -------------------------------------------------------------------------------- /test/outputs/exc1.py.err: -------------------------------------------------------------------------------- 1 | preprocess: error: inputs/exc1.py:2: unterminated #if block 2 | -------------------------------------------------------------------------------- /test/outputs/exc2.py.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/test/outputs/exc2.py.err -------------------------------------------------------------------------------- /test/outputs/exc3.py.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/test/outputs/exc3.py.err -------------------------------------------------------------------------------- /test/outputs/exc4.py.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/test/outputs/exc4.py.err -------------------------------------------------------------------------------- /test/outputs/exc5.py.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/test/outputs/exc5.py.err -------------------------------------------------------------------------------- /test/outputs/file_and_line.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/test/outputs/file_and_line.py -------------------------------------------------------------------------------- /test/outputs/if.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/test/outputs/if.py -------------------------------------------------------------------------------- /test/outputs/ifdef.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/test/outputs/ifdef.py -------------------------------------------------------------------------------- /test/outputs/ifndef.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/test/outputs/ifndef.py -------------------------------------------------------------------------------- /test/outputs/ignore_error.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/test/outputs/ignore_error.py -------------------------------------------------------------------------------- /test/outputs/keep_lines_bugs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/test/outputs/keep_lines_bugs.py -------------------------------------------------------------------------------- /test/outputs/nested.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/test/outputs/nested.py -------------------------------------------------------------------------------- /test/outputs/nested_bug1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/test/outputs/nested_bug1.py -------------------------------------------------------------------------------- /test/outputs/recursive_include_a.py.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/test/outputs/recursive_include_a.py.err -------------------------------------------------------------------------------- /test/outputs/recursive_include_b.py.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/test/outputs/recursive_include_b.py.err -------------------------------------------------------------------------------- /test/outputs/sample.tex: -------------------------------------------------------------------------------- 1 | some text 2 | 3 | -------------------------------------------------------------------------------- /test/outputs/sphere.f: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/test/outputs/sphere.f -------------------------------------------------------------------------------- /test/outputs/subst_bug2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/test/outputs/subst_bug2.py -------------------------------------------------------------------------------- /test/outputs/substitution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/test/outputs/substitution.py -------------------------------------------------------------------------------- /test/outputs/undefined.py.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/test/outputs/undefined.py.err -------------------------------------------------------------------------------- /test/test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/test/test.py -------------------------------------------------------------------------------- /test/test_preprocess.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/test/test_preprocess.py -------------------------------------------------------------------------------- /test/test_preprocess_inputs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/test/test_preprocess_inputs.py -------------------------------------------------------------------------------- /test/testlib.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/test/testlib.py -------------------------------------------------------------------------------- /test/testsupport.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doconce/preprocess/HEAD/test/testsupport.py --------------------------------------------------------------------------------