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
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
74
state_of_functional_programming.pdf
leifg
0
67
Bugs - What are they good for
leifg
0
38
Building Event Sourced Apps
leifg
1
870
Unicode Spaß
leifg
0
54
Event Sourcing - The Story Telling of Processes
leifg
1
94
Elixir Releases
leifg
0
150
Introduction to Rails
leifg
0
71
JRuby - The enterprise view
leifg
1
130
Other Decks in Technology
See All in Technology
AI時代におけるプロダクト横断勉強会の設計
zozotech
PRO
0
150
Nav2、Nav3 ... はたまた自作?〜 作って理解する Nav3 の設計意図 〜 / Nav2, Nav3 ... or Build Your Own? — Understanding Nav3's design intent by building it from scratch
yanzm
0
220
【試作】IoT x AIエージェント
happysamurai294
0
100
When Does a Local Qwen Start to Break
morshoto
0
170
KPIだけでは評価できないプロダクトが考えるべき Evalsという第二の評価系 / Beyond KPIs: Evals as a Second Evaluation Framework for Products #PdEConf
aki_iinuma
4
3.5k
AndroidでHDRメディアを「壊さずに」扱う
chigichan24
0
390
なぜSRE・セキュリティは評価されないのか?守りの組織を事業成長エンジンに変えた実践
cscengineer
PRO
3
2.2k
AI活用の現在地、 ちゃんと見えてますか?/XPfest-2026
visional_engineering_and_design
0
140
Backstageでつくるセルフサービスな社内開発基盤
kikunosuke75
1
240
JAWS-UG初心者支部#88わいわい初心塾(夏休みの宿題やったかGit編)
otsuki
0
120
【Oracle AI Spotlight ウェビナー】AWSか、Azureか、Google Cloudか。その議論にオラクルを含める意義。
oracle4engineer
PRO
2
230
AI-DLCって実際どう? 〜聞きたいこと全部聞いてみる〜
news_it_enj
0
220
Featured
See All Featured
How to make the Groovebox
asonas
2
2.4k
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
68
57k
Marketing to machines
jonoalderson
1
5.7k
Music & Morning Musume
bryan
47
7.4k
4 Signs Your Business is Dying
shpigford
187
23k
It's Worth the Effort
3n
188
29k
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
490
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
230
More Than Pixels: Becoming A User Experience Designer
marktimemedia
3
510
Thoughts on Productivity
jonyablonski
76
5.4k
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
500
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
240
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