The 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!
HTML, the Programming Language
61–70 of 141 posts
It's "HTML" aka "HTML Turing-complete Markup Language"
Re: HTML, the Programming Language
#62...what in the befunge?
Re: HTML, the Programming Language
#63HTML is nested lists of named nodes with attributes... well.
LISP has done more, with less.
Re: HTML, the Programming Language
#64who can i sue over this? im outraged
Re: HTML, the Programming Language
#65eychtee emel
Re: HTML, the Programming Language
#66Finally I can use html on the frontend and the backend! I am adding a "full-stack html" badge to my Linkedin account right away.
Would an HTML template system written in HTML lang be considered bootstrapping?
Re: HTML, the Programming Language
#67...now I'm starting to wonder whether htmx and _hyperscript are similar to this, just disguised better...? And I was seriously considering using htmx for one thing, too.
Re: HTML, the Programming Language
#68I did something similar for fun in uni: HTPL[1].
Basically, HTML->Python transpiler.
[1]: https://github.com/Koous61/htpl/blob/master/example/scratch....
Re: HTML, the Programming Language
#69...now I'm starting to wonder whether htmx and _hyperscript are similar to this, just disguised better...? And I was seriously considering using htmx for one thing, too.
[dead]
Re: HTML, the Programming Language
#70Interestingly, since it is actually XML, you could take advantage of all the XML features. A XSD may be able to encode the language grammar, and with XSLT, get some nice rendering.
Of course, the parser is just a DOM parser, which is built in browsers and that's what the interpreter is using. But if you want to write a standalone compiler for it, just take an off the shelf XML DOM parser and you have your AST.