Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Parsers in JavaScript
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Leif Gensert
April 22, 2020
Technology
50
0
Share
Parsers in JavaScript
This is an introduction to parsers in JavaScript with examples of PEG.js
Leif Gensert
April 22, 2020
More Decks by Leif Gensert
See All by Leif Gensert
Sorbet - Is it really that tasty?
leifg
0
58
state_of_functional_programming.pdf
leifg
0
53
Bugs - What are they good for
leifg
0
27
Building Event Sourced Apps
leifg
1
840
Unicode Spaß
leifg
0
46
Event Sourcing - The Story Telling of Processes
leifg
1
76
Elixir Releases
leifg
0
140
Introduction to Rails
leifg
0
56
JRuby - The enterprise view
leifg
1
120
Other Decks in Technology
See All in Technology
Why we keep our community?
kawaguti
PRO
0
360
Bill One 開発エンジニア 紹介資料
sansan33
PRO
5
18k
How to install a gem
indirect
0
2k
パワポ作るマンをMCP Apps化してみた
iwamot
PRO
0
280
サイボウズ 開発本部採用ピッチ / Cybozu Engineer Recruit
cybozuinsideout
PRO
10
77k
Move Fast and Break Things: 10 in 20
ramimac
0
110
OpenClawでPM業務を自動化
knishioka
2
360
出版記念イベントin大阪「書籍紹介&私がよく使うMCPサーバー3選と社内で安全に活用する方法」
kintotechdev
0
130
Microsoft Fabricで考える非構造データのAI活用
ryomaru0825
0
590
Data Enabling Team立ち上げました
sansantech
PRO
0
170
Zephyr(RTOS)でARMとRISC-Vのコア間通信をしてみた
iotengineer22
0
120
不確実性と戦いながら見積もりを作成するプロセス/mitsumori-process
hirodragon112
1
170
Featured
See All Featured
The #1 spot is gone: here's how to win anyway
tamaranovitovic
2
1k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
199
73k
RailsConf 2023
tenderlove
30
1.4k
How to build a perfect <img>
jonoalderson
1
5.3k
Abbi's Birthday
coloredviolet
2
6.2k
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
390
Speed Design
sergeychernyshev
33
1.6k
We Are The Robots
honzajavorek
0
210
What's in a price? How to price your products and services
michaelherold
247
13k
Music & Morning Musume
bryan
47
7.1k
Scaling GitHub
holman
464
140k
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
170
Transcript
Hello World Parsers with JavaScript
None
Programming === Hiking
Compilers Reverse Engineering Building Developer Tools
You don't Say
Every single program can be reduced to Input Transformation Output
* Former Boss
None
Human Readable Parsing Machine Readable Grammar
None
"in 11 seconds" 11 "11 seconds ago" -11 "in 5
minutes" 300 "in 1 minute and 30 seconds ago" 90 "now" 0
Leif Demo
// 1 + 2 add(1,2) // 1 + (5 -
3) add(1, subtract(5,3)) // 1 + 5 * 3 add(1, multiply(5,3)) // (1 + 5) * 3 multiply(add(1,5), 3)
Leif Demo
What else? Domain Specific NLP Config Files (Re)Implement Programming Languages
Abstract Syntax Tree add(1, multiply(5,3)) { type: "callExpression", name: "add",
arguments: [1 { type: "callExpression", name: "add", arguments: [5, 3] }] }
Why?
Focus!
None
Leif Demo
- Parsers seem intimidating - Helps you understand Recursion -
Try out formulon.io
Shopping List
Back
Back