Okay, guys, I just want to go to test.
I'd see a moment.
Just go into x equals 583 l semicolon.
That's valid.
What is the L mean?
It means long.
What does F mean?
It means float.
We need to implement these today in this lecture because otherwise we won't be able to compile programs
that do write the numbers like this.
Okay, so just go to Alexa Dot C and in Alexa Dot C, our token make number for value function.
Need some changes to check for these things.
But before we make changes here, we just need to change our token structure.
So just go to compiler dot hedge, scroll up to our token and just by here we're going to say struct
token number and we're going to go numb and then we're going to say init type and we now need to make
the possible types.
So create a new enumeration here.
What are the possible types number type normal, which I guess will be like integers, signed integers,
but we'll just call it normal here.
Number type, long number type, float and number type double.
Okay, there the possible number types we can have by passing these things here.
Right?
So let's go to Lexicon and we're going to have to make some changes to this function now.
So we're going to say init number type equals lexa number type p c and we're going to create that function
now.
So just go in it.
Lexa number type char C So we're just going to go in address equals number type normal and then we're
just going to say if C is equal to capital L rest equals number type long, right else if C is equal
to F, then rest equals number type float OC and then we're just going to return ress just like that.
So if they pass us an L such as 583l will set the type as along they pass this, a float will set it
as a float.
So back to the token make number for value.
We're going to say if the number type does not equal normal number type normal, then we're going to
pop off the next character OC because we only peaked here, right?
So we don't want to just hang in there, right?
So we're going to pop it off.
The final thing to do is to go dot num dot type equals number type just by here when we create the token.
So yeah, that should work.
Now we're able to know if they passed us along or an F or something like that, which will be useful
later on.
So let's just see if it compiles.
We're going to say clear, make, clean, make.
We can see that compiles absolutely fine.
And if you were to put in a D, I mean an L like that, you'll see that it works completely fine.