# std.zig.parser Refactored top level decl parsing · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/4fae452684c108275e9d3003b4927c8c8d41c59b)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 4fae452684c108275e9d3003b4927c8c8d41c59b

Requested commit: 4fae452684c108275e9d3003b4927c8c8d41c59b

Commit: 4fae452684c108275e9d3003b4927c8c8d41c59b

Tree: 1a9e7bba82b6be2a54910776c7ae66af336781b1

Author: Jimmi Holst Christensen

Committer: Jimmi Holst Christensen

## Message

```
std.zig.parser Refactored top level decl parsing
* Now, the arraylist from the root node is passed through the states.
* This allows us to reuse the code for enums, unions and structs

```

## Parents

- [40f35e997a2155df8141ec309e43d6dad9785965](https://git.cafe/gitcafe/zig/commit/40f35e997a2155df8141ec309e43d6dad9785965?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/4fae452684c108275e9d3003b4927c8c8d41c59b?format=markdown)
