-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update APL and insert space before prefixes
- Loading branch information
Showing
2 changed files
with
15 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,18 @@ | ||
(tcs lbs)←pairs Build elements | ||
(tcs lbs)←pairs Build elements;n | ||
⍝ pairs as vector of charvecs from https://gist.github.com/Lyxal/369fafe6097b6b1610e3a700b172ed28 | ||
⍝ elements as vector of charvecs from https://github.com/Vyxal/Vyxal/blob/master/docs/elements.txt | ||
n←⎕UCS 10 | ||
elements←(⊢⊂⍨' '≠⊃¨)elements | ||
elements/⍨←~'<n' '<s'∊⍨2↑∘∊¨elements | ||
elements←'(^\S\S?) ' ' = ([^#]*[^# ])'⎕S'\1'¨elements | ||
lbs←(∊⊃,'\n'∘,¨)¨elements | ||
elements/⍨←' '=2⊃∘∊¨elements | ||
elements←'(^\S) ' ' = ([^#]*[^# ])'⎕S'\1'¨elements | ||
elements↓⍨←¯1 | ||
elements,←⊂'' | ||
elements,←⊂'k' 'constants' | ||
elements,←⊂'∆' 'math functions' | ||
elements,←⊂'ø' 'String functions' | ||
elements,←⊂'Þ' 'Misc. functions' | ||
elements,←⊂'¨' 'Misc. functions' | ||
|
||
tcs←(∊pairs)~⎕UCS 9 10 | ||
lbs←(⊃,1↓∘∊n,¨⊢)¨elements | ||
|
||
tcs←(∊pairs)~⎕UCS 9 32 |
Oops, something went wrong.