terrajobst / nquery

NQuery is a relational query engine written in C#. It allows you to execute a SELECT query against .NET objects.
MIT License
72 stars 20 forks source link

Is it possible to handle keywords as identifiers when the syntax clearly requires identifiers? #35

Open dallmair opened 7 years ago

dallmair commented 7 years ago

We stumbled upon this in expressions: Trying to evaluate "availability.to" fails with the error TokenExpected: "Found 'TO' but expected ''." Of course we can write "availability.[to]" to clearly mark "to" as identifier, but it is not very intuitive to users, especially when it's clear that an identifier is required.

So, is it possible to relax the strictness a bit and treat keywords as identifiers when identifiers are expected? Is it desirable to do so in the bigger context of NQuery? What would the consequences be?