Category:AntLang: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 1:
{{language|AntLang}}
 
AntLang is intended to be a practical functional language.
 
ForIt examplehas checka out this simplebuilt-in web-server:
<lang AntLang>serv: httprun[8080; {"HTTP/1.0 OK 200\r\n\r\nDirectory: n<h1>Hello!</h1>" concat str["PATH" elem x]}]</lang>
 
The AntLang-Library-Collection (ALC) makes use of this web-server, so it can be rewritten like this:
Check out [http://ac1235.github.io/ the website], if you are interested.
<lang AntLang>load["handlers.ant"]
serv: httprun[8080; {httpwrap["<h1>Hello!</h1>"]}]</lang>
 
Check outSee [httphttps://ac1235.github.io/ the website], if you are interested.
There also is an [https://ac1235.github.io/tutorial.html AntLang tutorial] on this page.
Anonymous user