public class Parser
extends java.lang.Object
| Constructor and Description |
|---|
Parser()
Constructs a new parser that works in the current directory.
|
Parser(java.lang.String dir)
Constructs a new parser that works in the specified directory.
|
| Modifier and Type | Method and Description |
|---|---|
TranslationUnit |
parse(java.lang.String input_filename)
Parse this translation unit.
|
public Parser()
public Parser(java.lang.String dir)
dir - the working directory.public TranslationUnit parse(java.lang.String input_filename) throws java.io.IOException
input_filename - Name of file to parsejava.io.IOException - if there is a problem accessing any file.