-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathprofile_subs
executable file
·39 lines (32 loc) · 1.06 KB
/
profile_subs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/python
while True:
try: e = raw_input()
except EOFError: break
#e = e.replace("","")
#namespaces
e = e.replace("Equivalence","E")
e = e.replace("Order","OR")
e = e.replace("CombinatoryStructure","CS")
e = e.replace("Complexity","C")
e = e.replace("Expressions","EX")
e = e.replace("Thought","T")
e = e.replace("Measures","M")
e = e.replace("RandomChoice","RC")
e = e.replace("TheBrain","TB")
e = e.replace("LambdaTheories::","")
e = e.replace("_private::","")
e = e.replace("nonstd::","")
#templates
e = e.replace("E::Indexing<1, 2, 0>","ALR")
e = e.replace("E::Indexing<2, 1, 1>","ARL")
e = e.replace("_Heap::_Pos<Nodes::ObSignature>","Ob")
e = e.replace("_Heap::_Pos<Nodes::EqnSignature>","Eqn")
e = e.replace("_Heap::_Handle<Nodes::ObSignature>","ObHdl")
e = e.replace("EX::Expr","Expr")
e = e.replace("Handling::Handle<Expr>","ExprHdl")
e = e.replace("Handling::Handle<Statements::Statement>","StmtHdl")
e = e.replace("OR::Ord","Ord")
#parens
e = e.replace(" >",">")
e = e.replace("("," (")
print e