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
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
110
Other Decks in Technology
See All in Technology
The_Evolution_of_Bits_AI_SRE.pdf
nulabinc
PRO
0
160
僕、S3 シンプルって名前だけど全然シンプルじゃありません よろしくお願いします
yama3133
1
200
猫でもわかるKiro CLI(AI 駆動開発への道編)
kentapapa
0
140
アーキテクチャモダナイゼーションを実現する組織
satohjohn
0
410
マルチアカウント環境でSecurity Hubの運用!導入の苦労とポイント / JAWS DAYS 2026
genda
0
530
聲の形にみるアクセシビリティ
tomokusaba
0
170
GitLab Duo Agent Platform + Local LLMサービングで幸せになりたい
jyoshise
0
290
AI時代のSaaSとETL
shoe116
1
120
[JAWS DAYS 2026]私の AWS DevOps Agent 推しポイント
furuton
0
150
Claude Codeの進化と各機能の活かし方
oikon48
22
12k
JAWS DAYS 2026 楽しく学ぼう!ストレージ 入門
yoshiki0705
2
160
[2026-03-07]あの日諦めたスクラムの答えを僕達はまだ探している。〜守ることと、諦めることと、それでも前に進むチームの話〜
tosite
0
200
Featured
See All Featured
A Soul's Torment
seathinner
5
2.4k
Agile that works and the tools we love
rasmusluckow
331
21k
The SEO identity crisis: Don't let AI make you average
varn
0
410
Raft: Consensus for Rubyists
vanstee
141
7.4k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
Art, The Web, and Tiny UX
lynnandtonic
304
21k
Java REST API Framework Comparison - PWX 2021
mraible
34
9.2k
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
Leo the Paperboy
mayatellez
4
1.5k
Docker and Python
trallard
47
3.8k
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
0
170
Leading Effective Engineering Teams in the AI Era
addyosmani
9
1.7k
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