update readme

This commit is contained in:
Luna 2019-08-26 14:26:58 -03:00
parent 6a52297cce
commit 5bb57116c0

View file

@ -1,6 +1,6 @@
# vig # vig
a [v] parser in zig a [v] parser in zig, also a shitpost taken too far
[v]: https://vlang.io [v]: https://vlang.io
@ -9,20 +9,26 @@ for more epic adventures)
## why ## why
because i want to learn parsers and what best to do it with a language i'm - because i want to learn parsers and what best to do it with a language i'm
negatively charged towards negatively charged towards
- theres an ast now it looks pretty
- i finally understand recursive descent parsers
## variations ## variations
- theres no `for` yet
- `for` is split between `for` and `loop` because my fucking god i cant stand - `for` is split between `for` and `loop` because my fucking god i cant stand
having *four* different variations of `for`. having *four* different variations of `for` to parse.
- struct initialization is with `Struct.{}`, not `Struct{}`, to remove parsing - struct initialization is with `Struct.{}`, not `Struct{}`, to remove parsing
ambiguities ambiguities (`if a {}` and `a{}`, v solves that with case, e.g structs Must
Be Properly Titled and i can't bother with that)
## how ## how
``` - step 1: dab
- step 2: ```
git clone https://gitdab.com/luna/vig.git git clone https://gitdab.com/luna/vig.git
cd vig cd vig
zig build install --prefix ~/.local/ zig build install --prefix ~/.local/