[00:00:25] We'll just say it should support variables. That seems like a thing.
>> Steve Kinney: And, all right, so we just need to give it a kind of default ast. That's what we expect to come out like the one that effectively our transformation layer generates.
>> Steve Kinney: So it'll have the type of variableDeclaration.
>> Steve Kinney: The identifier
>> Steve Kinney: is the type identifier.
>> Steve Kinney: Let's get the name of whatever we passed over. In this case it will be x. And then the assignment. This is the Dropbear syntax. This is one we just decided to create in our own transformation layer. And then we've just decided to evaluate an ad.
>> Speaker 2: You've got an indentifier in there.
>> Steve Kinney: Thank you.
>> Steve Kinney: It's only a matter of time. This is why you live code with your friends. We get a value of 2.
>> Steve Kinney: All right, that's also why using constants for these things, where it'll blow up if you spell it wrong rather than fail silently is good, right?
>> Steve Kinney: Cool, the failure is good. Let's go ahead and take a look.
>> Steve Kinney: Cuz right now it's getting an ast node that Babel literally doesn't know anything about.
[00:03:32] So it blowing up is not unexpected. So we have this Babel visitor, and all that we really need to do is add one for our fancy new Dropbear based variable declarations.
>> Steve Kinney: Right, and that will take the enter in this case,
>> Steve Kinney: With the node.
>> Steve Kinney: And we'll say the node, we're just gonna assume they're all let's.
[00:04:04] Cuz our language doesn't enforce constants, so we should make the compilatory language enforce constants.
[00:04:57] We will only have one declarator in there of the type of.
>> Steve Kinney: These are one of those words that I'm convinced that I'll misspell at one point. And that will take our nodes identifier as the id, which is what it uses and Init, which will be out node.assignment, right?
[00:05:40] That was a lot of typing. So we'll find out together.