vlang parser in zig
examples | ||
src | ||
.gitignore | ||
build.zig | ||
LICENSE | ||
README.md |
vig
a v parser in zig, also a shitpost taken too far
(will likely be done as a full compiler, who knows, leave a like and subscribe for more epic adventures)
why
- because i want to learn parsers and what best to do it with a language i'm negatively charged towards
- theres an ast now it looks pretty
- i finally understand recursive descent parsers
variations
-
theres no
for
yet -
for
is split betweenfor
andloop
because my fucking god i cant stand having four different variations offor
to parse. -
struct initialization is with
Struct.{}
, notStruct{}
, to remove parsing ambiguities (if a {}
anda{}
, v solves that with case, e.g structs Must Be Properly Titled and i can't bother with that)
how
- step 1: dab
- step 2: ``` git clone https://gitdab.com/luna/vig.git cd vig zig build install --prefix ~/.local/