Skip to content

Commit

Permalink
update APL and insert space before prefixes
Browse files Browse the repository at this point in the history
  • Loading branch information
abrudz committed Aug 8, 2021
1 parent a112de4 commit f0a43cf
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
19 changes: 14 additions & 5 deletions vyxal.dyalog
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(,1n,¨)¨elements

tcs(pairs)~⎕UCS 9 32
Loading

0 comments on commit f0a43cf

Please sign in to comment.