Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Parsers in JavaScript
Search
Leif Gensert
April 22, 2020
Technology
58
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
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
76
state_of_functional_programming.pdf
leifg
0
71
Bugs - What are they good for
leifg
0
44
Building Event Sourced Apps
leifg
1
880
Unicode Spaß
leifg
0
56
Event Sourcing - The Story Telling of Processes
leifg
1
96
Elixir Releases
leifg
0
160
Introduction to Rails
leifg
0
77
JRuby - The enterprise view
leifg
1
130
Other Decks in Technology
See All in Technology
雪かき部 #7 もう怖くない!SELECT文!
foursue
0
280
Apache Iceberg が拓く AI 時代のオープンレイクハウス
tomtanaka
0
220
[2026 Oracle Technical Deep Dive] VMwareワークロードのOCI移行実践ガイド - OCVSでの継続利用からOCIコンピュートへの移行まで (2026年9月17日開催)
oracle4engineer
PRO
0
120
自律型 AI をセキュアに実装!Gemini と MIG で作る動的コード実行環境
recruitengineers
PRO
1
200
ファミコンでPHPを動かす / PHP on the Famicom side b
tomzoh
0
130
React Nativeでの OTA Updateって、 どう説明する?
ichiki1023
0
140
今こそ知りたいAmplifyGen2
mkdev10
2
140
HacobuにおけるFDEとは/登壇資料(戸井田 裕貴)
hacobu
PRO
1
770
「とりあえず動く」の先へ。 AI時代のチーム開発と内部設計/2026-slsdays
slsops
0
140
生成AIで高い生産性を求められて、 悩み、乗り越えた話
mot_techtalk
2
120
Deep Data Security 機能解説
oracle4engineer
PRO
2
690
Codex概要
ymiya55
0
350
Featured
See All Featured
Producing Creativity
orderedlist
PRO
348
41k
[RailsConf 2023] Rails as a piece of cake
palkan
59
7.1k
The untapped power of vector embeddings
frankvandijk
2
1.9k
Technical Leadership for Architectural Decision Making
baasie
3
590
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
570
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
3k
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
560
Evolving SEO for Evolving Search Engines
ryanjones
0
310
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
2
6.3k
Bootstrapping a Software Product
garrettdimon
PRO
306
120k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.3k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
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