Bob Apthorpe
Bob Apthorpe
Here's my current modification: ```python def line_tokens(self, line, lineno=None): """Tokenizes text using the groups in the regex specified Iterates through all matches of the regex on `text`, returning the highest...
Would this be added to `_DECLARATION_HANDLERS` and `STMT_HANDLERS` in `parser.py`? Typically it's found in the declaration section but `INCLUDE` can show up almost anywhere - see https://www.ibm.com/docs/en/xffbg/121.141?topic=descriptions-include
I managed to patch around the error by adding ```python def include_stmt(tokens): expect(tokens, 'include') ignore_stmt(tokens) return tokens.produce('include_stmt') ``` (based on `data_stmt()`) then added ```python 'include': include_stmt, ``` to both `_DECLARATION_HANDLERS`...
That's reasonable; that's the interpretation I remember from looking at the spec. I approached this from a "how do I make this error stop" perspective rather than a "how do...