From 3d8c367fb6160486b63b19b5d156adfeac621b34 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 8 Jun 2006 07:50:49 +0000 Subject: Started design work...it's coming along --- Buildfile | 31 +++++++++++++++++++++++++++++++ congo | 16 ++++++++++++++++ src/lexer.flex | 13 +++++++++++++ 3 files changed, 60 insertions(+) create mode 100644 Buildfile create mode 100644 congo create mode 100644 src/lexer.flex diff --git a/Buildfile b/Buildfile new file mode 100644 index 0000000..2732847 --- /dev/null +++ b/Buildfile @@ -0,0 +1,31 @@ +// Reference Buildfile by Mike Buland +// Comments can be C++ style or bash style right now, no C style /* */ + +// Recognized file types will be built using the default programs on each +// system, each will get a target and be built with as much dependency tracking +// as possible. + +// This is the default target, build with no params will always try to build +// the all target, unless your Buildfile specifies something a little more +// interesting. Specifying phony as a parameter means that this target builds +// every call no matter what. +target( all, phony ) +{ + build( build ); +} + +target( build ) +{ + type = executable; + linker = c++; + output = build; + + if( isDebug() == true ) + { + addParam( CXXFLAGS, "-ggdb") + addParam( CFLAGS, "-ggdb") + } + + usesDir( src ); +} + diff --git a/congo b/congo new file mode 100644 index 0000000..336a196 --- /dev/null +++ b/congo @@ -0,0 +1,16 @@ + +target( all ) +{ + build( congo ); + build( congod ); +} + +target( congo ) +{ + type = executable; + linker = c++; + + uses( src/congo ); + uses( src/congod ); +} + diff --git a/src/lexer.flex b/src/lexer.flex new file mode 100644 index 0000000..508a50c --- /dev/null +++ b/src/lexer.flex @@ -0,0 +1,13 @@ + int lineNum = 1; +%% + +"="|"("|")"|"{"|"}"|";"|"," return yytext[0]; +"==" return TOK_COMPARE; +"target" return TOK_TARGET; + +\n ++lineNum; +[ \t\r]* + +\/\/.* +"#".* + -- cgit v1.2.3