Tesla Zhang‮

Results 828 comments of Tesla Zhang‮
trafficstars

> Btw how does Arend solve this? Their JB plugin uses a different parser which is fault-tolerant (JB has a general framework for code completion).

> Can we have some fault-tolerant parser? Idk if you could reuse GK

> It seems ANTLR4 can recover: https://www.antlr.org/api/Java/org/antlr/v4/runtime/ANTLRErrorStrategy.html Is that easy to adapt in Aya?

@re-xyr It doesn't have a good Java rewrite/binding yet. JetBrains has a JNI-based binding, but I ain't sure if it's open sourced or "good" in any sense.

> > > 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...

![image](https://user-images.githubusercontent.com/16398479/119779848-b81e6300-befb-11eb-92cf-5f2163507292.png) Quite easy.

![image](https://user-images.githubusercontent.com/16398479/119830817-39431d80-bf2f-11eb-9c7d-d01edabc5d06.png) Maybe we can just look at the default implementation

![image](https://user-images.githubusercontent.com/16398479/119830900-47913980-bf2f-11eb-9da6-b7465ec51d59.png) This is what I see. They're heavily documented

@re-xyr I have no idea. Probably we should only implement file-level incremental compilation as Agda to avoid the complications