Parsing Structs & Struct / ArrayList Instantiations | Writing a Custom Language Parser in Golang

preview_player
Показать описание
This video covers the parsing of structs and struct/ array instantiations using the pratt parsing technique. This is episode 5 of the language series.

⭐⭐ GitHub Repo ⭐⭐

🔔 JOIN THE COMMUNITY 🔔
----------------------------------------

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

thank you!! I’ve been using this series as a resource to figure out how I want to add modding to a videogame.

PlaguyeAndFriends
Автор

I'm following along implementing this in Rust. I have used enums to model the AST node types, and I already had written a lexer, where I use an FSM instead of regex to tokenize the input. I also have an enum for the different operators, which I use in place of the Token enum in expressions.

It makes it a lot more verbose but also easier to reason about at least for me, notably a simple `if let` makes it trivial to check the kind of Expression for the instantiation parsing.

Thanks for the series, and I hope you continue, I really like your way of explaining stuff and keeping the errors in makes it more relatable (and satisfying when I can spot bugs before you realize they exist) :)

XannMagus
Автор

please continue the series!! this is awesome

Somfic
Автор

Any plans to extend this series, or is it finished? These were the best tutorials I've found and easy to follow when I couldn't understand certain parts from Thorsten's book. Thank you.

tomasbenchat
Автор

Can you please continue this series and could you do some custom data types like a unsigned float or so?

Kuhlklay-nx
Автор

instead of using reflection( which is slow ), you can simply use type assertion.. something like ` foo, ok := bar.(your_type)`

_slier
Автор

he! i'm a fan. do you suggest going for Svelte over react? I've heard it's the best than anything else. for ai based webapps(genai, chatbots..) will this be the best option?

vvvvvvvvvvvvvvvvvvvvvvvvvvvv
Автор

please comeback bro and continue this series

paca
Автор

hello sir, are you planning to continue the series?
It is very helpful from my perspective, cant wait to see assembly generation part!

Kekkek
Автор

What mechanical keyboard were u using in ur previous videos it sounds really nice im interested

marinbb
Автор

Remember the creating your own programming language tutorial with JavaScript and TypeScript? Can you make a tutorial on how to have Deno make it somehow to work, yeah, like the apps you need to get for the playlist

kittyboochanyesbongono
join shbcf.ru