This repository has been archived by the owner on Jan 9, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes based on Hoon style feedback from Fang
- Loading branch information
1 parent
cb2c4c2
commit c274ae7
Showing
1 changed file
with
39 additions
and
39 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,51 +1,51 @@ | ||
|= raw=tape | ||
|= runes=tape | ||
^- tape | ||
=< ?:((valid raw) (turn raw convert) "input contains non-rune characters") | ||
|% | ||
|^ ?: (valid runes) | ||
(turn runes convert) | ||
"input contains non-rune characters" | ||
++ valid | ||
|= x=tape | ||
^- ? | ||
=/ chars (sy x) | ||
(~(all in chars) |=(c=@t (~(has by table) c))) | ||
(~(all in chars) ~(has by table)) | ||
++ convert | ||
|= x=@t | ||
^- @t | ||
=/ r (trip (~(got by table) x)) | ||
(crip r) | ||
(~(got by table) x) | ||
++ table | ||
%- my | ||
:~ :- ' ' 'ace' | ||
:- '|' 'bar' | ||
:- '\\' 'bas' | ||
:- '$' 'buc' | ||
:- '_' 'cab' | ||
:- '%' 'cen' | ||
:- ':' 'col' | ||
:- ',' 'com' | ||
:- '"' 'doq' | ||
:- '.' 'dot' | ||
:- '/' 'fas' | ||
:- '<' 'gal' | ||
:- '>' 'gar' | ||
:- '#' 'hax' | ||
:- '-' 'hep' | ||
:- '{' 'kel' | ||
:- '}' 'ker' | ||
:- '^' 'ket' | ||
:- '+' 'lus' | ||
:- ';' 'mic' | ||
:- '(' 'pal' | ||
:- '&' 'pam' | ||
:- ')' 'par' | ||
:- '@' 'pat' | ||
:- '[' 'sel' | ||
:- ']' 'ser' | ||
:- '~' 'sig' | ||
:- '\'' 'soq' | ||
:- '*' 'tar' | ||
:- '`' 'tic' | ||
:- '=' 'tis' | ||
:- '?' 'wut' | ||
:- '!' 'zap' | ||
:~ [' ' 'ace'] | ||
['|' 'bar'] | ||
['\\' 'bas'] | ||
['$' 'buc'] | ||
['_' 'cab'] | ||
['%' 'cen'] | ||
[':' 'col'] | ||
[',' 'com'] | ||
['"' 'doq'] | ||
['.' 'dot'] | ||
['/' 'fas'] | ||
['<' 'gal'] | ||
['>' 'gar'] | ||
['#' 'hax'] | ||
['-' 'hep'] | ||
['{' 'kel'] | ||
['}' 'ker'] | ||
['^' 'ket'] | ||
['+' 'lus'] | ||
[';' 'mic'] | ||
['(' 'pal'] | ||
['&' 'pam'] | ||
[')' 'par'] | ||
['@' 'pat'] | ||
['[' 'sel'] | ||
[']' 'ser'] | ||
['~' 'sig'] | ||
['\'' 'soq'] | ||
['*' 'tar'] | ||
['`' 'tic'] | ||
['=' 'tis'] | ||
['?' 'wut'] | ||
['!' 'zap'] | ||
== | ||
-- |