From ff938b977db21378a1f016f65e7345c50e71ef8f Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 24 Apr 2007 14:09:50 +0000 Subject: 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.) --- src/build.y | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/build.y') 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 ); %token TOK_PERFORM "perform" %token TOK_PRODUCES "produces" %token TOK_AGGREGATE "aggregate" +%token TOK_GROUP "group" %token ',' ':' '=' '(' ')' @@ -123,6 +124,8 @@ actioncmd: TOK_CHECK list { bld.addCommand( Action::actClean ); } + | TOK_CHECK TOK_GROUP STRING + | TOK_CLEAN TOK_GROUP STRING ; // Target interpretation @@ -158,6 +161,10 @@ targetcmd: TOK_RULE STRING bld.addTargetRequires(); } | TOK_SET targetset + | TOK_GROUP STRING + { + bld.addTargetGroup( $2 ); + } ; targetset: STRING '=' STRING -- cgit v1.2.3