How to Write a Parser in Go
Offered By: Gopher Academy via YouTube
Course Description
Overview
Explore the process of building a parser from scratch using goyacc in this GopherCon 2018 talk by Sugu Sougoumarane. Learn how parsers can be applied to real-life applications beyond language construction. Follow along as Sugu demonstrates leveraging Go's features to create elegant constructs and implement them in a toy application. Discover use cases, understand when to use Go Yak, and gain insights into parser functionality. Examine barebones grammar, error handling, and code generation. Dive into lexical analysis, final implementation, and testing strategies. Conclude with a review of patterns used in the sqlparser module of Vitess, and gain practical knowledge on parser development in Go.
Syllabus
Intro
About me
Use cases
Two easy steps
What is Go Yak
Why use Go Yak
When not to use Go Yak
How a parser works
Barebones grammar
Go Yak
Lex
Error
Generate Go File
Quick Example
Parser
Area
Return Values
Result
Go Code
Lex Analyzer
Final Implementation
Test Function
Test Case
Test Case 2
JSON1 Parser
Back to the slides
Parser Code
Parse Function
Interfaces
Lexical Analyzers
Vitesse Parser
Taught by
Gopher Academy
Related Courses
Разработка веб-сервисов на Go - основы языкаMoscow Institute of Physics and Technology via Coursera Getting Started with Go
University of California, Irvine via Coursera Concurrency in Go
University of California, Irvine via Coursera Functions, Methods, and Interfaces in Go
University of California, Irvine via Coursera Game Thinking: Juego y toma de decisiones
The Pontificia Universidad Javeriana via edX