row: K to endf. gives the error message "error: extraneous input 'f' expecting '.'", which makes sense, but a similar typo row: K to en. gives the very unhelpful message "error: unsupported parser context NoneType". I think the difference is that in the first one, ANTLR is able to parse the row (just with an extraneous character), but in the second one, ANTLR isn't able to recognize the row at all, so something goes wrong in build_ast.
row: K to endf.
gives the error message "error: extraneous input 'f' expecting '.'", which makes sense, but a similar typorow: K to en.
gives the very unhelpful message "error: unsupported parser context NoneType". I think the difference is that in the first one, ANTLR is able to parse the row (just with an extraneous character), but in the second one, ANTLR isn't able to recognize the row at all, so something goes wrong inbuild_ast
.