Hello and welcome.
And in this lecture we're going to create identifier notes.
So this is a nice and easy lecture.
So all we're going to do is we're going to say void, parse, identifier, and that's going to take
a history
and we're just going to say assert token peak next type equals no type identifier.
So we assert that there's an identifier as the next token since we're parsing an identifier and then
we just do parse single token to note, simple as that.
And I'll go to your expression single and we're going to create a case token type identifier and we're
going to say parse identifier.
So oh, and we need to pass in the history.
So I know many of you probably tempted to put the case and the token type number because it just calls
that don't don't do that, don't try and optimize it in any way because I'm making the function separate
for a reason.
We're going to be coming back to this in the future and parsing identifiers in many different places
in our program.
So that's why it has a separate function.
So that will now allow us to parse identifiers.
So what are identifiers, variable names, function names, stuff like that.
All of that are identifiers.
So let's just check it compiles.
We're going to go make clean make that compiles absolutely fine.
Thanks for watching.