aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2006-06-08 07:50:49 +0000
committerMike Buland <eichlan@xagasoft.com>2006-06-08 07:50:49 +0000
commit3d8c367fb6160486b63b19b5d156adfeac621b34 (patch)
treecb6b4fd5851571be9a9a4f94410a69aaee6310dc
parent21d9613ac47b322316570b4b96b1906d479d49a2 (diff)
downloadbuild-3d8c367fb6160486b63b19b5d156adfeac621b34.tar.gz
build-3d8c367fb6160486b63b19b5d156adfeac621b34.tar.bz2
build-3d8c367fb6160486b63b19b5d156adfeac621b34.tar.xz
build-3d8c367fb6160486b63b19b5d156adfeac621b34.zip
Started design work...it's coming along
-rw-r--r--Buildfile31
-rw-r--r--congo16
-rw-r--r--src/lexer.flex13
3 files changed, 60 insertions, 0 deletions
diff --git a/Buildfile b/Buildfile
new file mode 100644
index 0000000..2732847
--- /dev/null
+++ b/Buildfile
@@ -0,0 +1,31 @@
1// Reference Buildfile by Mike Buland
2// Comments can be C++ style or bash style right now, no C style /* */
3
4// Recognized file types will be built using the default programs on each
5// system, each will get a target and be built with as much dependency tracking
6// as possible.
7
8// This is the default target, build with no params will always try to build
9// the all target, unless your Buildfile specifies something a little more
10// interesting. Specifying phony as a parameter means that this target builds
11// every call no matter what.
12target( all, phony )
13{
14 build( build );
15}
16
17target( build )
18{
19 type = executable;
20 linker = c++;
21 output = build;
22
23 if( isDebug() == true )
24 {
25 addParam( CXXFLAGS, "-ggdb")
26 addParam( CFLAGS, "-ggdb")
27 }
28
29 usesDir( src );
30}
31
diff --git a/congo b/congo
new file mode 100644
index 0000000..336a196
--- /dev/null
+++ b/congo
@@ -0,0 +1,16 @@
1
2target( all )
3{
4 build( congo );
5 build( congod );
6}
7
8target( congo )
9{
10 type = executable;
11 linker = c++;
12
13 uses( src/congo );
14 uses( src/congod );
15}
16
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 @@
1 int lineNum = 1;
2%%
3
4"="|"("|")"|"{"|"}"|";"|"," return yytext[0];
5"==" return TOK_COMPARE;
6"target" return TOK_TARGET;
7
8\n ++lineNum;
9[ \t\r]*
10
11\/\/.*
12"#".*
13