Building a compiler in rust: Lexing & parsing arithmetic expressions (Part 1)

preview_player
Показать описание
In this stream we have implemented a basic parser and lexer. We can transform basic arithmetic operations into an ast. Furthermore we have also implemented an ast evaluator, which can evaluate these basic operations. Overall I am pretty happy with our progress and I am looking forward to the next stream, where we will look into implementing variables.

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

I had taken the decision of learning Rust and during my decision making I realised that Compilers are something that can be made with Rust, I had prior interest in System Programming and OS but I had absolutely 0 idea/guidance about how to make such a complex project .THIS video is a BLESSING .Thank you

sujayonly
Автор

I love how you combine c like programming techniques in rust well done.

bufferxaa
Автор

Wonderful presentation. Yes a bigger font would be nice. I'm impressed because when I was your age I had only just learned programming in BASIC and assembler in technical college. Anything like building a compiler/interpreter would have seemed way to advanced for us at the time. Now I'm getting into Rust after years of many other languages I'm looking forward to following your progress here.

heater
Автор

Hey, which color scheme and text font are you using in this video?

orgs
Автор

Hi Julian, thanks for your video. Seems the parser cannot parse the statement 1+ 2*3 - 4 correctly, the divide expression is returned because of its precedence is smaller than multiply

lambertwang
Автор

Peekable<Chars<'a>>
can you explain why we specify a lifetime here. I am new :)
enjoying the video so far! thanks!

mybdretaemch
Автор

would you use Pest as a parser generator instead ?

nnet
Автор

this is terrible, personally i have created windows 11, and unreal engine 5 by myself. i am currently working on a new os from scratch using my own programming language.

gamezuree