(self)
| 469 | assert "expect_soft_keyword" not in parser_source |
| 470 | |
| 471 | def test_soft_keywords(self) -> None: |
| 472 | grammar_source = """ |
| 473 | start: expr+ NEWLINE? ENDMARKER |
| 474 | expr: "foo" |
| 475 | """ |
| 476 | grammar = parse_string(grammar_source, GrammarParser) |
| 477 | parser_source = generate_c_parser_source(grammar) |
| 478 | assert "expect_soft_keyword" in parser_source |
| 479 | |
| 480 | def test_soft_keywords_parse(self) -> None: |
| 481 | grammar_source = """ |
nothing calls this directly
no test coverage detected