Skip to content

ontologyportal/TPTP-ANTLR

Repository files navigation

About

This repository contains an ANTLR4 grammar for the logic input languages provided by the TPTP [1]. This was originally created by Alexander Steen ([email protected]) and Tobias Gleißner ([email protected]) and distributed at https://github.com/TobiasGleissner/TPTP-ANTLR4-Grammar as of 2018 The grammar was successfully tested on all valid syntactical problems of the TPTP.

Adam Pease ([email protected]) has added a TPTPVisitor class and TPTPFormula structure to hold the results of parsing.

Note that TPTP has continued to evolve and as of 2021 this grammar is behind the latest version, although it appears that TFF, FOF and CNF formulas haven't changed.

Contents

  • tptp_v7_0_0_0.g4

    The actual grammar.

  • test

    Contains code to test the grammar on a set of TPTP problems.

  • test_cases

    Contains additional test cases for (unofficial) non-classical logics.

[1] http://www.tptp.org/

About

ANTLR grammar and Java code for TPTP language family

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published