MENU

Fun & Interesting

Let's Go(lang): building a parser + validator for Choose Your Own Adventure-style stories

Jeffrey Chupp 1,064 10 months ago
Video Not Working? Fix It Now

Ever wanted to publish your own Choose Your Own Adventure-style book? I did, and I wanted it to be as simple as possible. I'm introducing the Squire format to publish interactive fiction to the Kindle store using free tools and simple Markdown syntax. Learn more about the format here: https://www.squirebooks.com/ In this episode, we build the initial parser and validator in Go. We'll implement this as a CLI and show how to use it within Neovim to get quickfix entries for the errors. Github Repo: https://github.com/semanticart/squire/ You an read my short story here: https://amzn.to/3xaGSsp 00:00:00 - Intro 00:00:30 - Tour of the project 00:01:29 - Squire format overview 00:04:07 - Writing the parser 00:25:12 - Writing the validator 01:07:29 - CLI + Neovim usage

Comment