Writing a JavaScript parser in JavaScript

preview_player
Показать описание
Olie and Peter are back! In this video we finally start writing the long awaited parser logic which can just parse a simple arithmetic operation `+`. It also can parse it not and produce a meaningful error message 😎 The visibly functional style used for expressing the semantic rules (with all those optional return types) is inspired by the approach described in one of the chapters of one of the Haskell books out there (was long ago, will update the note if would recall which one).

Рекомендации по теме
Комментарии
Автор

Peter, I think you've really made things easy for me at least to get me started with building my own compiler. Good stuff I really love this play list. Am hoping you'll extend the language by adding more features.

beldearcher
Автор

Ребята, круто вышло! И первый и второй видос)

boozyByte
Автор

you dont compare literals if you try for numbers, you just compared the ascii value. that way you reduce comparisons down to two over 10

muzzletov
Автор

are you gonna be doing another stream on making a programming language with this?

imlowercasebtwalso
Автор

Молодец, но лучше все таки упорядочить информацию, токенайзер пишется по разному, но в видео самый не оптимальный способ. Видимо перфоманс не был приоритетом. Но с парсером вышло пока не очень, дальше развивать его будет тяжело

ВладимирАкимов-хх
join shbcf.ru