Python Quine Code that operates as specified in Sipser's Introduction to ToC book.
- A outputs code of <B,T>
- B uses <B,T> to get its own code, then figures out <A> from it
- B combines these descriptions as <A,B,T> to get <SELF>, which is its own code
- T can then go on to compute with <SELF>, such as printing it out or calculating its own length
About the Quine Constructor:
- "quineMaker.py" constructs a quine from only <T>
- "quineMaker.py" takes in "quineInput.py" as input and outputs "quineOutput.py"
- The first line in "quineInput.py" is for setting "self_code" to a random value
- "self_code" is what <T> uses to access its own code.
- The standard rules apply. Backslashes and triple quotes are not permitted
- <B> is static. The maker reads <T> to form <A> that outputs <B,T>, then writes <B,T>
Note: There is a much easier way to achieve this by storing <B,T> as a list in <A>. But this code aims to highlight the section where B does work to compute the function that outputs <B,T>.