Code for the littler Buttons the Computer used in the Turing Machine portion of the book.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
buttons-computer/src/components/Sidebar.svelte

30 lines
354 B

<script>
import { ButtonMachine } from 'buttons';
const ops = ButtonMachine.operations();
const registers = ButtonMachine.register_names();
</script>
<style lang="scss">
</style>
<b>HELP</b>
<pre>
<code>
OPERATIONS:
{#each ops as op}
{ op + '\n'}
{/each}
REGISTERS:
{#each registers as reg}
{ reg + '\n'}
{/each}
GOOD LUCK!
</code>
</pre>