public class Parser extends Object
Expression
Constructor and Description |
---|
Parser(BufferedReader reader) |
Parser(BufferedReader reader,
boolean prolog)
Constructs a new parser.
|
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args)
Test main program for Parser class.
|
List<Expression> |
parse() |
List<Expression> |
parseCSP()
Parses the input and returns a list of expressions.
|
List<Expression> |
parseProlog()
Parses the input in Prolog format and returns a list of expressions.
|
public Parser(BufferedReader reader, boolean prolog)
reader
- an input readerpublic Parser(BufferedReader reader)
public List<Expression> parseCSP() throws IOException
IOException
public List<Expression> parseProlog() throws IOException
IOException
public List<Expression> parse() throws IOException
IOException
public static void main(String[] args)
args
- the command line arguments