cloudspannerecosystem / memefish

memefish is the foundation to analyze Spanner SQL
https://cloudspannerecosystem.dev/memefish/
MIT License
76 stars 19 forks source link

Add `Parse*` functions for user #147

Closed apstndb closed 3 weeks ago

apstndb commented 3 weeks ago

(It was discussed in GCPUG Slack #memefish channel) Requiring memefish.Parser and memefish.Lexer initialization is not user friendly, so It is better to define top-level global functions for each *Parser methods.

Currently defined methods:

Common signature will be ParseSomething(filepath, s string) (ReturnType, error).