Package org.tweetyproject.arg.adf.io
Class KppADFFormatParser
java.lang.Object
org.tweetyproject.arg.adf.io.KppADFFormatParser
A parser for the input format described at
https://www.cs.helsinki.fi/group/coreo/k++adf/
Since the input format is only described informally, we assume that each
argument has to be defined before it can be used in some way, e.g. 's(a).
ac(a,c(v)).' is a valid input but 'ac(a,c(v)). s(a).' is not. This assumption
makes error handling and reporting much easier. However, this also means that
the order of the input statements matter and we are thus not fully
declarative.
- Author:
- Mathias Hofer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription
-
Constructor Details
-
KppADFFormatParser
- Parameters:
linkStrategy
- the strategy which is used to compute the linkslazy
- specifies if the link computation should be done lazily
-
-
Method Details
-
parse
- Parameters:
text
- text- Returns:
- parse
- Throws:
IOException
- IO Exception
-
parse
- Parameters:
file
- file- Returns:
- parse
- Throws:
FileNotFoundException
- File Not Found ExceptionIOException
- IO Exception
-
parse
- Parameters:
reader
- reader- Returns:
- parse
- Throws:
IOException
- IO Exception
-