Hi! I’m working on a custom grammar for a in-house language we’re using for querying data. This language doesn’t care about casing, so writing query {…}
, Query {…}
, qUeRy {…}
, and so on doesn’t make a difference.
I have a working grammar at the moment, but unfortunately is case-sensitive (only recognising Query {…}
). I’ve seen a few answers saying this can be achieve with an “external tokenizer”, but the examples linked to are — in my opinion — quite dense and opaque, hard to grasp what needs to happen.
Is it possible to explain with a simple example, please? I’d be happy to write a blog post and contribute to the documentation once I understand this and can help people out. Thanks!