Open
Description
As pointed out by @stigrj it would be good to not force case-sensitivity upon the users. I see some options:
- Do it before we parse. This would mean the programmer using the library has to normalize the case of the input file and the validation template has to adhere to this choice. That is, if normalization is uppercase (lowercase), then validation template use uppercase (lowercase).
- As point 1, but we add an option to the
api.lex
(and expose it in the CLI). Something like--case upper
(--case lower
) - We let the grammar take care of case normalization, by adding a parse action to the various tokens. In case we change the parsing library (from pyparsing to lark, for example) this will not carry through.
- We do case normalization at the validation level. I think this is the most invasive option of all.