Загрузка видео...

Не удалось загрузить видео

На главную

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 👀

Похожие видео