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
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Leif Gensert
April 22, 2020
Technology
0
50
Parsers in JavaScript
This is an introduction to parsers in JavaScript with examples of PEG.js
Leif Gensert
April 22, 2020
Tweet
Share
More Decks by Leif Gensert
See All by Leif Gensert
Sorbet - Is it really that tasty?
leifg
0
57
state_of_functional_programming.pdf
leifg
0
53
Bugs - What are they good for
leifg
0
26
Building Event Sourced Apps
leifg
1
840
Unicode Spaß
leifg
0
46
Event Sourcing - The Story Telling of Processes
leifg
1
75
Elixir Releases
leifg
0
140
Introduction to Rails
leifg
0
54
JRuby - The enterprise view
leifg
1
120
Other Decks in Technology
See All in Technology
vLLM Community Meetup Tokyo #3 オープニングトーク
jpishikawa
0
350
2026-03-11 JAWS-UG 茨城 #12 改めてALBを便利に使う
masasuzu
2
380
Postman v12 で変わる API開発ワークフロー (Postman v12 アップデート) / New API development workflow with Postman v12
yokawasa
0
120
組織全体で実現する標準監視設計
yuobayashi
3
490
Sansanでの認証基盤内製化と移行
sansantech
PRO
0
380
社内レビューは機能しているのか
matsuba
0
120
アーキテクチャモダナイゼーションを実現する組織
satohjohn
1
770
わからなくて良いなら、わからなきゃだめなの?
kotaoue
1
340
ナレッジワーク IT情報系キャリア研究セッション資料(情報処理学会 第88回全国大会 )
kworkdev
PRO
0
190
PMとしての意思決定とAI活用状況について
lycorptech_jp
PRO
0
120
楽しく学ぼう!ネットワーク入門
shotashiratori
4
3.2k
DevOpsエージェントで実現する!! AWS Well-Architected(W-A) を実現するシステム設計 / 20260307 Masaki Okuda
shift_evolve
PRO
3
740
Featured
See All Featured
Done Done
chrislema
186
16k
My Coaching Mixtape
mlcsv
0
71
Crafting Experiences
bethany
1
87
Context Engineering - Making Every Token Count
addyosmani
9
750
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
210
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
0
220
How to Talk to Developers About Accessibility
jct
2
150
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
67
37k
Automating Front-end Workflow
addyosmani
1370
200k
Unsuck your backbone
ammeep
672
58k
Faster Mobile Websites
deanohume
310
31k
Embracing the Ebb and Flow
colly
88
5k
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