diff --git a/.gitignore b/.gitignore index 4a785b7..0518f1c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,6 @@ .antlr/ build/ - +lib/ # Prerequisites *.d diff --git a/.vscode/settings.json b/.vscode/settings.json index 4544474..6e150ab 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -6,5 +6,8 @@ "listeners": true, "visitors": true, "outputDir": "../lib/generated" + }, + "files.associations": { + "ostream": "cpp" } } \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..c181b3a --- /dev/null +++ b/README.md @@ -0,0 +1,9 @@ +# bfc + +An extension of a language that shall not be named + +## Setup oddities + +1. Copy antlr4's cpp libs to `./libs/antlr4`. +2. Copy `antlr-4.8-complete.jar` to `./thirdparty/antlr`. +3. Generate parsers to `./libs/generated` or use VSCode with the ANTLR extension. diff --git a/include/main.hpp b/include/main.hpp index b4243fa..3d6de1d 100644 --- a/include/main.hpp +++ b/include/main.hpp @@ -1,3 +1,3 @@ -#ifndef __MAIN_HPP -#define FIVE 5 -#endif \ No newline at end of file +#pragma once + +#define FOO 1 diff --git a/src/main.cpp b/src/main.cpp index 7b23f76..636d697 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -41,11 +41,10 @@ public: int main(int argc, const char *argv[]) { - // std::cout<<"Hello World "<