Hacker News new | past | comments | ask | show | jobs | submit login

I'm so impressed. I love the syntax (especially the backslash for lambdas and the colon for symbols). I don't know so many languages but it feels quite "new" to me, which is quite hard given the number of languages out there. I recently thought about building my own language just for fun and it makes me realize how all my ideas are just a copy and mix of other languages. The website is also super clean and beautiful (the font is great). How did you manage to use syntax highlighting for your own language on your website?

One thing: I was confused (as others stated here I think) by the link to Robins Loan's website and thought it was an other article from you about Cassette.

Would you consider writing a blog post about how you created it (building the lexer, parser, etc.)? I would definitely be interested.




Thanks! It's hard to escape making a syntax that's just a blend of other language's syntax elements, but I don't think that's a bad thing. Cassette's syntax is in some ways my favorite elements from other languages, and is most influenced by Elixir.

> How did you manage to use syntax highlighting for your own language on your website?

I used Pandoc to format a markdown file to HTML, which supports custom syntax definitions for code sections. (The relevent flags are `--standalone --template=template.html --syntax-definition=syntax.xml`.) The syntax definition is written in an XML format used by the Kate text editor (from KDE): https://docs.kde.org/stable5/en/kate/katepart/highlight.html

> One thing: I was confused (as others stated here I think) by the link to Robins Loan's website and thought it was an other article from you about Cassette.

Thanks, I'll clarify this or remove it soon.

> Would you consider writing a blog post about how you created it (building the lexer, parser, etc.)? I would definitely be interested.

For sure! I've been meaning to write up some of the technical aspects of the project, so those will appear on the site at some point in the future.


> (the font is great)

I also want to shout-out Berkeley Graphics, who made the monospace font. It's been my favorite for some time now.

https://berkeleygraphics.com


I can second this! I've been using it across my dev setup and window manager for almost a year now and haven't wanted to switch to anything else.

I really like how it looks on your page, it makes the code blocks feel "cozy" for lack of a better word.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: