From 75004786187096fbe3b56f0f099502a1695756ef Mon Sep 17 00:00:00 2001 From: khamidou Date: Tue, 12 Jan 2010 18:50:17 +0100 Subject: [PATCH] added file for the boostrap compiler --- compiler.c | 17 +++++++++++++++++ compiler.h | 8 ++++++++ 2 files changed, 25 insertions(+) create mode 100644 compiler.c create mode 100644 compiler.h diff --git a/compiler.c b/compiler.c new file mode 100644 index 0000000..fea3e04 --- /dev/null +++ b/compiler.c @@ -0,0 +1,17 @@ +/* + The mojo boostrap compiler. + copyright (c) 2009 karim hamidou. + + This is a rough translator for a subset of mojo to C. + +*/ + +#include "compiler.h" + +int main(int argc, char **argv) +{ + if (argc != 2) { + fail("%s file", argv[0]); + } + +} diff --git a/compiler.h b/compiler.h new file mode 100644 index 0000000..51a48d4 --- /dev/null +++ b/compiler.h @@ -0,0 +1,8 @@ +#ifndef __COMPILER_H__ +#define __COMPILER_H__ + +#include "tokens.h" +#include "object.h" + + +#endif -- 2.43.0