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
a [v] parser in zig
a [v] parser in zig, also a shitpost taken too far
[v]: https://vlang.io
@ -9,20 +9,26 @@ for more epic adventures)
## 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
- theres an ast now it looks pretty
- i finally understand recursive descent parsers
## variations
- theres no `for` yet
- `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
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
```
- step 1: dab
- step 2: ```
git clone https://gitdab.com/luna/vig.git
cd vig
zig build install --prefix ~/.local/