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
49
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
50
state_of_functional_programming.pdf
leifg
0
47
Bugs - What are they good for
leifg
0
25
Building Event Sourced Apps
leifg
1
830
Unicode Spaß
leifg
0
43
Event Sourcing - The Story Telling of Processes
leifg
1
75
Elixir Releases
leifg
0
140
Introduction to Rails
leifg
0
52
JRuby - The enterprise view
leifg
1
110
Other Decks in Technology
See All in Technology
まだ間に合う! Agentic AI on AWSの現在地をやさしく一挙おさらい
minorun365
19
3.3k
業務の煩悩を祓うAI活用術108選 / AI 108 Usages
smartbank
9
18k
Next.js 16の新機能 Cache Components について
sutetotanuki
0
210
20251219 OpenIDファウンデーション・ジャパン紹介 / OpenID Foundation Japan Intro
oidfj
0
600
Agentic AIが変革するAWSの開発・運用・セキュリティ ~Frontier Agentsを試してみた~ / Agentic AI transforms AWS development, operations, and security I tried Frontier Agents
yuj1osm
0
170
Snowflake Industry Days 2025 Nowcast
takumimukaiyama
0
150
AWSインフルエンサーへの道 / load of AWS Influencer
whisaiyo
0
240
ECS_EKS以外の選択肢_ROSA入門_.pdf
masakiokuda
1
120
The State of AI Agent Security:2025年の総括と2026年の宿題
pict3
0
110
Strands AgentsのEvaluatorをLangfuseにぶち込んでみた
andoooooo_bb
0
100
AWS re:Invent2025最新動向まとめ(NRIグループre:Cap 2025)
gamogamo
0
140
フィッシュボウルのやり方 / How to do a fishbowl
pauli
2
430
Featured
See All Featured
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
61k
Skip the Path - Find Your Career Trail
mkilby
0
28
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
9
1k
Game over? The fight for quality and originality in the time of robots
wayneb77
1
72
A Tale of Four Properties
chriscoyier
162
23k
Done Done
chrislema
186
16k
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
280
Prompt Engineering for Job Search
mfonobong
0
130
Everyday Curiosity
cassininazir
0
110
Practical Orchestrator
shlominoach
190
11k
Balancing Empowerment & Direction
lara
5
830
Darren the Foodie - Storyboard
khoart
PRO
0
2k
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