Kiva

Results 88 comments of Kiva

We may need to implement aya-prover/aya-prover-proto#508 first because we should be able to provide completions on incomplete programs IMO

But the biggest problem is that our parser currently cannot recover from parse errors like ```aya def test => zero def a => ``` So when vscode is trying to...

@ice1000 But this does not cover all cases and we need to change every pass in the compiler every time the syntax compromises.

It seems ANTLR4 can recover: https://www.antlr.org/api/Java/org/antlr/v4/runtime/ANTLRErrorStrategy.html

> > It seems ANTLR4 can recover: https://www.antlr.org/api/Java/org/antlr/v4/runtime/ANTLRErrorStrategy.html > > Is that easy to adapt in Aya? It's a little difficult. ANTLR does not have detailed documents on this.

> ![image](https://user-images.githubusercontent.com/16398479/119779848-b81e6300-befb-11eb-92cf-5f2163507292.png) > > Quite easy. I mean these magic functions not the API ![image](https://user-images.githubusercontent.com/9902643/119807584-dabd7580-bf15-11eb-85b3-618e364214bd.png)

Our parsers are decoupled from base module now. Should we introduce a tree-sitter for LSP only?

by using `-v ERROR` ?

~Looks amazing. Let me have a try~

Are we going to have `ayaup` in the future if we use the system package manager now?