I'm interested in creating a markup language that converts to HTML. I know HTML is basic, but I think it could be an exciting project. I have some experience with Python, Java, and a bit of Rust. What skills or knowledge should I focus on to get started with this project?
5 Answers
Check out syntax trees and the basics of interpreters and compilers. Understanding how to evaluate expressions and turning them into code is key. Also, some knowledge of programming language design will really help you along the way.
What you're aiming to create is more of a transpiler than a traditional compiler. Essentially, you're converting one form of markup into another, which might simplify your task but also limits its utility.
You'll definitely need to know about parsing and lexing. Simpler implementations for just HTML should be straightforward, but if you want to incorporate scripting or CSS, it could get a bit tricky. CSS is quite complex and essential for web design.
Thanks for the tip! I hadn't considered the complexity of CSS.
It sounds like an interesting project! I worked on something similar where I converted JSON into HTML for easy navigation. Maybe check out some existing tools or libraries that do similar things for inspiration.
To kick off this project, you'll want to grasp the fundamentals of parsers. It's crucial for transforming your markup into HTML. You’re basically building a compiler, which can be done in any programming language you feel comfortable with.

Could you clarify why it's considered a transpiler? Thanks!