split code parser/generator into its own source file

master
Daniel Kolesa 2016-08-14 16:14:10 +01:00
parent 0cf5bb210a
commit e518679451
5 changed files with 1110 additions and 1098 deletions

View File

@ -8,6 +8,7 @@ LIBCS_LDFLAGS = -shared
LIBCS_OBJ = \
cubescript.o \
cs_gen.o \
cs_vm.o \
lib_str.o \
lib_math.o \
@ -29,6 +30,7 @@ clean:
rm -f $(LIBCS_LIB) $(LIBCS_OBJ)
cubescript.o: cubescript.hh cs_vm.hh
cs_gen.o: cubescript.hh cs_vm.hh
cs_vm.o: cubescript.hh cs_vm.hh
lib_str.o: cubescript.hh
lib_math.o: cubescript.hh

1104
cs_gen.cc 100644

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -14,6 +14,7 @@
#include <ostd/maybe.hh>
#include <ostd/io.hh>
#include <ostd/functional.hh>
#include <ostd/format.hh>
namespace cscript {

View File

@ -1,5 +1,7 @@
#include "cubescript.hh"
#include <math.h>
namespace cscript {
static constexpr float PI = 3.14159265358979f;