Do not trace concat in prolog
This commit is contained in:
parent
865ba8c3d6
commit
ac457c4359
1 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,5 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import re
|
||||
import sys
|
||||
from typing import List
|
||||
|
@ -21,7 +23,7 @@ def find_functors(prolog_source) -> List[str]:
|
|||
|
||||
# Remove duplicates
|
||||
functors = list(set(functors))
|
||||
|
||||
|
||||
return functors
|
||||
|
||||
|
||||
|
@ -43,6 +45,9 @@ def main():
|
|||
# Find all functors
|
||||
functors = find_functors(prolog_source)
|
||||
|
||||
if "concat" in functors:
|
||||
functors.remove("concat")
|
||||
|
||||
# Output a trace command for each functor
|
||||
print("trace(" + "), trace(".join(functors) + ").")
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue