A program called a script parser is a software designed to extract source code from various locations . It functions by examining a document , often a webpage , to locate and pinpoint the specific code snippets. These sections are then saved in a different format , allowing programmers to reuse the code or study its design. Some script parsers empl