Introduction to Lexers, Parsers and Interpreters with Chevrotain

Опубликовано: 28 Ноябрь 2022
на канале: Coding With Adam
5,584
123

In this exciting tutorial we are going to learn how to use a library called Chevrotain. It can be used to build parsers/compilers/interpreters for various use cases ranging from simple config files to full fledged programming languages. If you ever wondered how programming languages are built this video is a great introduction. We will start with an intro to lexers(tokenization), parsers, grammars and much more. Then build a simple calculator that uses all these concepts.

Other than building a simple calculator using chevrotain the concepts that we will learn here are those that are used to build programming languages like javascript, .net, SQL and much more. Perhaps one day you will make your own language. There is a lot to understand and this tutorial will give you an idea of further areas to explore.

Github Repo
https://github.com/CodingWith-Adam/ch...

Article:
https://dev.to/codingwithadam/introdu...

Chevrotain
https://chevrotain.io/

#javascript #computerscience #chevrotain

Chapters
0:00 introduction
1:05 Overview of Lexer parser evaluator
1:24 Lexer on diagram
2:29 Parser on diagram
5:00 Interpreter on diagram
5:11 Project setup
6:36 Lexer code
10:47 Parser code
17:00 Interpreter code
22:10 Project summary
22:29 Example of complete calculator


Смотрите видео Introduction to Lexers, Parsers and Interpreters with Chevrotain онлайн, длительностью часов минут секунд в хорошем качестве, которое загружено на канал Coding With Adam 28 Ноябрь 2022. Делитесь ссылкой на видео в социальных сетях, чтобы ваши подписчики и друзья так же посмотрели это видео. Данный видеоклип посмотрели 5,584 раз и оно понравилось 123 посетителям.