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
Leif Gensert
April 22, 2020
Technology
0
42
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
32
state_of_functional_programming.pdf
leifg
0
39
Bugs - What are they good for
leifg
0
21
Building Event Sourced Apps
leifg
1
800
Unicode Spaß
leifg
0
36
Event Sourcing - The Story Telling of Processes
leifg
1
61
Elixir Releases
leifg
0
140
Introduction to Rails
leifg
0
47
JRuby - The enterprise view
leifg
1
98
Other Decks in Technology
See All in Technology
AIに実況させる / AI Streamer
motemen
3
1.4k
Contract One Dev Group 紹介資料
sansan33
PRO
0
6.1k
技術書典18結果報告
mutsumix
2
190
積み上げられた技術資産と向き合いながら、プロダクトの信頼性をどう守るか
plaidtech
PRO
0
1k
大規模PaaSにおける監視基盤の構築と効率化の道のり
lycorptech_jp
PRO
0
190
人とAIとの共創を夢見た2か月 #共創AIミートアップ / Co-Creation with Keito-chan
kondoyuko
1
730
うちの会社の評判は?SNSの投稿分析にAIを使ってみた
doumae
0
430
ローカル環境でAIを動かそう!
falken
PRO
1
170
“⾞が通れるほど⼤きな”セキュリティーホールを抑えながらログインしたい
taiseiue
0
160
NW運用の工夫と発明
recuraki
1
810
やさしいClaude Code入門
minorun365
PRO
37
27k
Zero Data Loss Autonomous Recovery Service サービス概要
oracle4engineer
PRO
2
7.2k
Featured
See All Featured
Keith and Marios Guide to Fast Websites
keithpitt
411
22k
The Pragmatic Product Professional
lauravandoore
35
6.7k
What's in a price? How to price your products and services
michaelherold
245
12k
Documentation Writing (for coders)
carmenintech
71
4.8k
Thoughts on Productivity
jonyablonski
69
4.7k
A better future with KSS
kneath
239
17k
Optimizing for Happiness
mojombo
378
70k
Building Applications with DynamoDB
mza
95
6.4k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
14
1.5k
Optimising Largest Contentful Paint
csswizardry
37
3.3k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
15
890
Art, The Web, and Tiny UX
lynnandtonic
298
21k
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