cloudwu / sproto

Yet another protocol library like google protocol buffers , but simple and fast.
MIT License
942 stars 253 forks source link

如果Sproto文件写错,如何报出哪行出错。 #90

Closed hataksumo closed 4 years ago

hataksumo commented 4 years ago

如题,有没有办法报出语法出错的行数。 不然实在很头痛。

cloudwu commented 4 years ago

查看 error 信息:https://github.com/cloudwu/sproto/blob/master/sprotoparser.lua#L56