<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/i-was-wrong-k7m9pnvod" -->

---
title: I was wrong | daily.dev
description: A live coding session where the author works on a parser generator written in Zig, intended to parse ABNF (Augmented Backus-Naur Form) grammars for a SIP...
canonical: https://daily.dev/posts/i-was-wrong-k7m9pnvod
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: I was wrong | daily.dev
og:description: A live coding session where the author works on a parser generator written in Zig, intended to parse ABNF (Augmented Backus-Naur Form) grammars for a SIP...
og:url: https://daily.dev/posts/i-was-wrong-k7m9pnvod
og:image: https://api.daily.dev/og/posts/k7M9PnVOD.png
og:image:alt: I was wrong
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# I was wrong

**[sphaerophoria](https://daily.dev/sources/sphaerophoria)** · 83 min read · 5 upvotes · 0 comments

## Summary

A live coding session where the author works on a parser generator written in Zig, intended to parse ABNF (Augmented Backus-Naur Form) grammars for a SIP client project. The session covers implementing repetition/optional rules, fixing pointer invalidation bugs caused by ArrayList reallocation, and successfully parsing sequences of digits and comments. By the end, the author concludes the parser generator approach is more complex than it's worth and decides to abandon it in favor of hand-writing the parser code, framing the experience as a valuable negative result.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=armNOxWL81s>

## Similar posts on daily.dev

- [Overengineered calculator: Zig \+ QBE](https://daily.dev/posts/overengineered-calculator-zig-qbe-af2hy5t5q) · Lobsters · 0 upvotes · 0 comments
- [Writing a C Compiler, in Zig](https://daily.dev/posts/writing-a-c-compiler-in-zig-39v7trr74) · Hacker News · 0 upvotes · 0 comments

---

Tags: [#zig](https://daily.dev/tags/zig)

[View this post on daily.dev](https://daily.dev/posts/i-was-wrong-k7m9pnvod)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"I was wrong","url":"https://daily.dev/posts/i-was-wrong-k7m9pnvod","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/i-was-wrong-k7m9pnvod"},"datePublished":"2026-04-18T22:53:21.038Z","dateModified":"2026-04-18T22:53:38.592Z","description":"A live coding session where the author works on a parser generator written in Zig, intended to parse ABNF (Augmented Backus-Naur Form) grammars for a SIP...","image":"https://i.ytimg.com/vi/armNOxWL81s/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/armNOxWL81s/sddefault.jpg","isAccessibleForFree":true,"articleSection":"sphaerophoria","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"sphaerophoria","logo":"https://media.daily.dev/image/upload/s--dgPUg2T7--/f_auto/v1728806109/logos/sphaerophoria","url":"https://daily.dev/sources/sphaerophoria"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/i-was-wrong-k7m9pnvod","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":5},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"zig","timeRequired":"PT83M","video":{"@type":"VideoObject","name":"I was wrong","description":"A live coding session where the author works on a parser generator written in Zig, intended to parse ABNF (Augmented Backus-Naur Form) grammars for a SIP...","thumbnailUrl":"https://i.ytimg.com/vi/armNOxWL81s/sddefault.jpg","uploadDate":"2026-04-18T22:53:21.038Z","duration":"PT83M","url":"https://api.daily.dev/r/k7M9PnVOD","embedUrl":"https://www.youtube.com/embed/armNOxWL81s"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"sphaerophoria","item":"https://daily.dev/sources/sphaerophoria"},{"@type":"ListItem","position":3,"name":"I was wrong"}]}
```

