Writing a Basic Math Expression Parser In JavaScript - Live Coding

preview_player
Показать описание

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

I genuinely cannot thank you enough for this, I was able to implement a parser in my complex numbers library for kotlin using this as a guide, I still need to implement the evaluator but without this material I wouldn't have been able to make it in the first place

KanwiNeKo
Автор

Its a nice explained video for beginner/intermediate programmers. In my opinion the context of an arithmetical calculator would be nice to see in combination with regex and recursion, which would be more complicated and for advanced programmers, but also a friction of the code. So keep in mind folks, its getting easier and easier the more you know. Keep your code clean. Cheers

McDevil
Автор

Great video, you deserve more subscribers and viewers. Please keep teaching low level stuffs in Javascript.

kotimara
Автор

Hello, this is a great piece, thumbs up. please share the code for easier reference

WebDev-hgnr
Автор

Awsome video 👍. Will you post the part 2 of this?

LeonegasHolmes
Автор

I’m trying to implement this in c#. It’s kind of confusing because in javascript you use the object literal notation but in c# you have to predefine every type of object. Also in javascript you can just set values to any type and it works itself out but in c# you have to have the types match. Has anyone successfully gotten it to work and have any tips?

Omlet
Автор

In the "isNumeric" function, you can just parse the string into a number, and check if the result is NaN, if not, the string is a number.
code:
function isNumeric(str) {
return !isNaN(parseInt(str));
}

reversiveark
Автор

I see that there are many positive reactions here, but I am still not satisfied. The video is clearly not well prepared, there are too many jumps from here to there, errors need to be fixed, the code is changed often, etc... I would have liked to receive the perfect codes, if that is possible. Now I was busy coding simultaneously, but because of all the glitches that certainly did not go smoothly. So I stopped watching after 45 minutes. Too bad...

topfishinggadgets
Автор

I'm at 29:00 and spotted a very familiar 5ype of logic error. How long will this one haunt my man?

omg_look_behind_you
welcome to shbcf.ru