# std.zig.parser: Refactor round 2 · gitcafe/zig

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

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

Visibility: public

Requested revision: 44c53c9979e30653a109b07ee90ba57e3bc8a7df

Requested commit: 44c53c9979e30653a109b07ee90ba57e3bc8a7df

Commit: 44c53c9979e30653a109b07ee90ba57e3bc8a7df

Tree: 8748ef5e8b26492c7bcb17ba2428a2a4e2f16768

Author: Jimmi Holst Christensen

Committer: Jimmi Holst Christensen

## Message

```
std.zig.parser: Refactor round 2
* More work on ensuring that each state only eat one token
* VarDecl parsing now constructs its node
* Handling all fn parsing in the same case
* Using eatToken instead of getNextToken where possible
* All tokenIdTo* now takes  @TagType(Token.Id)
* Added a createToCtxLiteral function

```

## Parents

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

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