Simon Willison’s Weblog

Subscribe

Thursday, 19th August 2021

lex.go in json5-go. This archived GitHub repository has a beautifully clean and clear example of a hand-written lexer in Go, for the JSON5 format (JSON + comments + multi-line strings). parser.go is worth a look too.

# 8:15 pm / compilers, go, json

2021 » August

MTWTFSS
      1
2345678
9101112131415
16171819202122
23242526272829
3031