Skip to content

Instantly share code, notes, and snippets.

View tbreslein's full-sized avatar

Tommy Breslein tbreslein

View GitHub Profile
@tbreslein
tbreslein / parse_lua_table_to_zig_struct.md
Last active November 13, 2024 15:32
Almost generically parse a lua table into a Zig struct

I have this lua file, and I want to parse the table it returns into a Zig struct as generically as possible:

return {
  symlinks = {
    {
      source = "~/.dotfiles/config/alacritty/alacritty.toml",
      target = "~/.config/alacritty/alacritty.toml",
      force = true,
    },