Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
14
Task/Character-codes/SNOBOL4/character-codes.sno
Normal file
14
Task/Character-codes/SNOBOL4/character-codes.sno
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
define('chr(n)') :(chr_end)
|
||||
chr &alphabet tab(n) len(1) . chr :s(return)f(freturn)
|
||||
chr_end
|
||||
|
||||
define('asc(str)c') :(asc_end)
|
||||
asc str len(1) . c
|
||||
&alphabet break(c) @asc :s(return)f(freturn)
|
||||
asc_end
|
||||
|
||||
* # Test and display
|
||||
output = char(65) ;* Built-in
|
||||
output = chr(65)
|
||||
output = asc('A')
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue