1# Copyright 2003 Vladimir Prus 2# Distributed under the Boost Software License, Version 1.0. 3# (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) 4 5import generators ; 6import feature ; 7import toolset : flags ; 8import type ; 9 10feature.feature bison.prefix : : free ; 11type.register Y : y ; 12type.register YY : yy ; 13generators.register-standard bison.bison : Y : C H ; 14generators.register-standard bison.bison : YY : CPP HPP ; 15 16rule init ( ) 17{ 18} 19 20flags bison.bison PREFIX <bison.prefix> ; 21_ = " " ; 22 23actions bison 24{ 25 bison -p$(_)$(PREFIX) -d -o $(<[1]) $(>) 26} 27