Skip to content

ANTLR grammar and Java code for TPTP language family

License

Notifications You must be signed in to change notification settings

kharus/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:https://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

Languages

  • Java 70.4%
  • HTML 14.6%
  • ANTLR 13.1%
  • OpenEdge ABL 1.9%