export lua pattern match code.