public final class FortranParser extends AbstractParser implements Parser
Constructor and Description |
---|
FortranParser()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addFilename(String include)
Called by FilenameState at completion of file name production.
|
String[] |
getIncludes()
Gets collection of include file names encountered in parse.
|
AbstractParserState |
getNewLineState()
Get the state for the beginning of a new line.
|
void |
parse(Reader reader)
Collects all included files from the content of the reader.
|
public void addFilename(String include)
addFilename
in class AbstractParser
include
- include file namepublic String[] getIncludes()
getIncludes
in interface Parser
public AbstractParserState getNewLineState()
getNewLineState
in class AbstractParser
public void parse(Reader reader) throws IOException
parse
in interface Parser
parse
in class AbstractParser
reader
- character reader containing a FORTRAN source moduleIOException
- throw if I/O error during parseCopyright © 2018 MojoHaus. All rights reserved.