From eb3bbecda0624c44898abeb162c554192ef07c64 Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Tue, 7 Jul 2020 18:08:43 -0400 Subject: dzaima/BQN now uses # for comments as well --- spec/dzref | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'spec/dzref') diff --git a/spec/dzref b/spec/dzref index 00b545da..773ea614 100755 --- a/spec/dzref +++ b/spec/dzref @@ -239,11 +239,11 @@ X←Raw←{≤4} names↩((i⊑init)∾(•UCS 48+n)∾i⊑post)⌾(i⊑⊢)names } - ⍝ starting built-ins + # starting built-ins inps←⟨"𝕨 ","𝕨,𝕗","𝕨,𝕘"⟩ ⍎¨names∾¨(nc/("←{⟨"∾∾⟜"⟩ ⋄ ⍎""Using undefined built-in ")¨inps)∾¨∾⟜"""}"¨chr - ⍝ built-in assumptions + # built-in assumptions Mod ← ⍎{𝔽 ((⊑chr⊐𝕨)⊑names) ∾ " ↩ " ∾ 𝕩} ⍎"IsArray ← 0≠≡" @@ -254,18 +254,18 @@ X←Raw←{≤4} '∾' Mod "∾" - ⍝ checks if line is a builtin redefinition + # checks if line is a builtin redefinition E_isdef ← (3≤≠)◶⟨0,∧´⟨chr," ","←↩"⟩∊˜¨3⊸↑⟩ - ⍝ removes comments and replaces built-ins with names + # removes comments and replaces built-ins with names E_proc ← { l←≠chr q←≠`𝕩∊"""'" ⋄ f←¬∨`q¬⊸∧𝕩='#' ∾ (((l×f/q)+chr⊸⊐) (≥⟜l)◶⟨⊑⟜names,⥊∘⊢⟩¨ ⊢) f/𝕩 } - E_redef ← { ⍝ handles [fmd] [←↩] - tail ← E_proc 3↓𝕩 ⍝ must use old def + E_redef ← { # handles [fmd] [←↩] + tail ← E_proc 3↓𝕩 # must use old def Inc ⊑𝕩 (E_proc 1↑𝕩) ∾ "←" ∾ tail } -- cgit v1.2.3