Category:Ursa: Difference between revisions

no edit summary
mNo edit summary
No edit summary
Line 7:
 
Ursa uses reverse polish notation for math and functions are simply seperated from their arguments by space characters. This makes implentation of Standard Ursa interpreters since this syntax is easier to write a parser for.
 
===Example Code===
==Raw File Transfer==
This Ursa code opens a port on a remote server, then outputs the specified file to the port.
<lang ursa>
if (< (size args) 4)
out "usage: " args<0> " [server] [port] [file]"
end if
 
decl file f
decl port p
f.open args<3>
p.connect args<1> (int args<2>)
out (f.readall) p
f.close
p.close
</lang>
 
===See Also===
Anonymous user