langs a-z
This commit is contained in:
parent
db842d013d
commit
d066446780
11389 changed files with 98361 additions and 1020 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