Checkpointing Antlr v4 Pilar parser.