Today I learnt that cc-mode in Emacs includes a demo of defining a major mode for a small C-like language: https://cc-mode.sourceforge.net/derived-mode-ex.el
"a hypothetical language called C: (pronounced "big nose") that is similar to Java" :)
miniblog.
Related Posts
Caddy is really growing on me. It's nice having a web proxy that includes letsencrypt functionality without any additional configuration.
I've tended to use nginx with a separate letsencrypt setup for projects before, and it's much more awkward.
Today I learnt about Solargraph, an LSP for Ruby which includes an impressive amount of type inference and type checking! https://solargraph.org/guides/type-checking
Type signatures are parsed from doc comments, similar to JSDoc with TypeScript.
Microsoft is writing a PHP parser that handles error recovery well, and the internals docs are really accessible.
It includes a discussion of handling trivia and even some sample parsing code.