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
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Leif Gensert
April 22, 2020
Technology
51
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
59
state_of_functional_programming.pdf
leifg
0
54
Bugs - What are they good for
leifg
0
28
Building Event Sourced Apps
leifg
1
850
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
57
JRuby - The enterprise view
leifg
1
120
Other Decks in Technology
See All in Technology
弁護士ドットコム株式会社 エンジニア職向け 会社紹介資料
bengo4com
1
160
みんなの「データ活用」を支えるストレージ担当から持ち込むAWS活用/コミュニティー設計TIPS 10選~「作れる」より、「続けられる」設計へ~
yoshiki0705
0
250
Contract One Engineering Unit 紹介資料
sansan33
PRO
0
16k
Introduction to Sansan, inc / Sansan Global Development Center, Inc.
sansan33
PRO
0
3.1k
AIでAIをテストする - 音声AIエージェントの品質保証戦略
morix1500
1
120
20260423_執筆の工夫と裏側 技術書の企画から刊行まで / From the planning to the publication of technical book
nash_efp
3
400
はじめての MagicPod生成AI機能 機能紹介から活用方法まで
magicpod
0
100
社内エンジニア勉強会の醍醐味と苦しみ/tamadev
nishiuma
0
210
Choose your own adventure in agentic design patterns
glaforge
0
140
[最強DB講義]推薦システム | 基礎編
recsyslab
PRO
1
170
Bill One 開発エンジニア 紹介資料
sansan33
PRO
6
18k
Oracle AI Database@AWS:サービス概要のご紹介
oracle4engineer
PRO
4
2.4k
Featured
See All Featured
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
118
110k
Evolving SEO for Evolving Search Engines
ryanjones
0
180
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
1
3.5k
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1k
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
280
WCS-LA-2024
lcolladotor
0
540
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
2
760
What does AI have to do with Human Rights?
axbom
PRO
1
2.1k
Paper Plane
katiecoart
PRO
1
49k
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
1
350
AI: The stuff that nobody shows you
jnunemaker
PRO
6
570
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