cs2lint

CubeScript linter for Cube2 engine
git clone git://deadbeef.fr/cs2lint.git
Log | Files | Refs | README | LICENSE

commit ee82880bfb3ec637d45ad99a3f7002422b15c230
parent c239a35382b1cb436a35c472ce8d8d43efd91eaa
Author: Morel BĂ©renger <berengermorel76@gmail.com>
Date:   Sun, 19 Jul 2020 01:00:06 +0200

Add main.cpp + improve build script

Diffstat:
M.gitignore | 2+-
Mbuild.sh | 2++
Amain.cpp | 8++++++++
3 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/.gitignore b/.gitignore @@ -1 +1 @@ -build +coco_build diff --git a/build.sh b/build.sh @@ -1,5 +1,7 @@ #!/bin/sh test -e coco_build && rm -r coco_build +test -e cs2lint && rm cs2lint mkdir coco_build cococpp -frames /usr/share/coco-cpp/ -o coco_build cubescript.atg +clang++ main.cpp coco_build/*.cpp -o cs2lint diff --git a/main.cpp b/main.cpp @@ -0,0 +1,8 @@ +#include "coco_build/Parser.h" + +int main() +{ + Scanner scanner( stdin ); + Parser parser( &scanner ); + parser.Parse(); +}