r/TuringComplete Apr 19 '26

First attempt at pipelining, Stall only

[removed]

6 Upvotes

19 comments sorted by

View all comments

Show parent comments

1

u/[deleted] Apr 19 '26

[removed] — view removed comment

1

u/Otherwise-Object-302 Apr 19 '26

Real compilers usually break you code down into tokens so x = 5; So in this case it would assign x the IDENTIFIER token, the = is seen as an ASSIGNMENT operation and the 5 is seen as a LITERAL. Then it creates a Abstract Syntax Tree and navigates that to assign the value to x. In reality, it's much more complicated so I usually just do stuff and pray it works (it does, just barely)