Skip to content

Commit

Permalink
Added license headers
Browse files Browse the repository at this point in the history
  • Loading branch information
b-gehrke committed Apr 19, 2023
1 parent be1944d commit 0f67b7b
Show file tree
Hide file tree
Showing 25 changed files with 139 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ doc/*.out
doc/UserGuide.pdf
doc/hs2isa.ps
docs/
__pycache__
.idea
programatica/
OWL2/*.jar
OWL2/java/build/
Expand Down
6 changes: 6 additions & 0 deletions HetsAPI.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
{- |
Description : Exports HETS functionality as a structured API
Copyright : (c) Otto-von-Guericke University of Magdeburg
License : GPLv2 or higher, see LICENSE.txt
-}

module HetsAPI (
-- HetsAPI.Commands
automatic
Expand Down
5 changes: 5 additions & 0 deletions HetsAPI/Commands.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
{- |
Description : All commands to interact with the HETS API
Copyright : (c) Otto-von-Guericke University of Magdeburg
License : GPLv2 or higher, see LICENSE.txt
-}
module HetsAPI.Commands (
automatic
, globalSubsume
Expand Down
5 changes: 5 additions & 0 deletions HetsAPI/DataTypes.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
{- |
Description : Common Datatypes used by the HETS API
Copyright : (c) Otto-von-Guericke University of Magdeburg
License : GPLv2 or higher, see LICENSE.txt
-}
module HetsAPI.DataTypes (
Sentence
, SentenceByName
Expand Down
6 changes: 6 additions & 0 deletions HetsAPI/InfoCommands.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
{-# LANGUAGE ScopedTypeVariables #-}
{- |
Description : Commands providing information about the state of the development graph and selected theories
Copyright : (c) Otto-von-Guericke University of Magdeburg
License : GPLv2 or higher, see LICENSE.txt
-}


module HetsAPI.InfoCommands (
getGraphForLibrary
Expand Down
6 changes: 6 additions & 0 deletions HetsAPI/Internal.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
{- |
Description : This module aims to bundle all internals required to work with the API. The main reason is for the Python API to only import to modules.
Copyright : (c) Otto-von-Guericke University of Magdeburg
License : GPLv2 or higher, see LICENSE.txt
-}

module HetsAPI.Internal (
fromJust
, Result, resultToMaybe, Diagnosis
Expand Down
5 changes: 5 additions & 0 deletions HetsAPI/ProveCommands.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
{- |
Description : All commands to prove or check the consistency of a theory, node or edge
Copyright : (c) Otto-von-Guericke University of Magdeburg
License : GPLv2 or higher, see LICENSE.txt
-}
module HetsAPI.ProveCommands (
availableComorphisms
, usableProvers
Expand Down
5 changes: 5 additions & 0 deletions HetsAPI/Python.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
{- |
Description : HetsAPIs python interface. This module reexports all commands and functionality from the API and hides certain unsupported features from the python interface.
Copyright : (c) Otto-von-Guericke University of Magdeburg
License : GPLv2 or higher, see LICENSE.txt
-}
module HetsAPI.Python (
PyTheory
, PyComorphism
Expand Down
6 changes: 6 additions & 0 deletions python/hets/Comorphism.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
"""
Description : Represents `Logic.Comorphism`
Copyright : (c) Otto-von-Guericke University of Magdeburg
License : GPLv2 or higher, see LICENSE.txt
"""

from .haskell import getComorphismName, PyComorphism


Expand Down
5 changes: 5 additions & 0 deletions python/hets/ConsistencyChecker.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
"""
Description : Represents `Logic.Prover.ConsChecker`
Copyright : (c) Otto-von-Guericke University of Magdeburg
License : GPLv2 or higher, see LICENSE.txt
"""
from .haskell import getConsCheckerName, PyConsChecker

class ConsistencyChecker:
Expand Down
6 changes: 6 additions & 0 deletions python/hets/ConsistencyStatus.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
"""
Description : Represents `Static.DgUtils.ConsStatus`
Copyright : (c) Otto-von-Guericke University of Magdeburg
License : GPLv2 or higher, see LICENSE.txt
"""

from .haskell import ConsStatus, showConsistencyStatus


Expand Down
6 changes: 6 additions & 0 deletions python/hets/DevGraphEdge.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
"""
Description : Represents `Static.DevGraph.DGLinkLab`
Copyright : (c) Otto-von-Guericke University of Magdeburg
License : GPLv2 or higher, see LICENSE.txt
"""

from typing import Tuple, Optional

from .haskell import DGLinkLab, fstOf3, sndOf3, thd
Expand Down
6 changes: 6 additions & 0 deletions python/hets/DevGraphNode.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
"""
Description : Represents `Static.DevGraph.DGNodeLab`
Copyright : (c) Otto-von-Guericke University of Magdeburg
License : GPLv2 or higher, see LICENSE.txt
"""

from typing import Tuple, Optional, List

from .ConsistencyStatus import ConsistencyStatus
Expand Down
5 changes: 5 additions & 0 deletions python/hets/DevelopmentGraph.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
"""
Description : Represents `Static.DevGraph.DGraph`
Copyright : (c) Otto-von-Guericke University of Magdeburg
License : GPLv2 or higher, see LICENSE.txt
"""
from typing import List, Optional

from .DevGraphNode import DevGraphNode
Expand Down
6 changes: 6 additions & 0 deletions python/hets/HsWrapper.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
"""
Description : Defines a common base class for wrapped haskell elements
Copyright : (c) Otto-von-Guericke University of Magdeburg
License : GPLv2 or higher, see LICENSE.txt
"""

from typing import Generic, TypeVar, Optional


Expand Down
6 changes: 6 additions & 0 deletions python/hets/Library.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
"""
Description : Represents `(Common.LibName.LibName, Static.DevGraph.LibEnv)`
Copyright : (c) Otto-von-Guericke University of Magdeburg
License : GPLv2 or higher, see LICENSE.txt
"""

from typing import Optional

from .HsWrapper import HsWrapper, HsHierarchyElement
Expand Down
6 changes: 6 additions & 0 deletions python/hets/ProofState.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
"""
Description : Represents `Proofs.AbstractState.ProofState`
Copyright : (c) Otto-von-Guericke University of Magdeburg
License : GPLv2 or higher, see LICENSE.txt
"""

from typing import List

from .Sentence import Sentence
Expand Down
5 changes: 5 additions & 0 deletions python/hets/ProofStatus.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
"""
Description : Represents `Logic.Prover.ProofStatus`
Copyright : (c) Otto-von-Guericke University of Magdeburg
License : GPLv2 or higher, see LICENSE.txt
"""
from .haskell import ProofStatus as ProofStatusHs, GoalStatus, TimeOfDay, TacticScript

from typing import Any, List
Expand Down
6 changes: 6 additions & 0 deletions python/hets/Prover.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
"""
Description : Represents `Logic.Prover.Prover`
Copyright : (c) Otto-von-Guericke University of Magdeburg
License : GPLv2 or higher, see LICENSE.txt
"""

from typing import Optional, List

from .haskell import getProverName, PyProver, PyComorphism
Expand Down
5 changes: 5 additions & 0 deletions python/hets/Sentence.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
"""
Description : Represents `Logic.Logic.Sentences`
Copyright : (c) Otto-von-Guericke University of Magdeburg
License : GPLv2 or higher, see LICENSE.txt
"""
from typing import Tuple, Callable

from .haskell import fst, snd, Sentence as PySentence
Expand Down
6 changes: 6 additions & 0 deletions python/hets/Theory.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
"""
Description : Represents `Static.GTheory.G_theory`
Copyright : (c) Otto-von-Guericke University of Magdeburg
License : GPLv2 or higher, see LICENSE.txt
"""

from typing import List, Optional, Tuple

from .HsWrapper import HsHierarchyElement
Expand Down
6 changes: 6 additions & 0 deletions python/hets/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
"""
Description : Reexports all modules of the API
Copyright : (c) Otto-von-Guericke University of Magdeburg
License : GPLv2 or higher, see LICENSE.txt
"""

from .Comorphism import *
from .ConsistencyChecker import *
from .DevelopmentGraph import *
Expand Down
7 changes: 7 additions & 0 deletions python/hets/haskell/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
"""
Description : Python interface to the haskell API. Imports all functionionality through hyphen.
Copyright : (c) Otto-von-Guericke University of Magdeburg
License : GPLv2 or higher, see LICENSE.txt
"""

import hyphen

# Some moules in a module hierachy do not exist in haskell. E.g. the module `Driver.Options` in python implies the existence of a module `Driver` which does not have to exist in python. Hence, these modules need to be marked explicitely empty
hyphen.importing.FORCED_EMPTY += ["Driver", "Common", "Static", "Logic", "Proofs", "HetsAPI"]
hyphen.importing.EXPECTED_EMPTY += ["Driver", "Common", "Static", "Logic", "Proofs", "HetsAPI"]

Expand Down
6 changes: 6 additions & 0 deletions python/hets/haskell/__init__.pyi
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
"""
Description : Type hints for the python interface to the haskell API
Copyright : (c) Otto-von-Guericke University of Magdeburg
License : GPLv2 or higher, see LICENSE.txt
"""

from typing import Any, Tuple, TypeVar, Generic, List, Callable

from .OMap import OMap
Expand Down
6 changes: 6 additions & 0 deletions python/hets/result.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
"""
Description : Provides utility functions to interact with `Common.Result.Result` instances
Copyright : (c) Otto-von-Guericke University of Magdeburg
License : GPLv2 or higher, see LICENSE.txt
"""

from typing import Any, TypeVar, Generic
from .haskell import Result, resultToMaybe, fromJust, Just, show

Expand Down

0 comments on commit 0f67b7b

Please sign in to comment.