bilibili / gengine

Other
1.97k stars 275 forks source link

是否考虑更新依赖到“github.com/antlr/antlr4/runtime/Go/antlr/v4”模块 #60

Open Rick-xuy opened 1 year ago

Rick-xuy commented 1 year ago

v1版本的模块“github.com/antlr/antlr4/runtime/Go/antlr”好像已经“deprecated”了 https://github.com/antlr/antlr4/blob/master/runtime/Go/antlr/go.mod

// Deprecated: Please switch to the new v4 module path: github.com/antlr/antlr4/runtime/Go/antlr/v4 - see https://github.com/antlr/antlr4/blob/master/doc/go-target.md
module github.com/antlr/antlr4/runtime/Go/antlr

新的v4模块似乎对Go下游兼容性更好而且能有效避免ambiguous import的问题。

cookedsteak commented 1 year ago

这边fork了一下,升级到了 github.com/antlr4-go/antlr/v4 v4.13.0, 同时修复了一些小问题,添加了逻辑运算符兼容,以及decimal的支持。有需要可以看下。 https://github.com/cookedsteak/gengine/tree/decimal