Live data from Hacker News

HTML, the Programming Language

html-lang.org

61–70 of 141 posts

Re: HTML, the Programming Language

#61

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!

It's "HTML" aka "HTML Turing-complete Markup Language"

Re: HTML, the Programming Language

#70
Interestingly, 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.

Post reply on HN