From e96d98165c4d37a99ed3a59d9a1de03bebe4c5ef Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Tue, 16 Jul 2002 19:50:11 +0000 Subject: [PATCH] Added jumptoeof to grammar. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@257 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/tools/jam/jamgram.yy | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tools/jam/jamgram.yy b/src/tools/jam/jamgram.yy index 817e49bd57..f17f4ce09a 100644 --- a/src/tools/jam/jamgram.yy +++ b/src/tools/jam/jamgram.yy @@ -64,6 +64,7 @@ # define pfor( s,l,r ) parse_make( compile_foreach,l,r,P0,s,S0,0 ) # define pif( l,r,t ) parse_make( compile_if,l,r,t,S0,S0,0 ) # define pincl( l ) parse_make( compile_include,l,P0,P0,S0,S0,0 ) +# define pj2eof( ) parse_make( compile_jumptoeof,P0,P0,P0,S0,S0,0 ) # define plist( s ) parse_make( compile_list,P0,P0,P0,s,S0,0 ) # define plocal( l,r,t ) parse_make( compile_local,l,r,t,S0,S0,0 ) # define pnull() parse_make( compile_null,P0,P0,P0,S0,S0,0 ) @@ -117,6 +118,8 @@ rule : `{` block `}` { $$.parse = $2.parse; } | `include` list `;` { $$.parse = pincl( $2.parse ); } + | `jumptoeof` `;` + { $$.parse = pj2eof( ); } | arg lol `;` { $$.parse = prule( $1.parse, $2.parse ); } | arg assign list `;`