src/HOL/Tools/ATP/testoutput.py
author paulson
Thu, 26 May 2005 16:50:07 +0200
changeset 16089 9169bdf930f8
parent 16048 25cb0fe2e1c6
permissions -rwxr-xr-x
trying to set up portable calling sequences for SPASS and tptp2X
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
16048
25cb0fe2e1c6 spassshell and testout.py are used to filter the proof part out of SPASS's
quigley
parents:
diff changeset
     1
#!/usr/bin/python
25cb0fe2e1c6 spassshell and testout.py are used to filter the proof part out of SPASS's
quigley
parents:
diff changeset
     2
25cb0fe2e1c6 spassshell and testout.py are used to filter the proof part out of SPASS's
quigley
parents:
diff changeset
     3
import string
25cb0fe2e1c6 spassshell and testout.py are used to filter the proof part out of SPASS's
quigley
parents:
diff changeset
     4
import sys
25cb0fe2e1c6 spassshell and testout.py are used to filter the proof part out of SPASS's
quigley
parents:
diff changeset
     5
25cb0fe2e1c6 spassshell and testout.py are used to filter the proof part out of SPASS's
quigley
parents:
diff changeset
     6
mode = 0
25cb0fe2e1c6 spassshell and testout.py are used to filter the proof part out of SPASS's
quigley
parents:
diff changeset
     7
try:
25cb0fe2e1c6 spassshell and testout.py are used to filter the proof part out of SPASS's
quigley
parents:
diff changeset
     8
  while 1:
25cb0fe2e1c6 spassshell and testout.py are used to filter the proof part out of SPASS's
quigley
parents:
diff changeset
     9
    line = sys.stdin.readline()
25cb0fe2e1c6 spassshell and testout.py are used to filter the proof part out of SPASS's
quigley
parents:
diff changeset
    10
    words = line.split()
25cb0fe2e1c6 spassshell and testout.py are used to filter the proof part out of SPASS's
quigley
parents:
diff changeset
    11
    if len(words) > 0:
25cb0fe2e1c6 spassshell and testout.py are used to filter the proof part out of SPASS's
quigley
parents:
diff changeset
    12
      if words[0] == "SPASS":
25cb0fe2e1c6 spassshell and testout.py are used to filter the proof part out of SPASS's
quigley
parents:
diff changeset
    13
        mode = 1
25cb0fe2e1c6 spassshell and testout.py are used to filter the proof part out of SPASS's
quigley
parents:
diff changeset
    14
    if line == '':
25cb0fe2e1c6 spassshell and testout.py are used to filter the proof part out of SPASS's
quigley
parents:
diff changeset
    15
      break
25cb0fe2e1c6 spassshell and testout.py are used to filter the proof part out of SPASS's
quigley
parents:
diff changeset
    16
    line = line[:-1]
25cb0fe2e1c6 spassshell and testout.py are used to filter the proof part out of SPASS's
quigley
parents:
diff changeset
    17
    if mode == 1:
25cb0fe2e1c6 spassshell and testout.py are used to filter the proof part out of SPASS's
quigley
parents:
diff changeset
    18
      print line
25cb0fe2e1c6 spassshell and testout.py are used to filter the proof part out of SPASS's
quigley
parents:
diff changeset
    19
except:
25cb0fe2e1c6 spassshell and testout.py are used to filter the proof part out of SPASS's
quigley
parents:
diff changeset
    20
  pass
25cb0fe2e1c6 spassshell and testout.py are used to filter the proof part out of SPASS's
quigley
parents:
diff changeset
    21
#f.close()
25cb0fe2e1c6 spassshell and testout.py are used to filter the proof part out of SPASS's
quigley
parents:
diff changeset
    22
25cb0fe2e1c6 spassshell and testout.py are used to filter the proof part out of SPASS's
quigley
parents:
diff changeset
    23
sys.exit()
25cb0fe2e1c6 spassshell and testout.py are used to filter the proof part out of SPASS's
quigley
parents:
diff changeset
    24