Jump to content

Create an HTML table: Difference between revisions

Line 1,017:
=={{header|Forth}}==
Printing out a group of HTML text strings is not difficult for Forth or most computer languages.
Another way to do this in Forth is to extend Forth with new "Wordswords" that output the HTML tags.
TheseThe HTML words will then createoutput HTML code when they are interpreted by Forth. In this example the extended Forth code looks at lot like HTML. :-) The biggest difference is that Forth requires 1 space minimum between each tag.<br>
WithAlthough this example is not a complete HTML interpreter, with these few extensions we can mixdemonstrate themixing HTML tags with Forth code to creategenerate the requiredspecified random numbers in-line with HTML. We could even use Forth to compile tags together and make HTML generating sub-routines like NETREXX does.
 
<lang Forth>include random.hsf
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.