├── CHANGELOG.md ├── LICENSE ├── README.md ├── bin ├── argv-parser.js └── global.js ├── examples ├── a file you can compile with config.js ├── a file you can compile.js ├── a file you cannot compile.js ├── configuration.json └── included file.js ├── index.js ├── lib ├── README.md ├── compiler.js └── src │ ├── compiler.js │ ├── directives │ ├── condition.js │ ├── define.js │ ├── directives.js │ ├── extra.js │ └── include.js │ ├── main.js │ ├── parse-next-line.js │ ├── processor.js │ ├── string-helper.js │ └── system │ ├── comments.js │ ├── conditions.js │ ├── constants.js │ ├── defines.js │ ├── macros.js │ └── stack.js ├── package.json └── test ├── all.js ├── factory.js ├── ressources ├── file-to-include-once.js └── file-to-include.js ├── tests ├── comments.js ├── define-macro.js ├── define-var.js ├── enum.js ├── error.js ├── if.js ├── ifdef.js ├── include.js ├── pragma.js ├── push-pop-macro.js └── undef.js └── utils.js /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ParksProjets/C-Preprocessor/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ParksProjets/C-Preprocessor/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ParksProjets/C-Preprocessor/HEAD/README.md -------------------------------------------------------------------------------- /bin/argv-parser.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ParksProjets/C-Preprocessor/HEAD/bin/argv-parser.js -------------------------------------------------------------------------------- /bin/global.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ParksProjets/C-Preprocessor/HEAD/bin/global.js -------------------------------------------------------------------------------- /examples/a file you can compile with config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ParksProjets/C-Preprocessor/HEAD/examples/a file you can compile with config.js -------------------------------------------------------------------------------- /examples/a file you can compile.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ParksProjets/C-Preprocessor/HEAD/examples/a file you can compile.js -------------------------------------------------------------------------------- /examples/a file you cannot compile.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ParksProjets/C-Preprocessor/HEAD/examples/a file you cannot compile.js -------------------------------------------------------------------------------- /examples/configuration.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ParksProjets/C-Preprocessor/HEAD/examples/configuration.json -------------------------------------------------------------------------------- /examples/included file.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ParksProjets/C-Preprocessor/HEAD/examples/included file.js -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ParksProjets/C-Preprocessor/HEAD/index.js -------------------------------------------------------------------------------- /lib/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ParksProjets/C-Preprocessor/HEAD/lib/README.md -------------------------------------------------------------------------------- /lib/compiler.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ParksProjets/C-Preprocessor/HEAD/lib/compiler.js -------------------------------------------------------------------------------- /lib/src/compiler.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ParksProjets/C-Preprocessor/HEAD/lib/src/compiler.js -------------------------------------------------------------------------------- /lib/src/directives/condition.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ParksProjets/C-Preprocessor/HEAD/lib/src/directives/condition.js -------------------------------------------------------------------------------- /lib/src/directives/define.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ParksProjets/C-Preprocessor/HEAD/lib/src/directives/define.js -------------------------------------------------------------------------------- /lib/src/directives/directives.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ParksProjets/C-Preprocessor/HEAD/lib/src/directives/directives.js -------------------------------------------------------------------------------- /lib/src/directives/extra.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ParksProjets/C-Preprocessor/HEAD/lib/src/directives/extra.js -------------------------------------------------------------------------------- /lib/src/directives/include.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ParksProjets/C-Preprocessor/HEAD/lib/src/directives/include.js -------------------------------------------------------------------------------- /lib/src/main.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ParksProjets/C-Preprocessor/HEAD/lib/src/main.js -------------------------------------------------------------------------------- /lib/src/parse-next-line.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ParksProjets/C-Preprocessor/HEAD/lib/src/parse-next-line.js -------------------------------------------------------------------------------- /lib/src/processor.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ParksProjets/C-Preprocessor/HEAD/lib/src/processor.js -------------------------------------------------------------------------------- /lib/src/string-helper.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ParksProjets/C-Preprocessor/HEAD/lib/src/string-helper.js -------------------------------------------------------------------------------- /lib/src/system/comments.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ParksProjets/C-Preprocessor/HEAD/lib/src/system/comments.js -------------------------------------------------------------------------------- /lib/src/system/conditions.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ParksProjets/C-Preprocessor/HEAD/lib/src/system/conditions.js -------------------------------------------------------------------------------- /lib/src/system/constants.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ParksProjets/C-Preprocessor/HEAD/lib/src/system/constants.js -------------------------------------------------------------------------------- /lib/src/system/defines.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ParksProjets/C-Preprocessor/HEAD/lib/src/system/defines.js -------------------------------------------------------------------------------- /lib/src/system/macros.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ParksProjets/C-Preprocessor/HEAD/lib/src/system/macros.js -------------------------------------------------------------------------------- /lib/src/system/stack.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ParksProjets/C-Preprocessor/HEAD/lib/src/system/stack.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ParksProjets/C-Preprocessor/HEAD/package.json -------------------------------------------------------------------------------- /test/all.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ParksProjets/C-Preprocessor/HEAD/test/all.js -------------------------------------------------------------------------------- /test/factory.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ParksProjets/C-Preprocessor/HEAD/test/factory.js -------------------------------------------------------------------------------- /test/ressources/file-to-include-once.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ParksProjets/C-Preprocessor/HEAD/test/ressources/file-to-include-once.js -------------------------------------------------------------------------------- /test/ressources/file-to-include.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ParksProjets/C-Preprocessor/HEAD/test/ressources/file-to-include.js -------------------------------------------------------------------------------- /test/tests/comments.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ParksProjets/C-Preprocessor/HEAD/test/tests/comments.js -------------------------------------------------------------------------------- /test/tests/define-macro.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ParksProjets/C-Preprocessor/HEAD/test/tests/define-macro.js -------------------------------------------------------------------------------- /test/tests/define-var.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ParksProjets/C-Preprocessor/HEAD/test/tests/define-var.js -------------------------------------------------------------------------------- /test/tests/enum.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ParksProjets/C-Preprocessor/HEAD/test/tests/enum.js -------------------------------------------------------------------------------- /test/tests/error.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ParksProjets/C-Preprocessor/HEAD/test/tests/error.js -------------------------------------------------------------------------------- /test/tests/if.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ParksProjets/C-Preprocessor/HEAD/test/tests/if.js -------------------------------------------------------------------------------- /test/tests/ifdef.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ParksProjets/C-Preprocessor/HEAD/test/tests/ifdef.js -------------------------------------------------------------------------------- /test/tests/include.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ParksProjets/C-Preprocessor/HEAD/test/tests/include.js -------------------------------------------------------------------------------- /test/tests/pragma.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ParksProjets/C-Preprocessor/HEAD/test/tests/pragma.js -------------------------------------------------------------------------------- /test/tests/push-pop-macro.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ParksProjets/C-Preprocessor/HEAD/test/tests/push-pop-macro.js -------------------------------------------------------------------------------- /test/tests/undef.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ParksProjets/C-Preprocessor/HEAD/test/tests/undef.js -------------------------------------------------------------------------------- /test/utils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ParksProjets/C-Preprocessor/HEAD/test/utils.js --------------------------------------------------------------------------------