package input
- Alphabetic
- Public
- Protected
Value Members
- object TPTPParser
Parser for the TPTP-based input language, including ...
Parser for the TPTP-based input language, including ...
- THF (TH0/TH1): Monomorphic and polymorphic higher-order logic,
- TFF (TF0/TF1): Monomorphic and polymorphic typed first-order logic,
- FOF: Untyped first-order logic,
- CNF: (Untyped) clause-normal form, and
- TPI: TPTP Process Instruction language.
The parser parses into an abstract syntax tree defined at datastructures.TPTP, resp. its corresponding specializations for the respective language dialect:
- THF formulas are parsed into datastructures.TPTP.THF
- TFF formulas are parsed into datastructures.TPTP.TFF
- FOF/TPI formulas are parsed into datastructures.TPTP.FOF
- CNF formulas are parsed into datastructures.TPTP.CNF. ... each wrapper in the respective datastructures.TPTP.AnnotatedFormula.
Parsing errors will cause TPTPParser.TPTPParseExceptions. Note that includes etc. are parsed as-is and reprented by a datastructures.TPTP.Include entry in the datastructures.TPTP.Problem representation. In particular, they are not parsed recursively. This has to be implemented externally.
- Since
January 2021
- Note
For the implementation of this parser v7.4.0.3 of the TPTP syntax was used.
,Limitations: Currently, FOOL logic (i.e., TFX) cannot be parsed.
- See also
Original TPTP syntax definition at http://tptp.org/TPTP/SyntaxBNF.html.