正在加载视频...

视频加载失败

I wrote a blog post about all the weird programming language syntax I encountered while building a syntax highlighter for llamafile. Read

45,159 次观看 • 1 年前 •via X (Twitter)

10 条评论

Kevin Newton 的头像
Kevin Newton1 年前

@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.

All Talk 的头像
All Talk1 年前

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

Justine Tunney 的头像
Justine Tunney1 年前

@llamafile Ruby.

Aaron Meurer 的头像
Aaron Meurer1 年前

@llamafile Nothing about Python?

Elon Musluk 的头像
Elon Musluk1 年前

@llamafile you are a genius

Asif Shaikat 的头像
Asif Shaikat1 年前

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

morphillogical 🔍 的头像
morphillogical 🔍1 年前

@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)

gerooq 🍉 的头像
gerooq 🍉1 年前

@llamafile ahh i love ape and cosmo

Guilherme Espada 的头像
Guilherme Espada1 年前

@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

Hassan Abedi 📚🌿🦉 的头像
Hassan Abedi 📚🌿🦉1 年前

@llamafile 👀

相关视频