URL parser/URI parser ALGOL68: Difference between revisions

(Created page with "==ALGOL 68 URI Parser== This is a URI parser implemented in Algol 68. The text can be cut-and-paste into an Algol 68 program or saved in a file and included in another program...")
 
 
(2 intermediate revisions by one other user not shown)
Line 1:
==ALGOL 68 URI Parser==
This is a URI parser implemented in Algol 68. The text can be cut-and-paste into an Algol 68 program or saved in a file and included in another program by using the read pragma available in Algol 68, e.g.:
<syntaxhighlight lang="algol">
<lang algol68>PR read "uriParser.a68" PR
URI u := parse uri( "fred://harry@wombat.com" );
...</lang>
</syntaxhighlight>
 
=={{header|ALGOL[[Algol 68}}]]==
<langsyntaxhighlight lang=algol68># URI parser #
 
# MODE returned by the URI parser #
Line 271 ⟶ 273:
 
result
END # parse uri # ;</langsyntaxhighlight>