Does a .NET CQL Parser Exist?
Domanda
I haven't been able to find a .NET (c#) CQL parser, despite my best Googling efforts. Anyone have one they'd be willing to share, or know if one exists? Thanks!
Soluzione
If found this project (NCql) written in c#.
Altri suggerimenti
Writing your own parser should be easy enough, at least looking at the syntax. But the parser isn't the hard part -- the real work begins in translating query expressions to equivalent syntax in other data sources.
If I were tasked with finding a solution here, an approach I would explore:
- Write the CQL parser
- Create a translation layer to incorporate LINQ
- Add-in LINQ libraries (LINQ for SQL, LINQ for Objects, LINQ for yada-yada-yada)
As always, your mileage may vary.
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow