Constructor and Description |
---|
ProgramParser() |
Modifier and Type | Method and Description |
---|---|
String |
getName()
The parser name.
|
Collection<ExecutableSegment> |
parse(String sourceCode,
ParsingContext parsingContext,
Executable executable)
Parses source code, turning it into executable segments.
|
public static final String NAME
public Collection<ExecutableSegment> parse(String sourceCode, ParsingContext parsingContext, Executable executable) throws ParsingException, DocumentException
Parser
parse
in interface Parser
sourceCode
- The source codeparsingContext
- The parsing contextexecutable
- The executableParsingException
- In case of a parsing errorDocumentException
- In case of a document retrieval errorCopyright © 2009-2015 Three Crickets LLC.