Video yükleniyor...
Video Yüklenemedi
I wrote a blog post about all the weird programming language syntax I encountered while building a syntax highlighter for llamafile. Read
45,159 görüntüleme • 1 yıl önce •via X (Twitter)
10 Yorum

@llamafile I wrote the new Ruby parser, and can tell you you're absolutely correct. You can't lex Ruby code without also parsing it. Specifically, the state that controls << vs heredoc is a bit nuts. Lots and lots of edge cases.

@llamafile Your posts are always a delight to read. Are there any languages with underspecified or ambiguous specifications?

@llamafile Ruby.

@llamafile Nothing about Python?

@llamafile you are a genius

@llamafile new version is superfast.............tanks a lot even in my cpu

@llamafile every one of your posts is a joy, and I always learn things, so it's fun that I get to contribute back: `${expr}` syntax is in both JS and TS, (though TS people use it more)

@llamafile ahh i love ape and cosmo

@llamafile One thing I think you might have missed, from a quick skim of the java file, 1. Unicode escapes get handled before parsing, so you can end comments with the unicode escape of "*/" for example. 2. Java has goto style labels for break and continue

@llamafile 👀
