diff options
author | Mike Buland <eichlan@xagasoft.com> | 2007-04-24 14:09:50 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2007-04-24 14:09:50 +0000 |
commit | ff938b977db21378a1f016f65e7345c50e71ef8f (patch) | |
tree | 0f05b9b5b5ea13ce234cdd27e1eb8ccbccb2dc51 /src/build.y | |
parent | be41caa5ca6756c7809cabaf6d8bee321928c45a (diff) | |
download | build-ff938b977db21378a1f016f65e7345c50e71ef8f.tar.gz build-ff938b977db21378a1f016f65e7345c50e71ef8f.tar.bz2 build-ff938b977db21378a1f016f65e7345c50e71ef8f.tar.xz build-ff938b977db21378a1f016f65e7345c50e71ef8f.zip |
Half way there on the road to implementing basic group functionality. You can
create groups, you can't do anything with them yet (although the syntax is
supported already.)
Diffstat (limited to '')
-rw-r--r-- | src/build.y | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/build.y b/src/build.y index 0853bd9..bfda4b4 100644 --- a/src/build.y +++ b/src/build.y | |||
@@ -40,6 +40,7 @@ void yyerror( YYLTYPE *locp, BuildParser &bld, char const *msg ); | |||
40 | %token TOK_PERFORM "perform" | 40 | %token TOK_PERFORM "perform" |
41 | %token TOK_PRODUCES "produces" | 41 | %token TOK_PRODUCES "produces" |
42 | %token TOK_AGGREGATE "aggregate" | 42 | %token TOK_AGGREGATE "aggregate" |
43 | %token TOK_GROUP "group" | ||
43 | 44 | ||
44 | %token ',' ':' '=' '(' ')' | 45 | %token ',' ':' '=' '(' ')' |
45 | 46 | ||
@@ -123,6 +124,8 @@ actioncmd: TOK_CHECK list | |||
123 | { | 124 | { |
124 | bld.addCommand( Action::actClean ); | 125 | bld.addCommand( Action::actClean ); |
125 | } | 126 | } |
127 | | TOK_CHECK TOK_GROUP STRING | ||
128 | | TOK_CLEAN TOK_GROUP STRING | ||
126 | ; | 129 | ; |
127 | 130 | ||
128 | // Target interpretation | 131 | // Target interpretation |
@@ -158,6 +161,10 @@ targetcmd: TOK_RULE STRING | |||
158 | bld.addTargetRequires(); | 161 | bld.addTargetRequires(); |
159 | } | 162 | } |
160 | | TOK_SET targetset | 163 | | TOK_SET targetset |
164 | | TOK_GROUP STRING | ||
165 | { | ||
166 | bld.addTargetGroup( $2 ); | ||
167 | } | ||
161 | ; | 168 | ; |
162 | 169 | ||
163 | targetset: STRING '=' STRING | 170 | targetset: STRING '=' STRING |