Bridgeconn / usfm-grammar

An elegant USFM parser.
https://usfmgrammar.vachanengine.org/
MIT License
36 stars 14 forks source link

Python parser crashes when book code is in lower case #172

Closed kavitharaju closed 2 years ago

kavitharaju commented 2 years ago

In v2.x there was a normalizing step prior to validation with grammar which converted the book code to Upper case using regex.

In 3.x also, we may have to do some similar steps. Also need to handle the cases when grammar completely fails to parse, by sending a error message back.