That already exists, though: https://esolangs.org/wiki/HTPL
HTML, the Programming Language
41–50 of 141 posts
Re: HTML, the Programming Language
#42Why is the iterator implemented as a GOTO instead of something like the following? Genuine question, I don't use stack based langs.
> Genuine question, I don't use stack based langs. How and why not? What languages do you use?
Re: HTML, the Programming Language
#43Re: HTML, the Programming Language
#44https://html-lang.org/#example
and live demo at the bottom:
https://html-lang.org/#live-demo
that runs disturbingly fast given the implementation is an inefficient recursive algo
computers are fast
Re: HTML, the Programming Language
#45The best part is how they have to keep repeating "HTML, the programming language" or "HTML, the markup language" everywhere in an attempt to keep things clear :) It would be awesome if they were using some sort of macro system / templating engine to consistently expand {{html_prog}} and {{html_markup}} just to keep it straight while they're writing it. Thank you for posting this, it made my day a bunch brighter!
You could use the tag.
To use it:
Using source to look familiar to bash users because why not.Re: HTML, the Programming Language
#46Re: HTML, the Programming Language
#47Why is the iterator implemented as a GOTO instead of something like the following? Genuine question, I don't use stack based langs.
in designing HTML, the programming language, i tried to stay as close as possible to existing semantics in HTML, the markup language, as I could, so that HTML, the markup language, developers would be comfortable with it in a minimum amount of time most HTML, the markup langauge, developers are used to anchor tags (i.e. the tag) with an href that begins with a hash "jumping" to that element. Therefore I decided to ta…
Either way, fun project!
Re: HTML, the Programming Language
#48The best part is how they have to keep repeating "HTML, the programming language" or "HTML, the markup language" everywhere in an attempt to keep things clear :) It would be awesome if they were using some sort of macro system / templating engine to consistently expand {{html_prog}} and {{html_markup}} just to keep it straight while they're writing it. Thank you for posting this, it made my day a bunch brighter!
> It would be awesome if they were using some sort of macro system / templating engine to consistently expand {{html_prog}} and {{html_markup}} just to keep it straight while they're writing it. You could use the tag. To use it: Using source to look familiar to bash users because why not.
Re: HTML, the Programming Language
#49Earlier quoted context omitted.
in designing HTML, the programming language, i tried to stay as close as possible to existing semantics in HTML, the markup language, as I could, so that HTML, the markup language, developers would be comfortable with it in a minimum amount of time most HTML, the markup langauge, developers are used to anchor tags (i.e. the tag) with an href that begins with a hash "jumping" to that element. Therefore I decided to ta…
I guess I don't really think of HTML as "sequential" but I definitely do think of it as "composed." Meaning I don't often consider siblings elements, but I often do consider parent/child elements. Anchor tags that link to other parts of the doc are relatively rare compared to links to other docs. The only exception is stuff like schema definitions or reusable shapes in SVGs. Either way, fun project!