Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

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

45,159 Aufrufe • vor 1 Jahr •via X (Twitter)

10 Kommentare

Profilbild von Kevin Newton
Kevin Newtonvor 1 Jahr

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

Profilbild von All Talk
All Talkvor 1 Jahr

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

Profilbild von Justine Tunney
Justine Tunneyvor 1 Jahr

@llamafile Ruby.

Profilbild von Aaron Meurer
Aaron Meurervor 1 Jahr

@llamafile Nothing about Python?

Profilbild von Elon Musluk
Elon Muslukvor 1 Jahr

@llamafile you are a genius

Profilbild von Asif Shaikat
Asif Shaikatvor 1 Jahr

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

Profilbild von morphillogical 🔍
morphillogical 🔍vor 1 Jahr

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

Profilbild von gerooq 🍉
gerooq 🍉vor 1 Jahr

@llamafile ahh i love ape and cosmo

Profilbild von Guilherme Espada
Guilherme Espadavor 1 Jahr

@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

Profilbild von Hassan Abedi 📚🌿🦉
Hassan Abedi 📚🌿🦉vor 1 Jahr

@llamafile 👀

Ähnliche Videos