diff options
| author | Jimmi Holst Christensen <jhc@liab.dk> | 2018-04-12 16:08:23 +0200 |
|---|---|---|
| committer | Jimmi Holst Christensen <jhc@liab.dk> | 2018-04-12 16:08:23 +0200 |
| commit | 206c0b8bdb4838010d6a1e70135134dc3edc6723 (patch) | |
| tree | 3969f0899d9db4a103d11a156bb6de705af6db2e /src/os.cpp | |
| parent | 0d8646d262ebc3db6631421db8fc79228b6622f8 (diff) | |
| download | zig-206c0b8bdb4838010d6a1e70135134dc3edc6723.tar.gz zig-206c0b8bdb4838010d6a1e70135134dc3edc6723.zip | |
std.zig.parser: Refactor, round 1:
* Removed the Optional state
* We now have an OptionalCtx instead of DestPtr
* OptionalCtx simulated return, instead of reverting states
* OptionalCtx is a lot less hacky, but is still a small footgun
* Trying to avoid consuming more than one token per state
* This is required, because of comments
* The C++ compiler allows comments between all tokens
* We therefor have to consume comment tokens between each state
* Reordered states so they are grouped in some logical fasion
Diffstat (limited to 'src/os.cpp')
0 files changed, 0 insertions, 0 deletions
