diff --git a/Fusion.ruel b/Fusion.ruel index 6b47e5a..34d31e2 100644 --- a/Fusion.ruel +++ b/Fusion.ruel @@ -29,7 +29,6 @@ anyNTAAHead = (NTAAHead0, NTAAHead1) anyhead = (StrongHead, WeakHead, anyNTAAHead) anyWW = (anyhead, WeakWire, StrongWire) anyNTAA = (anyNTAAHead, NTAATail, NTAAWire) -anyNTAAHead = (NTAAHead0, NTAAHead1) # --------------DECA--------------- diff --git a/build_new_rules.py b/build_new_rules.py index 0bc6ba5..02e8e40 100644 --- a/build_new_rules.py +++ b/build_new_rules.py @@ -7,10 +7,11 @@ for file in files: rulename = file.rstrip('.ruel') exitcode = os.system(f'python3 -m nutshell transpile {file} .') + exitcode += os.system(f'mv {rulename}.rule "Rule:{rulename}"') if exitcode > 0: sys.exit(exitcode) - os.system(f'mv {rulename}.rule "Rule:{rulename}"') - + +sys.exit(0) # permanent fix for supposedly/nutshell#20 with open('Rule:Fusion') as f: badtext = f.read() bef, af = badtext.split('var any.0')