From: khamidou Date: Tue, 12 Jan 2010 17:50:17 +0000 (+0100) Subject: added file for the boostrap compiler X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=75004786187096fbe3b56f0f099502a1695756ef;p=mojo.git added file for the boostrap compiler --- 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