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
55
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
72
state_of_functional_programming.pdf
leifg
0
63
Bugs - What are they good for
leifg
0
34
Building Event Sourced Apps
leifg
1
870
Unicode Spaß
leifg
0
50
Event Sourcing - The Story Telling of Processes
leifg
1
88
Elixir Releases
leifg
0
150
Introduction to Rails
leifg
0
68
JRuby - The enterprise view
leifg
1
130
Other Decks in Technology
See All in Technology
穢れた技術選定について
watany
19
6.1k
仕様駆動開発、導入半年。「本当に速くなってるの?」にデータで答える / AICon2026_hirakawa
rakus_dev
0
320
インシデント事例と パッケージの全量解析に学ぶ ソフトウェアサプライチェーンの守り方 / supply-chain-attack-defense
flatt_security
0
890
kaonavi Tech Night#1
kaonavi
0
160
2026年のソフトウェア開発を考える(2026/07版) / Agentic Software Engineering 2026-07 Findy Edition
twada
PRO
25
11k
AI時代におけるテストの基礎の再定義 / Rethinking the Fundamentals of Testing in the AI Era
mineo_matsuya
13
4.4k
41歳でAWSが好きすぎてITエンジニアになったおっさんの話
yama3133
1
740
AIエージェントがあれば技術書なんてすぐ書けるでしょ→無理でした
watany
2
240
Webアプリ認証の全体像 / The Big Picture of Web App Authentication
kitano_yuichi
1
420
AIコード生成×サプライチェーン攻撃 — PHPが直面する“二重の信頼問題
shinyasaita
0
450
キャリアLT会#3
beli68
2
240
文字起こし基盤の信頼性
abnoumaru
0
120
Featured
See All Featured
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
2.9k
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
190
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
420
Into the Great Unknown - MozCon
thekraken
41
2.6k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
3k
The untapped power of vector embeddings
frankvandijk
2
1.8k
The #1 spot is gone: here's how to win anyway
tamaranovitovic
3
1.1k
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1.2k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
19k
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
330
Unsuck your backbone
ammeep
672
58k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
340
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