a simple preprocessor to use before parsing BSV files