From 558952fff55813c1ce119ef0eb9292c2bd6c1c22 Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Thu, 2 Sep 2021 16:43:08 -0400 Subject: Update explainer (and recompile plot) with new opcodes --- src/e.bqn | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/e.bqn b/src/e.bqn index 74697dd3..fc8ce8a5 100644 --- a/src/e.bqn +++ b/src/e.bqn @@ -38,11 +38,12 @@ escchars ← """&<>" ⋄ escapes ← ("&"∾∾⟜";")¨"quot"‿"amp"‿"lt"‿ Explain ← { b‿const‿blk‿bdy‿(i‿e)‿tok ← 𝕨 - ba‿bc‿bo‿bp ← '0'-˜⟨ # For each instruction, number of: - "11111000000000010000022000111012" # Arguments - "000//232323223102303200121111100" # Stack values consumed - "11111111111111011101111110111011" # Stack values output - "00000110111001001101000100000000" # Position determiner + ba‿bc‿bo‿bp ← (⊏/¨1⊸↓)'0'-˜⟨ # For each instruction, number of: + "1141131411111113114114144111>111" # Codes until next opcode + "11100011000000000002221100000111" # Arguments + "000111//232323032320000012223111" # Stack values consumed + "11100011111111011111111111111111" # Stack values output + "00000000111111010100000010001000" # Position determiner ⟩ m ← { # Mask of instruction starts n ← (↕≠b)+1+ba(⊣⊏˜≠⊸>×⊢)b -- cgit v1.2.3