aboutsummaryrefslogtreecommitdiff
path: root/dc.bqn
diff options
context:
space:
mode:
Diffstat (limited to 'dc.bqn')
-rwxr-xr-xdc.bqn4
1 files changed, 2 insertions, 2 deletions
diff --git a/dc.bqn b/dc.bqn
index 70f51ff1..ea81ed6b 100755
--- a/dc.bqn
+++ b/dc.bqn
@@ -15,13 +15,13 @@ charSet←∾charGroups←⟨
"_"∾' '(⊢∾+)⌾•UCS•a ⍝ Alphabetic
1↑"𝕨" ⍝ Prefix for input (hack around UTF-16)
" "∾tab ⍝ Whitespace
-⍝ ⍝'" eliminated during tokenization
+⍝ #'" eliminated during tokenization
bF‿bM‿bC‿bI‿bS‿bG‿bB‿bL‿bD‿bN‿bA‿bP‿bW←⊔/≠¨charGroups
vi←+´≠¨8↑charGroups
Tokenize←{
- r←𝕩='⍝'⋄s←/(≠↑2⊸↓)⊸∧𝕩=⊑"'"⋄d←/𝕩='"'
+ r←𝕩='#'⋄s←/(≠↑2⊸↓)⊸∧𝕩=⊑"'"⋄d←/𝕩='"'
g←⍋q←∾⟨ s⋄¯1↓d⋄/r⟩ ⋄q↩g⊏q
e← g⊏∾⟨2+s⋄ 1↓d⋄(⊢-¯1↓0∾⊢)∘⊏⟜(0∾+`r)⊸//(𝕩=nl)∾1⟩
Se←{(⊏˜𝕨)Se 1¨⌾((𝕩/𝕨)⊸⊏)𝕩}⍟{0=⊑⌽𝕩}