py$(PYV): remove tox env folder $(@D)/.tox/py$(PYV) py$(PYV): commands[0]> python -m tests --verbose $(@D)/tests/test_cache.py:155: SyntaxWarning: "\w" is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\w"? A raw string is also an option. recursive: /\w{3}\d{3}(?R)?/ Nearley not included. Skipping Nearley tests! (use git submodule to add) Warning: Skipping tests for Nearley grammar imports (js2py required) test_automatic_naming (tests.test_cache.TestCache.test_automatic_naming) ... ok test_cache_grammar (tests.test_cache.TestCache.test_cache_grammar) ... ok test_custom_lexer (tests.test_cache.TestCache.test_custom_lexer) ... ok test_error_message (tests.test_cache.TestCache.test_error_message) ... ok test_imports (tests.test_cache.TestCache.test_imports) ... ok test_inline (tests.test_cache.TestCache.test_inline) ... ok test_options (tests.test_cache.TestCache.test_options) ... ok test_reconstruct (tests.test_cache.TestCache.test_reconstruct) ... ok test_recursive_pattern (tests.test_cache.TestCache.test_recursive_pattern) ... ok test_simple (tests.test_cache.TestCache.test_simple) ... ok test_alias (tests.test_parser.tests.test_parser.TestCykBasic.test_alias) ... ok test_backslash (tests.test_parser.tests.test_parser.TestCykBasic.test_backslash) ... ok test_backslash2 (tests.test_parser.tests.test_parser.TestCykBasic.test_backslash2) ... ok test_basic1 (tests.test_parser.tests.test_parser.TestCykBasic.test_basic1) ... ok test_basic2 (tests.test_parser.tests.test_parser.TestCykBasic.test_basic2) ... ok test_bytes_utf8 (tests.test_parser.tests.test_parser.TestCykBasic.test_bytes_utf8) ... ok test_default_in_treeless_mode (tests.test_parser.tests.test_parser.TestCykBasic.test_default_in_treeless_mode) ... ok test_dont_expand1_lists_with_multiple_items (tests.test_parser.tests.test_parser.TestCykBasic.test_dont_expand1_lists_with_multiple_items) ... ok test_dont_expand1_lists_with_multiple_items_2 (tests.test_parser.tests.test_parser.TestCykBasic.test_dont_expand1_lists_with_multiple_items_2) ... ok test_dynamic_lexer_prioritization (tests.test_parser.tests.test_parser.TestCykBasic.test_dynamic_lexer_prioritization) Tests effect of priority on result ... skipped 'dynamic lexer prioritization differs from basic lexer prioritization' test_empty (tests.test_parser.tests.test_parser.TestCykBasic.test_empty) ... skipped 'No empty rules' test_empty_end (tests.test_parser.tests.test_parser.TestCykBasic.test_empty_end) ... skipped 'Empty rules' test_empty_expand1_list (tests.test_parser.tests.test_parser.TestCykBasic.test_empty_expand1_list) ... skipped 'No empty rules' test_empty_expand1_list_2 (tests.test_parser.tests.test_parser.TestCykBasic.test_empty_expand1_list_2) ... skipped 'No empty rules' test_empty_flatten_list (tests.test_parser.tests.test_parser.TestCykBasic.test_empty_flatten_list) ... skipped 'No empty rules' test_error_with_interactive_parser (tests.test_parser.tests.test_parser.TestCykBasic.test_error_with_interactive_parser) ... skipped 'interactive_parser error handling only works with LALR for now' test_escaped_string (tests.test_parser.tests.test_parser.TestCykBasic.test_escaped_string) Tests common.ESCAPED_STRING ... ok test_expand1_lists_with_one_item (tests.test_parser.tests.test_parser.TestCykBasic.test_expand1_lists_with_one_item) ... ok test_expand1_lists_with_one_item_2 (tests.test_parser.tests.test_parser.TestCykBasic.test_expand1_lists_with_one_item_2) ... ok test_float_without_lexer (tests.test_parser.tests.test_parser.TestCykBasic.test_float_without_lexer) ... ok test_g_regex_flags (tests.test_parser.tests.test_parser.TestCykBasic.test_g_regex_flags) ... ok test_hex_escape (tests.test_parser.tests.test_parser.TestCykBasic.test_hex_escape) ... ok test_hex_literal_range_escape (tests.test_parser.tests.test_parser.TestCykBasic.test_hex_literal_range_escape) ... ok test_ignore (tests.test_parser.tests.test_parser.TestCykBasic.test_ignore) ... skipped 'No empty rules' test_import (tests.test_parser.tests.test_parser.TestCykBasic.test_import) ... ok test_import_errors (tests.test_parser.tests.test_parser.TestCykBasic.test_import_errors) ... ok test_import_rename (tests.test_parser.tests.test_parser.TestCykBasic.test_import_rename) ... ok test_interactive_treeless_transformer (tests.test_parser.tests.test_parser.TestCykBasic.test_interactive_treeless_transformer) ... skipped 'interactive_parser is only implemented for LALR at the moment' test_iter_parse (tests.test_parser.tests.test_parser.TestCykBasic.test_iter_parse) ... skipped 'interactive_parser error handling only works with LALR for now' test_join_regex_flags (tests.test_parser.tests.test_parser.TestCykBasic.test_join_regex_flags) ... ok test_keep_all_tokens (tests.test_parser.tests.test_parser.TestCykBasic.test_keep_all_tokens) ... ok test_lexer_detect_newline_tokens (tests.test_parser.tests.test_parser.TestCykBasic.test_lexer_detect_newline_tokens) ... ok test_lexer_prioritization (tests.test_parser.tests.test_parser.TestCykBasic.test_lexer_prioritization) Tests effect of priority on result ... ok test_line_and_column (tests.test_parser.tests.test_parser.TestCykBasic.test_line_and_column) ... ok test_line_counting (tests.test_parser.tests.test_parser.TestCykBasic.test_line_counting) ... ok test_match_examples (tests.test_parser.tests.test_parser.TestCykBasic.test_match_examples) ... skipped 'match_examples() not supported for CYK/old custom lexer' test_maybe (tests.test_parser.tests.test_parser.TestCykBasic.test_maybe) ... skipped 'No empty rules' test_maybe_placeholders (tests.test_parser.tests.test_parser.TestCykBasic.test_maybe_placeholders) ... skipped 'Empty rules' test_meddling_unused (tests.test_parser.tests.test_parser.TestCykBasic.test_meddling_unused) Unless 'unused' is removed, LALR analysis will fail on reduce-reduce collision ... ok test_multi_import (tests.test_parser.tests.test_parser.TestCykBasic.test_multi_import) ... ok test_multi_start (tests.test_parser.tests.test_parser.TestCykBasic.test_multi_start) ... ok test_on_error_without_lalr (tests.test_parser.tests.test_parser.TestCykBasic.test_on_error_without_lalr) ... ok test_parse_textslice (tests.test_parser.tests.test_parser.TestCykBasic.test_parse_textslice) ... ok test_parse_textslice_fails (tests.test_parser.tests.test_parser.TestCykBasic.test_parse_textslice_fails) ... skipped 'start_pos and end_pos not compatible with old style custom/dynamic lexer ' test_parser_interactive_parser (tests.test_parser.tests.test_parser.TestCykBasic.test_parser_interactive_parser) ... skipped 'interactive_parser is only implemented for LALR at the moment' test_postlex_declare (tests.test_parser.tests.test_parser.TestCykBasic.test_postlex_declare) ... ok test_postlex_indenter (tests.test_parser.tests.test_parser.TestCykBasic.test_postlex_indenter) ... ok test_prioritization (tests.test_parser.tests.test_parser.TestCykBasic.test_prioritization) Tests effect of priority on result ... skipped "Doesn't work for CYK" test_prioritization_sum (tests.test_parser.tests.test_parser.TestCykBasic.test_prioritization_sum) Tests effect of priority on result ... skipped 'Currently only Earley supports priority sum in rules' test_priority_vs_embedded (tests.test_parser.tests.test_parser.TestCykBasic.test_priority_vs_embedded) ... ok test_ranged_repeat_rules (tests.test_parser.tests.test_parser.TestCykBasic.test_ranged_repeat_rules) ... ok test_reduce_cycle (tests.test_parser.tests.test_parser.TestCykBasic.test_reduce_cycle) Tests an edge-condition in the LALR parser, in which a transition state looks exactly like the end state. ... ok test_regex_escaping (tests.test_parser.tests.test_parser.TestCykBasic.test_regex_escaping) ... ok test_regex_quote (tests.test_parser.tests.test_parser.TestCykBasic.test_regex_quote) ... ok test_regex_width_fallback (tests.test_parser.tests.test_parser.TestCykBasic.test_regex_width_fallback) ... ok test_relative_import (tests.test_parser.tests.test_parser.TestCykBasic.test_relative_import) ... ok test_relative_import_of_nested_grammar (tests.test_parser.tests.test_parser.TestCykBasic.test_relative_import_of_nested_grammar) ... ok test_relative_import_preserves_leading_underscore (tests.test_parser.tests.test_parser.TestCykBasic.test_relative_import_preserves_leading_underscore) ... ok test_relative_import_rename (tests.test_parser.tests.test_parser.TestCykBasic.test_relative_import_rename) ... ok test_relative_import_rules_dependencies_imported_only_once (tests.test_parser.tests.test_parser.TestCykBasic.test_relative_import_rules_dependencies_imported_only_once) ... ok test_relative_import_unicode (tests.test_parser.tests.test_parser.TestCykBasic.test_relative_import_unicode) ... ok test_relative_multi_import (tests.test_parser.tests.test_parser.TestCykBasic.test_relative_multi_import) ... ok test_relative_rule_import (tests.test_parser.tests.test_parser.TestCykBasic.test_relative_rule_import) ... ok test_relative_rule_import_drop_ignore (tests.test_parser.tests.test_parser.TestCykBasic.test_relative_rule_import_drop_ignore) ... ok test_relative_rule_import_rename (tests.test_parser.tests.test_parser.TestCykBasic.test_relative_rule_import_rename) ... ok test_relative_rule_import_subrule (tests.test_parser.tests.test_parser.TestCykBasic.test_relative_rule_import_subrule) ... ok test_relative_rule_import_subrule_no_conflict (tests.test_parser.tests.test_parser.TestCykBasic.test_relative_rule_import_subrule_no_conflict) ... ok test_rule_collision (tests.test_parser.tests.test_parser.TestCykBasic.test_rule_collision) ... ok test_rule_collision2 (tests.test_parser.tests.test_parser.TestCykBasic.test_rule_collision2) ... ok test_serialize (tests.test_parser.tests.test_parser.TestCykBasic.test_serialize) ... skipped 'Serialize currently only works for LALR parsers without custom lexers (though it should be easy to extend)' test_special_chars (tests.test_parser.tests.test_parser.TestCykBasic.test_special_chars) ... ok test_stack_for_ebnf (tests.test_parser.tests.test_parser.TestCykBasic.test_stack_for_ebnf) Verify that stack depth isn't an issue for EBNF grammars ... skipped 'Takes forever' test_start (tests.test_parser.tests.test_parser.TestCykBasic.test_start) ... ok test_strict (tests.test_parser.tests.test_parser.TestCykBasic.test_strict) ... skipped 'strict mode is only supported in lalr for now' test_stringio_unicode (tests.test_parser.tests.test_parser.TestCykBasic.test_stringio_unicode) Verify that a Lark can be created from file-like objects other than Python's standard 'file' object ... ok test_templates (tests.test_parser.tests.test_parser.TestCykBasic.test_templates) ... ok test_templates_alias (tests.test_parser.tests.test_parser.TestCykBasic.test_templates_alias) ... ok test_templates_import (tests.test_parser.tests.test_parser.TestCykBasic.test_templates_import) ... ok test_templates_modifiers (tests.test_parser.tests.test_parser.TestCykBasic.test_templates_modifiers) ... ok test_templates_recursion (tests.test_parser.tests.test_parser.TestCykBasic.test_templates_recursion) ... ok test_templates_templates (tests.test_parser.tests.test_parser.TestCykBasic.test_templates_templates) ... ok test_token_collision (tests.test_parser.tests.test_parser.TestCykBasic.test_token_collision) ... ok test_token_collision2 (tests.test_parser.tests.test_parser.TestCykBasic.test_token_collision2) ... ok test_token_collision_WS (tests.test_parser.tests.test_parser.TestCykBasic.test_token_collision_WS) ... ok test_token_ebnf (tests.test_parser.tests.test_parser.TestCykBasic.test_token_ebnf) ... ok test_token_flags (tests.test_parser.tests.test_parser.TestCykBasic.test_token_flags) ... ok test_token_flags2 (tests.test_parser.tests.test_parser.TestCykBasic.test_token_flags2) ... ok test_token_flags3 (tests.test_parser.tests.test_parser.TestCykBasic.test_token_flags3) ... ok test_token_flags_collision (tests.test_parser.tests.test_parser.TestCykBasic.test_token_flags_collision) ... skipped 'Requires context sensitive terminal selection' test_token_flags_verbose (tests.test_parser.tests.test_parser.TestCykBasic.test_token_flags_verbose) ... ok test_token_flags_verbose_multiline (tests.test_parser.tests.test_parser.TestCykBasic.test_token_flags_verbose_multiline) ... ok test_token_not_anon (tests.test_parser.tests.test_parser.TestCykBasic.test_token_not_anon) Tests that "a" is matched as an anonymous token, and not A. ... ok test_twice_empty (tests.test_parser.tests.test_parser.TestCykBasic.test_twice_empty) ... skipped 'No empty rules' test_unicode (tests.test_parser.tests.test_parser.TestCykBasic.test_unicode) ... ok test_unicode2 (tests.test_parser.tests.test_parser.TestCykBasic.test_unicode2) ... ok test_unicode3 (tests.test_parser.tests.test_parser.TestCykBasic.test_unicode3) ... ok test_unicode4 (tests.test_parser.tests.test_parser.TestCykBasic.test_unicode4) ... ok test_unicode_class (tests.test_parser.tests.test_parser.TestCykBasic.test_unicode_class) Tests that character classes from the `regex` module work correctly. ... ok test_unicode_literal_range_escape (tests.test_parser.tests.test_parser.TestCykBasic.test_unicode_literal_range_escape) ... ok test_unicode_literal_range_escape2 (tests.test_parser.tests.test_parser.TestCykBasic.test_unicode_literal_range_escape2) ... ok test_unicode_word (tests.test_parser.tests.test_parser.TestCykBasic.test_unicode_word) Tests that a persistent bug in the `re` module works when `regex` is enabled. ... ok test_utf8 (tests.test_parser.tests.test_parser.TestCykBasic.test_utf8) ... ok test_alias (tests.test_parser.tests.test_parser.TestCykCustom_new.test_alias) ... ok test_backslash (tests.test_parser.tests.test_parser.TestCykCustom_new.test_backslash) ... ok test_backslash2 (tests.test_parser.tests.test_parser.TestCykCustom_new.test_backslash2) ... ok test_basic1 (tests.test_parser.tests.test_parser.TestCykCustom_new.test_basic1) ... ok test_basic2 (tests.test_parser.tests.test_parser.TestCykCustom_new.test_basic2) ... ok test_bytes_utf8 (tests.test_parser.tests.test_parser.TestCykCustom_new.test_bytes_utf8) ... ok test_default_in_treeless_mode (tests.test_parser.tests.test_parser.TestCykCustom_new.test_default_in_treeless_mode) ... ok test_dont_expand1_lists_with_multiple_items (tests.test_parser.tests.test_parser.TestCykCustom_new.test_dont_expand1_lists_with_multiple_items) ... ok test_dont_expand1_lists_with_multiple_items_2 (tests.test_parser.tests.test_parser.TestCykCustom_new.test_dont_expand1_lists_with_multiple_items_2) ... ok test_dynamic_lexer_prioritization (tests.test_parser.tests.test_parser.TestCykCustom_new.test_dynamic_lexer_prioritization) Tests effect of priority on result ... skipped 'dynamic lexer prioritization differs from basic lexer prioritization' test_empty (tests.test_parser.tests.test_parser.TestCykCustom_new.test_empty) ... skipped 'No empty rules' test_empty_end (tests.test_parser.tests.test_parser.TestCykCustom_new.test_empty_end) ... skipped 'Empty rules' test_empty_expand1_list (tests.test_parser.tests.test_parser.TestCykCustom_new.test_empty_expand1_list) ... skipped 'No empty rules' test_empty_expand1_list_2 (tests.test_parser.tests.test_parser.TestCykCustom_new.test_empty_expand1_list_2) ... skipped 'No empty rules' test_empty_flatten_list (tests.test_parser.tests.test_parser.TestCykCustom_new.test_empty_flatten_list) ... skipped 'No empty rules' test_error_with_interactive_parser (tests.test_parser.tests.test_parser.TestCykCustom_new.test_error_with_interactive_parser) ... skipped 'interactive_parser error handling only works with LALR for now' test_escaped_string (tests.test_parser.tests.test_parser.TestCykCustom_new.test_escaped_string) Tests common.ESCAPED_STRING ... ok test_expand1_lists_with_one_item (tests.test_parser.tests.test_parser.TestCykCustom_new.test_expand1_lists_with_one_item) ... ok test_expand1_lists_with_one_item_2 (tests.test_parser.tests.test_parser.TestCykCustom_new.test_expand1_lists_with_one_item_2) ... ok test_float_without_lexer (tests.test_parser.tests.test_parser.TestCykCustom_new.test_float_without_lexer) ... ok test_g_regex_flags (tests.test_parser.tests.test_parser.TestCykCustom_new.test_g_regex_flags) ... ok test_hex_escape (tests.test_parser.tests.test_parser.TestCykCustom_new.test_hex_escape) ... ok test_hex_literal_range_escape (tests.test_parser.tests.test_parser.TestCykCustom_new.test_hex_literal_range_escape) ... ok test_ignore (tests.test_parser.tests.test_parser.TestCykCustom_new.test_ignore) ... skipped 'No empty rules' test_import (tests.test_parser.tests.test_parser.TestCykCustom_new.test_import) ... ok test_import_errors (tests.test_parser.tests.test_parser.TestCykCustom_new.test_import_errors) ... ok test_import_rename (tests.test_parser.tests.test_parser.TestCykCustom_new.test_import_rename) ... ok test_interactive_treeless_transformer (tests.test_parser.tests.test_parser.TestCykCustom_new.test_interactive_treeless_transformer) ... skipped 'interactive_parser is only implemented for LALR at the moment' test_iter_parse (tests.test_parser.tests.test_parser.TestCykCustom_new.test_iter_parse) ... skipped 'interactive_parser error handling only works with LALR for now' test_join_regex_flags (tests.test_parser.tests.test_parser.TestCykCustom_new.test_join_regex_flags) ... ok test_keep_all_tokens (tests.test_parser.tests.test_parser.TestCykCustom_new.test_keep_all_tokens) ... ok test_lexer_detect_newline_tokens (tests.test_parser.tests.test_parser.TestCykCustom_new.test_lexer_detect_newline_tokens) ... ok test_lexer_prioritization (tests.test_parser.tests.test_parser.TestCykCustom_new.test_lexer_prioritization) Tests effect of priority on result ... ok test_line_and_column (tests.test_parser.tests.test_parser.TestCykCustom_new.test_line_and_column) ... ok test_line_counting (tests.test_parser.tests.test_parser.TestCykCustom_new.test_line_counting) ... ok test_match_examples (tests.test_parser.tests.test_parser.TestCykCustom_new.test_match_examples) ... skipped 'match_examples() not supported for CYK/old custom lexer' test_maybe (tests.test_parser.tests.test_parser.TestCykCustom_new.test_maybe) ... skipped 'No empty rules' test_maybe_placeholders (tests.test_parser.tests.test_parser.TestCykCustom_new.test_maybe_placeholders) ... skipped 'Empty rules' test_meddling_unused (tests.test_parser.tests.test_parser.TestCykCustom_new.test_meddling_unused) Unless 'unused' is removed, LALR analysis will fail on reduce-reduce collision ... ok test_multi_import (tests.test_parser.tests.test_parser.TestCykCustom_new.test_multi_import) ... ok test_multi_start (tests.test_parser.tests.test_parser.TestCykCustom_new.test_multi_start) ... ok test_on_error_without_lalr (tests.test_parser.tests.test_parser.TestCykCustom_new.test_on_error_without_lalr) ... ok test_parse_textslice (tests.test_parser.tests.test_parser.TestCykCustom_new.test_parse_textslice) ... ok test_parse_textslice_fails (tests.test_parser.tests.test_parser.TestCykCustom_new.test_parse_textslice_fails) ... skipped 'start_pos and end_pos not compatible with old style custom/dynamic lexer ' test_parser_interactive_parser (tests.test_parser.tests.test_parser.TestCykCustom_new.test_parser_interactive_parser) ... skipped 'interactive_parser is only implemented for LALR at the moment' test_postlex_declare (tests.test_parser.tests.test_parser.TestCykCustom_new.test_postlex_declare) ... ok test_postlex_indenter (tests.test_parser.tests.test_parser.TestCykCustom_new.test_postlex_indenter) ... ok test_prioritization (tests.test_parser.tests.test_parser.TestCykCustom_new.test_prioritization) Tests effect of priority on result ... skipped "Doesn't work for CYK" test_prioritization_sum (tests.test_parser.tests.test_parser.TestCykCustom_new.test_prioritization_sum) Tests effect of priority on result ... skipped 'Currently only Earley supports priority sum in rules' test_priority_vs_embedded (tests.test_parser.tests.test_parser.TestCykCustom_new.test_priority_vs_embedded) ... ok test_ranged_repeat_rules (tests.test_parser.tests.test_parser.TestCykCustom_new.test_ranged_repeat_rules) ... ok test_reduce_cycle (tests.test_parser.tests.test_parser.TestCykCustom_new.test_reduce_cycle) Tests an edge-condition in the LALR parser, in which a transition state looks exactly like the end state. ... ok test_regex_escaping (tests.test_parser.tests.test_parser.TestCykCustom_new.test_regex_escaping) ... ok test_regex_quote (tests.test_parser.tests.test_parser.TestCykCustom_new.test_regex_quote) ... ok test_regex_width_fallback (tests.test_parser.tests.test_parser.TestCykCustom_new.test_regex_width_fallback) ... ok test_relative_import (tests.test_parser.tests.test_parser.TestCykCustom_new.test_relative_import) ... ok test_relative_import_of_nested_grammar (tests.test_parser.tests.test_parser.TestCykCustom_new.test_relative_import_of_nested_grammar) ... ok test_relative_import_preserves_leading_underscore (tests.test_parser.tests.test_parser.TestCykCustom_new.test_relative_import_preserves_leading_underscore) ... ok test_relative_import_rename (tests.test_parser.tests.test_parser.TestCykCustom_new.test_relative_import_rename) ... ok test_relative_import_rules_dependencies_imported_only_once (tests.test_parser.tests.test_parser.TestCykCustom_new.test_relative_import_rules_dependencies_imported_only_once) ... ok test_relative_import_unicode (tests.test_parser.tests.test_parser.TestCykCustom_new.test_relative_import_unicode) ... ok test_relative_multi_import (tests.test_parser.tests.test_parser.TestCykCustom_new.test_relative_multi_import) ... ok test_relative_rule_import (tests.test_parser.tests.test_parser.TestCykCustom_new.test_relative_rule_import) ... ok test_relative_rule_import_drop_ignore (tests.test_parser.tests.test_parser.TestCykCustom_new.test_relative_rule_import_drop_ignore) ... ok test_relative_rule_import_rename (tests.test_parser.tests.test_parser.TestCykCustom_new.test_relative_rule_import_rename) ... ok test_relative_rule_import_subrule (tests.test_parser.tests.test_parser.TestCykCustom_new.test_relative_rule_import_subrule) ... ok test_relative_rule_import_subrule_no_conflict (tests.test_parser.tests.test_parser.TestCykCustom_new.test_relative_rule_import_subrule_no_conflict) ... ok test_rule_collision (tests.test_parser.tests.test_parser.TestCykCustom_new.test_rule_collision) ... ok test_rule_collision2 (tests.test_parser.tests.test_parser.TestCykCustom_new.test_rule_collision2) ... ok test_serialize (tests.test_parser.tests.test_parser.TestCykCustom_new.test_serialize) ... skipped 'Serialize currently only works for LALR parsers without custom lexers (though it should be easy to extend)' test_special_chars (tests.test_parser.tests.test_parser.TestCykCustom_new.test_special_chars) ... ok test_stack_for_ebnf (tests.test_parser.tests.test_parser.TestCykCustom_new.test_stack_for_ebnf) Verify that stack depth isn't an issue for EBNF grammars ... skipped 'Takes forever' test_start (tests.test_parser.tests.test_parser.TestCykCustom_new.test_start) ... ok test_strict (tests.test_parser.tests.test_parser.TestCykCustom_new.test_strict) ... skipped 'strict mode is only supported in lalr for now' test_stringio_unicode (tests.test_parser.tests.test_parser.TestCykCustom_new.test_stringio_unicode) Verify that a Lark can be created from file-like objects other than Python's standard 'file' object ... ok test_templates (tests.test_parser.tests.test_parser.TestCykCustom_new.test_templates) ... ok test_templates_alias (tests.test_parser.tests.test_parser.TestCykCustom_new.test_templates_alias) ... ok test_templates_import (tests.test_parser.tests.test_parser.TestCykCustom_new.test_templates_import) ... ok test_templates_modifiers (tests.test_parser.tests.test_parser.TestCykCustom_new.test_templates_modifiers) ... ok test_templates_recursion (tests.test_parser.tests.test_parser.TestCykCustom_new.test_templates_recursion) ... ok test_templates_templates (tests.test_parser.tests.test_parser.TestCykCustom_new.test_templates_templates) ... ok test_token_collision (tests.test_parser.tests.test_parser.TestCykCustom_new.test_token_collision) ... ok test_token_collision2 (tests.test_parser.tests.test_parser.TestCykCustom_new.test_token_collision2) ... ok test_token_collision_WS (tests.test_parser.tests.test_parser.TestCykCustom_new.test_token_collision_WS) ... ok test_token_ebnf (tests.test_parser.tests.test_parser.TestCykCustom_new.test_token_ebnf) ... ok test_token_flags (tests.test_parser.tests.test_parser.TestCykCustom_new.test_token_flags) ... ok test_token_flags2 (tests.test_parser.tests.test_parser.TestCykCustom_new.test_token_flags2) ... ok test_token_flags3 (tests.test_parser.tests.test_parser.TestCykCustom_new.test_token_flags3) ... ok test_token_flags_collision (tests.test_parser.tests.test_parser.TestCykCustom_new.test_token_flags_collision) ... skipped 'Requires context sensitive terminal selection' test_token_flags_verbose (tests.test_parser.tests.test_parser.TestCykCustom_new.test_token_flags_verbose) ... ok test_token_flags_verbose_multiline (tests.test_parser.tests.test_parser.TestCykCustom_new.test_token_flags_verbose_multiline) ... ok test_token_not_anon (tests.test_parser.tests.test_parser.TestCykCustom_new.test_token_not_anon) Tests that "a" is matched as an anonymous token, and not A. ... ok test_twice_empty (tests.test_parser.tests.test_parser.TestCykCustom_new.test_twice_empty) ... skipped 'No empty rules' test_unicode (tests.test_parser.tests.test_parser.TestCykCustom_new.test_unicode) ... ok test_unicode2 (tests.test_parser.tests.test_parser.TestCykCustom_new.test_unicode2) ... ok test_unicode3 (tests.test_parser.tests.test_parser.TestCykCustom_new.test_unicode3) ... ok test_unicode4 (tests.test_parser.tests.test_parser.TestCykCustom_new.test_unicode4) ... ok test_unicode_class (tests.test_parser.tests.test_parser.TestCykCustom_new.test_unicode_class) Tests that character classes from the `regex` module work correctly. ... ok test_unicode_literal_range_escape (tests.test_parser.tests.test_parser.TestCykCustom_new.test_unicode_literal_range_escape) ... ok test_unicode_literal_range_escape2 (tests.test_parser.tests.test_parser.TestCykCustom_new.test_unicode_literal_range_escape2) ... ok test_unicode_word (tests.test_parser.tests.test_parser.TestCykCustom_new.test_unicode_word) Tests that a persistent bug in the `re` module works when `regex` is enabled. ... ok test_utf8 (tests.test_parser.tests.test_parser.TestCykCustom_new.test_utf8) ... ok test_alias (tests.test_parser.tests.test_parser.TestEarleyBasic.test_alias) ... ok test_backslash (tests.test_parser.tests.test_parser.TestEarleyBasic.test_backslash) ... ok test_backslash2 (tests.test_parser.tests.test_parser.TestEarleyBasic.test_backslash2) ... ok test_basic1 (tests.test_parser.tests.test_parser.TestEarleyBasic.test_basic1) ... ok test_basic2 (tests.test_parser.tests.test_parser.TestEarleyBasic.test_basic2) ... ok test_bytes_utf8 (tests.test_parser.tests.test_parser.TestEarleyBasic.test_bytes_utf8) ... ok test_default_in_treeless_mode (tests.test_parser.tests.test_parser.TestEarleyBasic.test_default_in_treeless_mode) ... skipped 'Tree-less mode is not supported in earley' test_dont_expand1_lists_with_multiple_items (tests.test_parser.tests.test_parser.TestEarleyBasic.test_dont_expand1_lists_with_multiple_items) ... ok test_dont_expand1_lists_with_multiple_items_2 (tests.test_parser.tests.test_parser.TestEarleyBasic.test_dont_expand1_lists_with_multiple_items_2) ... ok test_dynamic_lexer_prioritization (tests.test_parser.tests.test_parser.TestEarleyBasic.test_dynamic_lexer_prioritization) Tests effect of priority on result ... skipped 'dynamic lexer prioritization differs from basic lexer prioritization' test_empty (tests.test_parser.tests.test_parser.TestEarleyBasic.test_empty) ... ok test_empty_end (tests.test_parser.tests.test_parser.TestEarleyBasic.test_empty_end) ... ok test_empty_expand1_list (tests.test_parser.tests.test_parser.TestEarleyBasic.test_empty_expand1_list) ... ok test_empty_expand1_list_2 (tests.test_parser.tests.test_parser.TestEarleyBasic.test_empty_expand1_list_2) ... ok test_empty_flatten_list (tests.test_parser.tests.test_parser.TestEarleyBasic.test_empty_flatten_list) ... ok test_error_with_interactive_parser (tests.test_parser.tests.test_parser.TestEarleyBasic.test_error_with_interactive_parser) ... skipped 'interactive_parser error handling only works with LALR for now' test_escaped_string (tests.test_parser.tests.test_parser.TestEarleyBasic.test_escaped_string) Tests common.ESCAPED_STRING ... ok test_expand1_lists_with_one_item (tests.test_parser.tests.test_parser.TestEarleyBasic.test_expand1_lists_with_one_item) ... ok test_expand1_lists_with_one_item_2 (tests.test_parser.tests.test_parser.TestEarleyBasic.test_expand1_lists_with_one_item_2) ... ok test_float_without_lexer (tests.test_parser.tests.test_parser.TestEarleyBasic.test_float_without_lexer) ... ok test_g_regex_flags (tests.test_parser.tests.test_parser.TestEarleyBasic.test_g_regex_flags) ... ok test_hex_escape (tests.test_parser.tests.test_parser.TestEarleyBasic.test_hex_escape) ... ok test_hex_literal_range_escape (tests.test_parser.tests.test_parser.TestEarleyBasic.test_hex_literal_range_escape) ... ok test_ignore (tests.test_parser.tests.test_parser.TestEarleyBasic.test_ignore) ... ok test_import (tests.test_parser.tests.test_parser.TestEarleyBasic.test_import) ... ok test_import_errors (tests.test_parser.tests.test_parser.TestEarleyBasic.test_import_errors) ... ok test_import_rename (tests.test_parser.tests.test_parser.TestEarleyBasic.test_import_rename) ... ok test_interactive_treeless_transformer (tests.test_parser.tests.test_parser.TestEarleyBasic.test_interactive_treeless_transformer) ... skipped 'interactive_parser is only implemented for LALR at the moment' test_iter_parse (tests.test_parser.tests.test_parser.TestEarleyBasic.test_iter_parse) ... skipped 'interactive_parser error handling only works with LALR for now' test_join_regex_flags (tests.test_parser.tests.test_parser.TestEarleyBasic.test_join_regex_flags) ... ok test_keep_all_tokens (tests.test_parser.tests.test_parser.TestEarleyBasic.test_keep_all_tokens) ... ok test_lexer_detect_newline_tokens (tests.test_parser.tests.test_parser.TestEarleyBasic.test_lexer_detect_newline_tokens) ... ok test_lexer_prioritization (tests.test_parser.tests.test_parser.TestEarleyBasic.test_lexer_prioritization) Tests effect of priority on result ... ok test_line_and_column (tests.test_parser.tests.test_parser.TestEarleyBasic.test_line_and_column) ... ok test_line_counting (tests.test_parser.tests.test_parser.TestEarleyBasic.test_line_counting) ... ok test_match_examples (tests.test_parser.tests.test_parser.TestEarleyBasic.test_match_examples) ... ok test_maybe (tests.test_parser.tests.test_parser.TestEarleyBasic.test_maybe) ... ok test_maybe_placeholders (tests.test_parser.tests.test_parser.TestEarleyBasic.test_maybe_placeholders) ... ok test_meddling_unused (tests.test_parser.tests.test_parser.TestEarleyBasic.test_meddling_unused) Unless 'unused' is removed, LALR analysis will fail on reduce-reduce collision ... ok test_multi_import (tests.test_parser.tests.test_parser.TestEarleyBasic.test_multi_import) ... ok test_multi_start (tests.test_parser.tests.test_parser.TestEarleyBasic.test_multi_start) ... ok test_on_error_without_lalr (tests.test_parser.tests.test_parser.TestEarleyBasic.test_on_error_without_lalr) ... ok test_parse_textslice (tests.test_parser.tests.test_parser.TestEarleyBasic.test_parse_textslice) ... ok test_parse_textslice_fails (tests.test_parser.tests.test_parser.TestEarleyBasic.test_parse_textslice_fails) ... skipped 'start_pos and end_pos not compatible with old style custom/dynamic lexer ' test_parser_interactive_parser (tests.test_parser.tests.test_parser.TestEarleyBasic.test_parser_interactive_parser) ... skipped 'interactive_parser is only implemented for LALR at the moment' test_postlex_declare (tests.test_parser.tests.test_parser.TestEarleyBasic.test_postlex_declare) ... ok test_postlex_indenter (tests.test_parser.tests.test_parser.TestEarleyBasic.test_postlex_indenter) ... ok test_prioritization (tests.test_parser.tests.test_parser.TestEarleyBasic.test_prioritization) Tests effect of priority on result ... ok test_prioritization_sum (tests.test_parser.tests.test_parser.TestEarleyBasic.test_prioritization_sum) Tests effect of priority on result ... skipped 'Currently only Earley supports priority sum in rules' test_priority_vs_embedded (tests.test_parser.tests.test_parser.TestEarleyBasic.test_priority_vs_embedded) ... ok test_ranged_repeat_rules (tests.test_parser.tests.test_parser.TestEarleyBasic.test_ranged_repeat_rules) ... ok test_reduce_cycle (tests.test_parser.tests.test_parser.TestEarleyBasic.test_reduce_cycle) Tests an edge-condition in the LALR parser, in which a transition state looks exactly like the end state. ... ok test_regex_escaping (tests.test_parser.tests.test_parser.TestEarleyBasic.test_regex_escaping) ... ok test_regex_quote (tests.test_parser.tests.test_parser.TestEarleyBasic.test_regex_quote) ... ok test_regex_width_fallback (tests.test_parser.tests.test_parser.TestEarleyBasic.test_regex_width_fallback) ... ok test_relative_import (tests.test_parser.tests.test_parser.TestEarleyBasic.test_relative_import) ... ok test_relative_import_of_nested_grammar (tests.test_parser.tests.test_parser.TestEarleyBasic.test_relative_import_of_nested_grammar) ... ok test_relative_import_preserves_leading_underscore (tests.test_parser.tests.test_parser.TestEarleyBasic.test_relative_import_preserves_leading_underscore) ... ok test_relative_import_rename (tests.test_parser.tests.test_parser.TestEarleyBasic.test_relative_import_rename) ... ok test_relative_import_rules_dependencies_imported_only_once (tests.test_parser.tests.test_parser.TestEarleyBasic.test_relative_import_rules_dependencies_imported_only_once) ... ok test_relative_import_unicode (tests.test_parser.tests.test_parser.TestEarleyBasic.test_relative_import_unicode) ... ok test_relative_multi_import (tests.test_parser.tests.test_parser.TestEarleyBasic.test_relative_multi_import) ... ok test_relative_rule_import (tests.test_parser.tests.test_parser.TestEarleyBasic.test_relative_rule_import) ... ok test_relative_rule_import_drop_ignore (tests.test_parser.tests.test_parser.TestEarleyBasic.test_relative_rule_import_drop_ignore) ... ok test_relative_rule_import_rename (tests.test_parser.tests.test_parser.TestEarleyBasic.test_relative_rule_import_rename) ... ok test_relative_rule_import_subrule (tests.test_parser.tests.test_parser.TestEarleyBasic.test_relative_rule_import_subrule) ... ok test_relative_rule_import_subrule_no_conflict (tests.test_parser.tests.test_parser.TestEarleyBasic.test_relative_rule_import_subrule_no_conflict) ... ok test_rule_collision (tests.test_parser.tests.test_parser.TestEarleyBasic.test_rule_collision) ... ok test_rule_collision2 (tests.test_parser.tests.test_parser.TestEarleyBasic.test_rule_collision2) ... ok test_serialize (tests.test_parser.tests.test_parser.TestEarleyBasic.test_serialize) ... skipped 'Serialize currently only works for LALR parsers without custom lexers (though it should be easy to extend)' test_special_chars (tests.test_parser.tests.test_parser.TestEarleyBasic.test_special_chars) ... ok test_stack_for_ebnf (tests.test_parser.tests.test_parser.TestEarleyBasic.test_stack_for_ebnf) Verify that stack depth isn't an issue for EBNF grammars ... ok test_start (tests.test_parser.tests.test_parser.TestEarleyBasic.test_start) ... ok test_strict (tests.test_parser.tests.test_parser.TestEarleyBasic.test_strict) ... skipped 'strict mode is only supported in lalr for now' test_stringio_unicode (tests.test_parser.tests.test_parser.TestEarleyBasic.test_stringio_unicode) Verify that a Lark can be created from file-like objects other than Python's standard 'file' object ... ok test_templates (tests.test_parser.tests.test_parser.TestEarleyBasic.test_templates) ... ok test_templates_alias (tests.test_parser.tests.test_parser.TestEarleyBasic.test_templates_alias) ... ok test_templates_import (tests.test_parser.tests.test_parser.TestEarleyBasic.test_templates_import) ... ok test_templates_modifiers (tests.test_parser.tests.test_parser.TestEarleyBasic.test_templates_modifiers) ... ok test_templates_recursion (tests.test_parser.tests.test_parser.TestEarleyBasic.test_templates_recursion) ... ok test_templates_templates (tests.test_parser.tests.test_parser.TestEarleyBasic.test_templates_templates) ... ok test_token_collision (tests.test_parser.tests.test_parser.TestEarleyBasic.test_token_collision) ... ok test_token_collision2 (tests.test_parser.tests.test_parser.TestEarleyBasic.test_token_collision2) ... ok test_token_collision_WS (tests.test_parser.tests.test_parser.TestEarleyBasic.test_token_collision_WS) ... ok test_token_ebnf (tests.test_parser.tests.test_parser.TestEarleyBasic.test_token_ebnf) ... ok test_token_flags (tests.test_parser.tests.test_parser.TestEarleyBasic.test_token_flags) ... ok test_token_flags2 (tests.test_parser.tests.test_parser.TestEarleyBasic.test_token_flags2) ... ok test_token_flags3 (tests.test_parser.tests.test_parser.TestEarleyBasic.test_token_flags3) ... ok test_token_flags_collision (tests.test_parser.tests.test_parser.TestEarleyBasic.test_token_flags_collision) ... skipped 'Requires context sensitive terminal selection' test_token_flags_verbose (tests.test_parser.tests.test_parser.TestEarleyBasic.test_token_flags_verbose) ... ok test_token_flags_verbose_multiline (tests.test_parser.tests.test_parser.TestEarleyBasic.test_token_flags_verbose_multiline) ... ok test_token_not_anon (tests.test_parser.tests.test_parser.TestEarleyBasic.test_token_not_anon) Tests that "a" is matched as an anonymous token, and not A. ... ok test_twice_empty (tests.test_parser.tests.test_parser.TestEarleyBasic.test_twice_empty) ... ok test_unicode (tests.test_parser.tests.test_parser.TestEarleyBasic.test_unicode) ... ok test_unicode2 (tests.test_parser.tests.test_parser.TestEarleyBasic.test_unicode2) ... ok test_unicode3 (tests.test_parser.tests.test_parser.TestEarleyBasic.test_unicode3) ... ok test_unicode4 (tests.test_parser.tests.test_parser.TestEarleyBasic.test_unicode4) ... ok test_unicode_class (tests.test_parser.tests.test_parser.TestEarleyBasic.test_unicode_class) Tests that character classes from the `regex` module work correctly. ... ok test_unicode_literal_range_escape (tests.test_parser.tests.test_parser.TestEarleyBasic.test_unicode_literal_range_escape) ... ok test_unicode_literal_range_escape2 (tests.test_parser.tests.test_parser.TestEarleyBasic.test_unicode_literal_range_escape2) ... ok test_unicode_word (tests.test_parser.tests.test_parser.TestEarleyBasic.test_unicode_word) Tests that a persistent bug in the `re` module works when `regex` is enabled. ... ok test_utf8 (tests.test_parser.tests.test_parser.TestEarleyBasic.test_utf8) ... ok test_alias (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_alias) ... ok test_backslash (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_backslash) ... ok test_backslash2 (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_backslash2) ... ok test_basic1 (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_basic1) ... ok test_basic2 (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_basic2) ... ok test_bytes_utf8 (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_bytes_utf8) ... ok test_default_in_treeless_mode (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_default_in_treeless_mode) ... skipped 'Tree-less mode is not supported in earley' test_dont_expand1_lists_with_multiple_items (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_dont_expand1_lists_with_multiple_items) ... ok test_dont_expand1_lists_with_multiple_items_2 (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_dont_expand1_lists_with_multiple_items_2) ... ok test_dynamic_lexer_prioritization (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_dynamic_lexer_prioritization) Tests effect of priority on result ... skipped 'dynamic lexer prioritization differs from basic lexer prioritization' test_empty (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_empty) ... ok test_empty_end (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_empty_end) ... ok test_empty_expand1_list (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_empty_expand1_list) ... ok test_empty_expand1_list_2 (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_empty_expand1_list_2) ... ok test_empty_flatten_list (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_empty_flatten_list) ... ok test_error_with_interactive_parser (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_error_with_interactive_parser) ... skipped 'interactive_parser error handling only works with LALR for now' test_escaped_string (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_escaped_string) Tests common.ESCAPED_STRING ... ok test_expand1_lists_with_one_item (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_expand1_lists_with_one_item) ... ok test_expand1_lists_with_one_item_2 (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_expand1_lists_with_one_item_2) ... ok test_float_without_lexer (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_float_without_lexer) ... ok test_g_regex_flags (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_g_regex_flags) ... ok test_hex_escape (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_hex_escape) ... ok test_hex_literal_range_escape (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_hex_literal_range_escape) ... ok test_ignore (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_ignore) ... ok test_import (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_import) ... ok test_import_errors (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_import_errors) ... ok test_import_rename (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_import_rename) ... ok test_interactive_treeless_transformer (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_interactive_treeless_transformer) ... skipped 'interactive_parser is only implemented for LALR at the moment' test_iter_parse (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_iter_parse) ... skipped 'interactive_parser error handling only works with LALR for now' test_join_regex_flags (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_join_regex_flags) ... ok test_keep_all_tokens (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_keep_all_tokens) ... ok test_lexer_detect_newline_tokens (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_lexer_detect_newline_tokens) ... ok test_lexer_prioritization (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_lexer_prioritization) Tests effect of priority on result ... ok test_line_and_column (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_line_and_column) ... ok test_line_counting (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_line_counting) ... ok test_match_examples (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_match_examples) ... skipped 'match_examples() not supported for CYK/old custom lexer' test_maybe (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_maybe) ... ok test_maybe_placeholders (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_maybe_placeholders) ... ok test_meddling_unused (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_meddling_unused) Unless 'unused' is removed, LALR analysis will fail on reduce-reduce collision ... ok test_multi_import (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_multi_import) ... ok test_multi_start (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_multi_start) ... ok test_on_error_without_lalr (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_on_error_without_lalr) ... ok test_parse_textslice (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_parse_textslice) ... skipped 'start_pos and end_pos not compatible with old style custom/dynamic lexer ' test_parse_textslice_fails (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_parse_textslice_fails) ... ok test_parser_interactive_parser (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_parser_interactive_parser) ... skipped 'interactive_parser is only implemented for LALR at the moment' test_postlex_declare (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_postlex_declare) ... ok test_postlex_indenter (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_postlex_indenter) ... ok test_prioritization (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_prioritization) Tests effect of priority on result ... ok test_prioritization_sum (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_prioritization_sum) Tests effect of priority on result ... skipped 'Currently only Earley supports priority sum in rules' test_priority_vs_embedded (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_priority_vs_embedded) ... ok test_ranged_repeat_rules (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_ranged_repeat_rules) ... ok test_reduce_cycle (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_reduce_cycle) Tests an edge-condition in the LALR parser, in which a transition state looks exactly like the end state. ... ok test_regex_escaping (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_regex_escaping) ... ok test_regex_quote (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_regex_quote) ... ok test_regex_width_fallback (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_regex_width_fallback) ... ok test_relative_import (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_relative_import) ... ok test_relative_import_of_nested_grammar (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_relative_import_of_nested_grammar) ... ok test_relative_import_preserves_leading_underscore (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_relative_import_preserves_leading_underscore) ... ok test_relative_import_rename (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_relative_import_rename) ... ok test_relative_import_rules_dependencies_imported_only_once (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_relative_import_rules_dependencies_imported_only_once) ... ok test_relative_import_unicode (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_relative_import_unicode) ... ok test_relative_multi_import (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_relative_multi_import) ... ok test_relative_rule_import (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_relative_rule_import) ... ok test_relative_rule_import_drop_ignore (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_relative_rule_import_drop_ignore) ... ok test_relative_rule_import_rename (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_relative_rule_import_rename) ... ok test_relative_rule_import_subrule (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_relative_rule_import_subrule) ... ok test_relative_rule_import_subrule_no_conflict (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_relative_rule_import_subrule_no_conflict) ... ok test_rule_collision (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_rule_collision) ... ok test_rule_collision2 (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_rule_collision2) ... ok test_serialize (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_serialize) ... skipped 'Serialize currently only works for LALR parsers without custom lexers (though it should be easy to extend)' test_special_chars (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_special_chars) ... ok test_stack_for_ebnf (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_stack_for_ebnf) Verify that stack depth isn't an issue for EBNF grammars ... ok test_start (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_start) ... ok test_strict (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_strict) ... skipped 'strict mode is only supported in lalr for now' test_stringio_unicode (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_stringio_unicode) Verify that a Lark can be created from file-like objects other than Python's standard 'file' object ... ok test_templates (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_templates) ... ok test_templates_alias (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_templates_alias) ... ok test_templates_import (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_templates_import) ... ok test_templates_modifiers (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_templates_modifiers) ... ok test_templates_recursion (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_templates_recursion) ... ok test_templates_templates (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_templates_templates) ... ok test_token_collision (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_token_collision) ... ok test_token_collision2 (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_token_collision2) ... ok test_token_collision_WS (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_token_collision_WS) ... ok test_token_ebnf (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_token_ebnf) ... ok test_token_flags (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_token_flags) ... ok test_token_flags2 (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_token_flags2) ... ok test_token_flags3 (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_token_flags3) ... ok test_token_flags_collision (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_token_flags_collision) ... skipped 'Requires context sensitive terminal selection' test_token_flags_verbose (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_token_flags_verbose) ... ok test_token_flags_verbose_multiline (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_token_flags_verbose_multiline) ... ok test_token_not_anon (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_token_not_anon) Tests that "a" is matched as an anonymous token, and not A. ... ok test_twice_empty (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_twice_empty) ... ok test_unicode (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_unicode) ... ok test_unicode2 (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_unicode2) ... ok test_unicode3 (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_unicode3) ... ok test_unicode4 (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_unicode4) ... ok test_unicode_class (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_unicode_class) Tests that character classes from the `regex` module work correctly. ... ok test_unicode_literal_range_escape (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_unicode_literal_range_escape) ... ok test_unicode_literal_range_escape2 (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_unicode_literal_range_escape2) ... ok test_unicode_word (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_unicode_word) Tests that a persistent bug in the `re` module works when `regex` is enabled. ... ok test_utf8 (tests.test_parser.tests.test_parser.TestEarleyCustom_old0.test_utf8) ... ok test_alias (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_alias) ... ok test_backslash (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_backslash) ... ok test_backslash2 (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_backslash2) ... ok test_basic1 (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_basic1) ... ok test_basic2 (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_basic2) ... ok test_bytes_utf8 (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_bytes_utf8) ... ok test_default_in_treeless_mode (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_default_in_treeless_mode) ... skipped 'Tree-less mode is not supported in earley' test_dont_expand1_lists_with_multiple_items (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_dont_expand1_lists_with_multiple_items) ... ok test_dont_expand1_lists_with_multiple_items_2 (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_dont_expand1_lists_with_multiple_items_2) ... ok test_dynamic_lexer_prioritization (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_dynamic_lexer_prioritization) Tests effect of priority on result ... skipped 'dynamic lexer prioritization differs from basic lexer prioritization' test_empty (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_empty) ... ok test_empty_end (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_empty_end) ... ok test_empty_expand1_list (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_empty_expand1_list) ... ok test_empty_expand1_list_2 (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_empty_expand1_list_2) ... ok test_empty_flatten_list (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_empty_flatten_list) ... ok test_error_with_interactive_parser (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_error_with_interactive_parser) ... skipped 'interactive_parser error handling only works with LALR for now' test_escaped_string (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_escaped_string) Tests common.ESCAPED_STRING ... ok test_expand1_lists_with_one_item (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_expand1_lists_with_one_item) ... ok test_expand1_lists_with_one_item_2 (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_expand1_lists_with_one_item_2) ... ok test_float_without_lexer (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_float_without_lexer) ... ok test_g_regex_flags (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_g_regex_flags) ... ok test_hex_escape (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_hex_escape) ... ok test_hex_literal_range_escape (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_hex_literal_range_escape) ... ok test_ignore (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_ignore) ... ok test_import (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_import) ... ok test_import_errors (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_import_errors) ... ok test_import_rename (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_import_rename) ... ok test_interactive_treeless_transformer (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_interactive_treeless_transformer) ... skipped 'interactive_parser is only implemented for LALR at the moment' test_iter_parse (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_iter_parse) ... skipped 'interactive_parser error handling only works with LALR for now' test_join_regex_flags (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_join_regex_flags) ... ok test_keep_all_tokens (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_keep_all_tokens) ... ok test_lexer_detect_newline_tokens (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_lexer_detect_newline_tokens) ... ok test_lexer_prioritization (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_lexer_prioritization) Tests effect of priority on result ... ok test_line_and_column (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_line_and_column) ... ok test_line_counting (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_line_counting) ... ok test_match_examples (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_match_examples) ... ok test_maybe (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_maybe) ... ok test_maybe_placeholders (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_maybe_placeholders) ... ok test_meddling_unused (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_meddling_unused) Unless 'unused' is removed, LALR analysis will fail on reduce-reduce collision ... ok test_multi_import (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_multi_import) ... ok test_multi_start (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_multi_start) ... ok test_on_error_without_lalr (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_on_error_without_lalr) ... ok test_parse_textslice (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_parse_textslice) ... skipped 'start_pos and end_pos not compatible with old style custom/dynamic lexer ' test_parse_textslice_fails (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_parse_textslice_fails) ... ok test_parser_interactive_parser (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_parser_interactive_parser) ... skipped 'interactive_parser is only implemented for LALR at the moment' test_postlex_declare (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_postlex_declare) ... ok test_postlex_indenter (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_postlex_indenter) ... ok test_prioritization (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_prioritization) Tests effect of priority on result ... ok test_prioritization_sum (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_prioritization_sum) Tests effect of priority on result ... skipped 'Currently only Earley supports priority sum in rules' test_priority_vs_embedded (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_priority_vs_embedded) ... ok test_ranged_repeat_rules (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_ranged_repeat_rules) ... ok test_reduce_cycle (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_reduce_cycle) Tests an edge-condition in the LALR parser, in which a transition state looks exactly like the end state. ... ok test_regex_escaping (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_regex_escaping) ... ok test_regex_quote (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_regex_quote) ... ok test_regex_width_fallback (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_regex_width_fallback) ... ok test_relative_import (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_relative_import) ... ok test_relative_import_of_nested_grammar (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_relative_import_of_nested_grammar) ... ok test_relative_import_preserves_leading_underscore (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_relative_import_preserves_leading_underscore) ... ok test_relative_import_rename (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_relative_import_rename) ... ok test_relative_import_rules_dependencies_imported_only_once (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_relative_import_rules_dependencies_imported_only_once) ... ok test_relative_import_unicode (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_relative_import_unicode) ... ok test_relative_multi_import (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_relative_multi_import) ... ok test_relative_rule_import (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_relative_rule_import) ... ok test_relative_rule_import_drop_ignore (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_relative_rule_import_drop_ignore) ... ok test_relative_rule_import_rename (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_relative_rule_import_rename) ... ok test_relative_rule_import_subrule (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_relative_rule_import_subrule) ... ok test_relative_rule_import_subrule_no_conflict (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_relative_rule_import_subrule_no_conflict) ... ok test_rule_collision (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_rule_collision) ... ok test_rule_collision2 (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_rule_collision2) ... ok test_serialize (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_serialize) ... skipped 'Serialize currently only works for LALR parsers without custom lexers (though it should be easy to extend)' test_special_chars (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_special_chars) ... ok test_stack_for_ebnf (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_stack_for_ebnf) Verify that stack depth isn't an issue for EBNF grammars ... ok test_start (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_start) ... ok test_strict (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_strict) ... skipped 'strict mode is only supported in lalr for now' test_stringio_unicode (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_stringio_unicode) Verify that a Lark can be created from file-like objects other than Python's standard 'file' object ... ok test_templates (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_templates) ... ok test_templates_alias (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_templates_alias) ... ok test_templates_import (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_templates_import) ... ok test_templates_modifiers (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_templates_modifiers) ... ok test_templates_recursion (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_templates_recursion) ... ok test_templates_templates (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_templates_templates) ... ok test_token_collision (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_token_collision) ... ok test_token_collision2 (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_token_collision2) ... ok test_token_collision_WS (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_token_collision_WS) ... ok test_token_ebnf (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_token_ebnf) ... ok test_token_flags (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_token_flags) ... ok test_token_flags2 (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_token_flags2) ... ok test_token_flags3 (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_token_flags3) ... ok test_token_flags_collision (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_token_flags_collision) ... skipped 'Requires context sensitive terminal selection' test_token_flags_verbose (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_token_flags_verbose) ... ok test_token_flags_verbose_multiline (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_token_flags_verbose_multiline) ... ok test_token_not_anon (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_token_not_anon) Tests that "a" is matched as an anonymous token, and not A. ... ok test_twice_empty (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_twice_empty) ... ok test_unicode (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_unicode) ... ok test_unicode2 (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_unicode2) ... ok test_unicode3 (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_unicode3) ... ok test_unicode4 (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_unicode4) ... ok test_unicode_class (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_unicode_class) Tests that character classes from the `regex` module work correctly. ... ok test_unicode_literal_range_escape (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_unicode_literal_range_escape) ... ok test_unicode_literal_range_escape2 (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_unicode_literal_range_escape2) ... ok test_unicode_word (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_unicode_word) Tests that a persistent bug in the `re` module works when `regex` is enabled. ... ok test_utf8 (tests.test_parser.tests.test_parser.TestEarleyCustom_old1.test_utf8) ... ok test_alias (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_alias) ... ok test_backslash (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_backslash) ... ok test_backslash2 (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_backslash2) ... ok test_basic1 (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_basic1) ... ok test_basic2 (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_basic2) ... ok test_bytes_utf8 (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_bytes_utf8) ... ok test_default_in_treeless_mode (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_default_in_treeless_mode) ... skipped 'Tree-less mode is not supported in earley' test_dont_expand1_lists_with_multiple_items (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_dont_expand1_lists_with_multiple_items) ... ok test_dont_expand1_lists_with_multiple_items_2 (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_dont_expand1_lists_with_multiple_items_2) ... ok test_dynamic_lexer_prioritization (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_dynamic_lexer_prioritization) Tests effect of priority on result ... ok test_empty (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_empty) ... ok test_empty_end (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_empty_end) ... ok test_empty_expand1_list (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_empty_expand1_list) ... ok test_empty_expand1_list_2 (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_empty_expand1_list_2) ... ok test_empty_flatten_list (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_empty_flatten_list) ... ok test_error_with_interactive_parser (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_error_with_interactive_parser) ... skipped 'interactive_parser error handling only works with LALR for now' test_escaped_string (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_escaped_string) Tests common.ESCAPED_STRING ... ok test_expand1_lists_with_one_item (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_expand1_lists_with_one_item) ... ok test_expand1_lists_with_one_item_2 (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_expand1_lists_with_one_item_2) ... ok test_float_without_lexer (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_float_without_lexer) ... ok test_g_regex_flags (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_g_regex_flags) ... ok test_hex_escape (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_hex_escape) ... ok test_hex_literal_range_escape (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_hex_literal_range_escape) ... ok test_ignore (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_ignore) ... ok test_import (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_import) ... ok test_import_errors (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_import_errors) ... ok test_import_rename (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_import_rename) ... ok test_interactive_treeless_transformer (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_interactive_treeless_transformer) ... skipped 'interactive_parser is only implemented for LALR at the moment' test_iter_parse (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_iter_parse) ... skipped 'interactive_parser error handling only works with LALR for now' test_join_regex_flags (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_join_regex_flags) ... ok test_keep_all_tokens (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_keep_all_tokens) ... ok test_lexer_detect_newline_tokens (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_lexer_detect_newline_tokens) ... ok test_lexer_prioritization (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_lexer_prioritization) Tests effect of priority on result ... skipped 'basic lexer prioritization differs from dynamic lexer prioritization' test_line_and_column (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_line_and_column) ... ok test_line_counting (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_line_counting) ... ok test_match_examples (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_match_examples) ... ok test_maybe (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_maybe) ... ok test_maybe_placeholders (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_maybe_placeholders) ... ok test_meddling_unused (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_meddling_unused) Unless 'unused' is removed, LALR analysis will fail on reduce-reduce collision ... ok test_multi_import (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_multi_import) ... ok test_multi_start (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_multi_start) ... ok test_on_error_without_lalr (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_on_error_without_lalr) ... ok test_parse_textslice (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_parse_textslice) ... skipped 'start_pos and end_pos not compatible with old style custom/dynamic lexer ' test_parse_textslice_fails (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_parse_textslice_fails) ... ok test_parser_interactive_parser (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_parser_interactive_parser) ... skipped 'interactive_parser is only implemented for LALR at the moment' test_postlex_declare (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_postlex_declare) ... skipped "%declare/postlex doesn't work with dynamic" test_postlex_indenter (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_postlex_indenter) ... skipped "%declare/postlex doesn't work with dynamic" test_prioritization (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_prioritization) Tests effect of priority on result ... ok test_prioritization_sum (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_prioritization_sum) Tests effect of priority on result ... ok test_priority_vs_embedded (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_priority_vs_embedded) ... ok test_ranged_repeat_rules (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_ranged_repeat_rules) ... ok test_reduce_cycle (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_reduce_cycle) Tests an edge-condition in the LALR parser, in which a transition state looks exactly like the end state. ... ok test_regex_escaping (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_regex_escaping) ... ok test_regex_quote (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_regex_quote) ... ok test_regex_width_fallback (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_regex_width_fallback) ... ok test_relative_import (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_relative_import) ... ok test_relative_import_of_nested_grammar (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_relative_import_of_nested_grammar) ... ok test_relative_import_preserves_leading_underscore (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_relative_import_preserves_leading_underscore) ... ok test_relative_import_rename (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_relative_import_rename) ... ok test_relative_import_rules_dependencies_imported_only_once (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_relative_import_rules_dependencies_imported_only_once) ... ok test_relative_import_unicode (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_relative_import_unicode) ... ok test_relative_multi_import (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_relative_multi_import) ... ok test_relative_rule_import (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_relative_rule_import) ... ok test_relative_rule_import_drop_ignore (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_relative_rule_import_drop_ignore) ... ok test_relative_rule_import_rename (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_relative_rule_import_rename) ... ok test_relative_rule_import_subrule (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_relative_rule_import_subrule) ... ok test_relative_rule_import_subrule_no_conflict (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_relative_rule_import_subrule_no_conflict) ... ok test_rule_collision (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_rule_collision) ... ok test_rule_collision2 (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_rule_collision2) ... ok test_serialize (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_serialize) ... skipped 'Serialize currently only works for LALR parsers without custom lexers (though it should be easy to extend)' test_special_chars (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_special_chars) ... ok test_stack_for_ebnf (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_stack_for_ebnf) Verify that stack depth isn't an issue for EBNF grammars ... ok test_start (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_start) ... ok test_strict (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_strict) ... skipped 'strict mode is only supported in lalr for now' test_stringio_unicode (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_stringio_unicode) Verify that a Lark can be created from file-like objects other than Python's standard 'file' object ... ok test_templates (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_templates) ... ok test_templates_alias (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_templates_alias) ... ok test_templates_import (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_templates_import) ... ok test_templates_modifiers (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_templates_modifiers) ... ok test_templates_recursion (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_templates_recursion) ... ok test_templates_templates (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_templates_templates) ... ok test_token_collision (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_token_collision) ... ok test_token_collision2 (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_token_collision2) ... ok test_token_collision_WS (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_token_collision_WS) ... ok test_token_ebnf (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_token_ebnf) ... ok test_token_flags (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_token_flags) ... ok test_token_flags2 (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_token_flags2) ... ok test_token_flags3 (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_token_flags3) ... ok test_token_flags_collision (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_token_flags_collision) ... ok test_token_flags_verbose (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_token_flags_verbose) ... ok test_token_flags_verbose_multiline (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_token_flags_verbose_multiline) ... ok test_token_not_anon (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_token_not_anon) Tests that "a" is matched as an anonymous token, and not A. ... ok test_twice_empty (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_twice_empty) ... ok test_unicode (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_unicode) ... ok test_unicode2 (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_unicode2) ... ok test_unicode3 (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_unicode3) ... ok test_unicode4 (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_unicode4) ... ok test_unicode_class (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_unicode_class) Tests that character classes from the `regex` module work correctly. ... ok test_unicode_literal_range_escape (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_unicode_literal_range_escape) ... ok test_unicode_literal_range_escape2 (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_unicode_literal_range_escape2) ... ok test_unicode_word (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_unicode_word) Tests that a persistent bug in the `re` module works when `regex` is enabled. ... ok test_utf8 (tests.test_parser.tests.test_parser.TestEarleyDynamic.test_utf8) ... ok test_alias (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_alias) ... ok test_backslash (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_backslash) ... ok test_backslash2 (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_backslash2) ... ok test_basic1 (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_basic1) ... ok test_basic2 (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_basic2) ... ok test_bytes_utf8 (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_bytes_utf8) ... ok test_default_in_treeless_mode (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_default_in_treeless_mode) ... skipped 'Tree-less mode is not supported in earley' test_dont_expand1_lists_with_multiple_items (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_dont_expand1_lists_with_multiple_items) ... ok test_dont_expand1_lists_with_multiple_items_2 (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_dont_expand1_lists_with_multiple_items_2) ... ok test_dynamic_lexer_prioritization (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_dynamic_lexer_prioritization) Tests effect of priority on result ... ok test_empty (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_empty) ... ok test_empty_end (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_empty_end) ... ok test_empty_expand1_list (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_empty_expand1_list) ... ok test_empty_expand1_list_2 (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_empty_expand1_list_2) ... ok test_empty_flatten_list (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_empty_flatten_list) ... ok test_error_with_interactive_parser (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_error_with_interactive_parser) ... skipped 'interactive_parser error handling only works with LALR for now' test_escaped_string (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_escaped_string) Tests common.ESCAPED_STRING ... ok test_expand1_lists_with_one_item (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_expand1_lists_with_one_item) ... ok test_expand1_lists_with_one_item_2 (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_expand1_lists_with_one_item_2) ... ok test_float_without_lexer (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_float_without_lexer) ... ok test_g_regex_flags (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_g_regex_flags) ... ok test_hex_escape (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_hex_escape) ... ok test_hex_literal_range_escape (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_hex_literal_range_escape) ... ok test_ignore (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_ignore) ... ok test_import (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_import) ... ok test_import_errors (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_import_errors) ... ok test_import_rename (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_import_rename) ... ok test_interactive_treeless_transformer (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_interactive_treeless_transformer) ... skipped 'interactive_parser is only implemented for LALR at the moment' test_iter_parse (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_iter_parse) ... skipped 'interactive_parser error handling only works with LALR for now' test_join_regex_flags (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_join_regex_flags) ... ok test_keep_all_tokens (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_keep_all_tokens) ... ok test_lexer_detect_newline_tokens (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_lexer_detect_newline_tokens) ... ok test_lexer_prioritization (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_lexer_prioritization) Tests effect of priority on result ... skipped 'basic lexer prioritization differs from dynamic lexer prioritization' test_line_and_column (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_line_and_column) ... ok test_line_counting (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_line_counting) ... ok test_match_examples (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_match_examples) ... ok test_maybe (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_maybe) ... ok test_maybe_placeholders (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_maybe_placeholders) ... ok test_meddling_unused (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_meddling_unused) Unless 'unused' is removed, LALR analysis will fail on reduce-reduce collision ... ok test_multi_import (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_multi_import) ... ok test_multi_start (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_multi_start) ... ok test_on_error_without_lalr (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_on_error_without_lalr) ... ok test_parse_textslice (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_parse_textslice) ... skipped 'start_pos and end_pos not compatible with old style custom/dynamic lexer ' test_parse_textslice_fails (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_parse_textslice_fails) ... ok test_parser_interactive_parser (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_parser_interactive_parser) ... skipped 'interactive_parser is only implemented for LALR at the moment' test_postlex_declare (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_postlex_declare) ... skipped "%declare/postlex doesn't work with dynamic" test_postlex_indenter (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_postlex_indenter) ... skipped "%declare/postlex doesn't work with dynamic" test_prioritization (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_prioritization) Tests effect of priority on result ... ok test_prioritization_sum (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_prioritization_sum) Tests effect of priority on result ... ok test_priority_vs_embedded (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_priority_vs_embedded) ... ok test_ranged_repeat_rules (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_ranged_repeat_rules) ... ok test_reduce_cycle (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_reduce_cycle) Tests an edge-condition in the LALR parser, in which a transition state looks exactly like the end state. ... ok test_regex_escaping (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_regex_escaping) ... ok test_regex_quote (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_regex_quote) ... ok test_regex_width_fallback (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_regex_width_fallback) ... ok test_relative_import (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_relative_import) ... ok test_relative_import_of_nested_grammar (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_relative_import_of_nested_grammar) ... ok test_relative_import_preserves_leading_underscore (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_relative_import_preserves_leading_underscore) ... ok test_relative_import_rename (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_relative_import_rename) ... ok test_relative_import_rules_dependencies_imported_only_once (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_relative_import_rules_dependencies_imported_only_once) ... ok test_relative_import_unicode (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_relative_import_unicode) ... ok test_relative_multi_import (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_relative_multi_import) ... ok test_relative_rule_import (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_relative_rule_import) ... ok test_relative_rule_import_drop_ignore (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_relative_rule_import_drop_ignore) ... ok test_relative_rule_import_rename (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_relative_rule_import_rename) ... ok test_relative_rule_import_subrule (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_relative_rule_import_subrule) ... ok test_relative_rule_import_subrule_no_conflict (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_relative_rule_import_subrule_no_conflict) ... ok test_rule_collision (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_rule_collision) ... ok test_rule_collision2 (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_rule_collision2) ... ok test_serialize (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_serialize) ... skipped 'Serialize currently only works for LALR parsers without custom lexers (though it should be easy to extend)' test_special_chars (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_special_chars) ... ok test_stack_for_ebnf (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_stack_for_ebnf) Verify that stack depth isn't an issue for EBNF grammars ... ok test_start (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_start) ... ok test_strict (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_strict) ... skipped 'strict mode is only supported in lalr for now' test_stringio_unicode (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_stringio_unicode) Verify that a Lark can be created from file-like objects other than Python's standard 'file' object ... ok test_templates (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_templates) ... ok test_templates_alias (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_templates_alias) ... ok test_templates_import (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_templates_import) ... ok test_templates_modifiers (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_templates_modifiers) ... ok test_templates_recursion (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_templates_recursion) ... ok test_templates_templates (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_templates_templates) ... ok test_token_collision (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_token_collision) ... ok test_token_collision2 (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_token_collision2) ... ok test_token_collision_WS (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_token_collision_WS) ... ok test_token_ebnf (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_token_ebnf) ... ok test_token_flags (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_token_flags) ... ok test_token_flags2 (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_token_flags2) ... ok test_token_flags3 (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_token_flags3) ... ok test_token_flags_collision (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_token_flags_collision) ... ok test_token_flags_verbose (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_token_flags_verbose) ... ok test_token_flags_verbose_multiline (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_token_flags_verbose_multiline) ... ok test_token_not_anon (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_token_not_anon) Tests that "a" is matched as an anonymous token, and not A. ... ok test_twice_empty (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_twice_empty) ... ok test_unicode (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_unicode) ... ok test_unicode2 (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_unicode2) ... ok test_unicode3 (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_unicode3) ... ok test_unicode4 (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_unicode4) ... ok test_unicode_class (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_unicode_class) Tests that character classes from the `regex` module work correctly. ... ok test_unicode_literal_range_escape (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_unicode_literal_range_escape) ... ok test_unicode_literal_range_escape2 (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_unicode_literal_range_escape2) ... ok test_unicode_word (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_unicode_word) Tests that a persistent bug in the `re` module works when `regex` is enabled. ... ok test_utf8 (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete.test_utf8) ... ok test_ambiguity1 (tests.test_parser._make_full_earley_test.._TestFullEarley.test_ambiguity1) ... skipped 'Requires dynamic lexer' test_ambiguity2 (tests.test_parser._make_full_earley_test.._TestFullEarley.test_ambiguity2) ... skipped 'Requires dynamic lexer' test_ambiguous_inlined_rule (tests.test_parser._make_full_earley_test.._TestFullEarley.test_ambiguous_inlined_rule) ... ok test_ambiguous_intermediate_node (tests.test_parser._make_full_earley_test.._TestFullEarley.test_ambiguous_intermediate_node) ... ok test_ambiguous_intermediate_node_conditionally_inlined_rule (tests.test_parser._make_full_earley_test.._TestFullEarley.test_ambiguous_intermediate_node_conditionally_inlined_rule) ... ok test_ambiguous_intermediate_node_inlined_rule (tests.test_parser._make_full_earley_test.._TestFullEarley.test_ambiguous_intermediate_node_inlined_rule) ... ok test_ambiguous_intermediate_node_unnamed_token (tests.test_parser._make_full_earley_test.._TestFullEarley.test_ambiguous_intermediate_node_unnamed_token) ... ok test_ambiguous_symbol_and_intermediate_nodes (tests.test_parser._make_full_earley_test.._TestFullEarley.test_ambiguous_symbol_and_intermediate_nodes) ... ok test_anon (tests.test_parser._make_full_earley_test.._TestFullEarley.test_anon) ... ok test_consistent_derivation_order1 (tests.test_parser._make_full_earley_test.._TestFullEarley.test_consistent_derivation_order1) ... ok test_cycle (tests.test_parser._make_full_earley_test.._TestFullEarley.test_cycle) ... ok test_cycle2 (tests.test_parser._make_full_earley_test.._TestFullEarley.test_cycle2) ... ok test_cycles (tests.test_parser._make_full_earley_test.._TestFullEarley.test_cycles) ... ok test_cycles_with_child_filter (tests.test_parser._make_full_earley_test.._TestFullEarley.test_cycles_with_child_filter) ... ok test_earley (tests.test_parser._make_full_earley_test.._TestFullEarley.test_earley) ... skipped 'Requires dynamic lexer' test_earley2 (tests.test_parser._make_full_earley_test.._TestFullEarley.test_earley2) ... ok test_earley3 (tests.test_parser._make_full_earley_test.._TestFullEarley.test_earley3) Tests prioritization and disambiguation for pseudo-terminals (there should be only one result) ... skipped 'Only relevant for the dynamic_complete parser' test_earley4 (tests.test_parser._make_full_earley_test.._TestFullEarley.test_earley4) ... ok test_earley_explicit_ambiguity (tests.test_parser._make_full_earley_test.._TestFullEarley.test_earley_explicit_ambiguity) ... skipped 'Requires dynamic lexer' test_earley_repeating_empty (tests.test_parser._make_full_earley_test.._TestFullEarley.test_earley_repeating_empty) ... ok test_explicit_ambiguity2 (tests.test_parser._make_full_earley_test.._TestFullEarley.test_explicit_ambiguity2) ... skipped 'Only relevant for the dynamic_complete parser' test_fruitflies_ambig (tests.test_parser._make_full_earley_test.._TestFullEarley.test_fruitflies_ambig) ... skipped 'Requires dynamic lexer' test_many_cycles (tests.test_parser._make_full_earley_test.._TestFullEarley.test_many_cycles) ... ok test_multiple_start_solutions (tests.test_parser._make_full_earley_test.._TestFullEarley.test_multiple_start_solutions) ... ok test_nested_ambiguous_intermediate_nodes (tests.test_parser._make_full_earley_test.._TestFullEarley.test_nested_ambiguous_intermediate_nodes) ... ok test_nested_ambiguous_intermediate_nodes2 (tests.test_parser._make_full_earley_test.._TestFullEarley.test_nested_ambiguous_intermediate_nodes2) ... ok test_resolve_ambiguity_with_shared_node (tests.test_parser._make_full_earley_test.._TestFullEarley.test_resolve_ambiguity_with_shared_node) ... ok test_resolve_ambiguity_with_shared_node2 (tests.test_parser._make_full_earley_test.._TestFullEarley.test_resolve_ambiguity_with_shared_node2) ... ok test_symbol_node_start_end_dynamic_lexer (tests.test_parser._make_full_earley_test.._TestFullEarley.test_symbol_node_start_end_dynamic_lexer) ... skipped 'start/end values work differently for the basic lexer' test_term_ambig_resolve (tests.test_parser._make_full_earley_test.._TestFullEarley.test_term_ambig_resolve) ... ok test_ambiguity1 (tests.test_parser._make_full_earley_test.._TestFullEarley.test_ambiguity1) ... ok test_ambiguity2 (tests.test_parser._make_full_earley_test.._TestFullEarley.test_ambiguity2) ... ok test_ambiguous_inlined_rule (tests.test_parser._make_full_earley_test.._TestFullEarley.test_ambiguous_inlined_rule) ... ok test_ambiguous_intermediate_node (tests.test_parser._make_full_earley_test.._TestFullEarley.test_ambiguous_intermediate_node) ... ok test_ambiguous_intermediate_node_conditionally_inlined_rule (tests.test_parser._make_full_earley_test.._TestFullEarley.test_ambiguous_intermediate_node_conditionally_inlined_rule) ... ok test_ambiguous_intermediate_node_inlined_rule (tests.test_parser._make_full_earley_test.._TestFullEarley.test_ambiguous_intermediate_node_inlined_rule) ... ok test_ambiguous_intermediate_node_unnamed_token (tests.test_parser._make_full_earley_test.._TestFullEarley.test_ambiguous_intermediate_node_unnamed_token) ... ok test_ambiguous_symbol_and_intermediate_nodes (tests.test_parser._make_full_earley_test.._TestFullEarley.test_ambiguous_symbol_and_intermediate_nodes) ... ok test_anon (tests.test_parser._make_full_earley_test.._TestFullEarley.test_anon) ... ok test_consistent_derivation_order1 (tests.test_parser._make_full_earley_test.._TestFullEarley.test_consistent_derivation_order1) ... ok test_cycle (tests.test_parser._make_full_earley_test.._TestFullEarley.test_cycle) ... ok test_cycle2 (tests.test_parser._make_full_earley_test.._TestFullEarley.test_cycle2) ... ok test_cycles (tests.test_parser._make_full_earley_test.._TestFullEarley.test_cycles) ... ok test_cycles_with_child_filter (tests.test_parser._make_full_earley_test.._TestFullEarley.test_cycles_with_child_filter) ... ok test_earley (tests.test_parser._make_full_earley_test.._TestFullEarley.test_earley) ... ok test_earley2 (tests.test_parser._make_full_earley_test.._TestFullEarley.test_earley2) ... ok test_earley3 (tests.test_parser._make_full_earley_test.._TestFullEarley.test_earley3) Tests prioritization and disambiguation for pseudo-terminals (there should be only one result) ... skipped 'Only relevant for the dynamic_complete parser' test_earley4 (tests.test_parser._make_full_earley_test.._TestFullEarley.test_earley4) ... ok test_earley_explicit_ambiguity (tests.test_parser._make_full_earley_test.._TestFullEarley.test_earley_explicit_ambiguity) ... ok test_earley_repeating_empty (tests.test_parser._make_full_earley_test.._TestFullEarley.test_earley_repeating_empty) ... ok test_explicit_ambiguity2 (tests.test_parser._make_full_earley_test.._TestFullEarley.test_explicit_ambiguity2) ... skipped 'Only relevant for the dynamic_complete parser' test_fruitflies_ambig (tests.test_parser._make_full_earley_test.._TestFullEarley.test_fruitflies_ambig) ... ok test_many_cycles (tests.test_parser._make_full_earley_test.._TestFullEarley.test_many_cycles) ... ok test_multiple_start_solutions (tests.test_parser._make_full_earley_test.._TestFullEarley.test_multiple_start_solutions) ... ok test_nested_ambiguous_intermediate_nodes (tests.test_parser._make_full_earley_test.._TestFullEarley.test_nested_ambiguous_intermediate_nodes) ... ok test_nested_ambiguous_intermediate_nodes2 (tests.test_parser._make_full_earley_test.._TestFullEarley.test_nested_ambiguous_intermediate_nodes2) ... ok test_resolve_ambiguity_with_shared_node (tests.test_parser._make_full_earley_test.._TestFullEarley.test_resolve_ambiguity_with_shared_node) ... ok test_resolve_ambiguity_with_shared_node2 (tests.test_parser._make_full_earley_test.._TestFullEarley.test_resolve_ambiguity_with_shared_node2) ... ok test_symbol_node_start_end_dynamic_lexer (tests.test_parser._make_full_earley_test.._TestFullEarley.test_symbol_node_start_end_dynamic_lexer) ... ok test_term_ambig_resolve (tests.test_parser._make_full_earley_test.._TestFullEarley.test_term_ambig_resolve) ... ok test_ambiguity1 (tests.test_parser._make_full_earley_test.._TestFullEarley.test_ambiguity1) ... ok test_ambiguity2 (tests.test_parser._make_full_earley_test.._TestFullEarley.test_ambiguity2) ... ok test_ambiguous_inlined_rule (tests.test_parser._make_full_earley_test.._TestFullEarley.test_ambiguous_inlined_rule) ... ok test_ambiguous_intermediate_node (tests.test_parser._make_full_earley_test.._TestFullEarley.test_ambiguous_intermediate_node) ... ok test_ambiguous_intermediate_node_conditionally_inlined_rule (tests.test_parser._make_full_earley_test.._TestFullEarley.test_ambiguous_intermediate_node_conditionally_inlined_rule) ... ok test_ambiguous_intermediate_node_inlined_rule (tests.test_parser._make_full_earley_test.._TestFullEarley.test_ambiguous_intermediate_node_inlined_rule) ... ok test_ambiguous_intermediate_node_unnamed_token (tests.test_parser._make_full_earley_test.._TestFullEarley.test_ambiguous_intermediate_node_unnamed_token) ... ok test_ambiguous_symbol_and_intermediate_nodes (tests.test_parser._make_full_earley_test.._TestFullEarley.test_ambiguous_symbol_and_intermediate_nodes) ... ok test_anon (tests.test_parser._make_full_earley_test.._TestFullEarley.test_anon) ... ok test_consistent_derivation_order1 (tests.test_parser._make_full_earley_test.._TestFullEarley.test_consistent_derivation_order1) ... ok test_cycle (tests.test_parser._make_full_earley_test.._TestFullEarley.test_cycle) ... ok test_cycle2 (tests.test_parser._make_full_earley_test.._TestFullEarley.test_cycle2) ... ok test_cycles (tests.test_parser._make_full_earley_test.._TestFullEarley.test_cycles) ... ok test_cycles_with_child_filter (tests.test_parser._make_full_earley_test.._TestFullEarley.test_cycles_with_child_filter) ... ok test_earley (tests.test_parser._make_full_earley_test.._TestFullEarley.test_earley) ... ok test_earley2 (tests.test_parser._make_full_earley_test.._TestFullEarley.test_earley2) ... ok test_earley3 (tests.test_parser._make_full_earley_test.._TestFullEarley.test_earley3) Tests prioritization and disambiguation for pseudo-terminals (there should be only one result) ... ok test_earley4 (tests.test_parser._make_full_earley_test.._TestFullEarley.test_earley4) ... ok test_earley_explicit_ambiguity (tests.test_parser._make_full_earley_test.._TestFullEarley.test_earley_explicit_ambiguity) ... ok test_earley_repeating_empty (tests.test_parser._make_full_earley_test.._TestFullEarley.test_earley_repeating_empty) ... ok test_explicit_ambiguity2 (tests.test_parser._make_full_earley_test.._TestFullEarley.test_explicit_ambiguity2) ... ok test_fruitflies_ambig (tests.test_parser._make_full_earley_test.._TestFullEarley.test_fruitflies_ambig) ... ok test_many_cycles (tests.test_parser._make_full_earley_test.._TestFullEarley.test_many_cycles) ... ok test_multiple_start_solutions (tests.test_parser._make_full_earley_test.._TestFullEarley.test_multiple_start_solutions) ... ok test_nested_ambiguous_intermediate_nodes (tests.test_parser._make_full_earley_test.._TestFullEarley.test_nested_ambiguous_intermediate_nodes) ... ok test_nested_ambiguous_intermediate_nodes2 (tests.test_parser._make_full_earley_test.._TestFullEarley.test_nested_ambiguous_intermediate_nodes2) ... ok test_resolve_ambiguity_with_shared_node (tests.test_parser._make_full_earley_test.._TestFullEarley.test_resolve_ambiguity_with_shared_node) ... ok test_resolve_ambiguity_with_shared_node2 (tests.test_parser._make_full_earley_test.._TestFullEarley.test_resolve_ambiguity_with_shared_node2) ... ok test_symbol_node_start_end_dynamic_lexer (tests.test_parser._make_full_earley_test.._TestFullEarley.test_symbol_node_start_end_dynamic_lexer) ... ok test_term_ambig_resolve (tests.test_parser._make_full_earley_test.._TestFullEarley.test_term_ambig_resolve) ... ok test_alias_in_terminal (tests.test_grammar.TestGrammar.test_alias_in_terminal) ... ok test_empty_literal (tests.test_grammar.TestGrammar.test_empty_literal) ... ok test_errors (tests.test_grammar.TestGrammar.test_errors) ... ok test_extend_rule (tests.test_grammar.TestGrammar.test_extend_rule) ... ok test_extend_term (tests.test_grammar.TestGrammar.test_extend_term) ... ok test_extend_twice (tests.test_grammar.TestGrammar.test_extend_twice) ... ok test_find_grammar_errors (tests.test_grammar.TestGrammar.test_find_grammar_errors) ... ok test_ignore_name (tests.test_grammar.TestGrammar.test_ignore_name) ... ok test_import_custom_sources (tests.test_grammar.TestGrammar.test_import_custom_sources) ... ok test_import_custom_sources2 (tests.test_grammar.TestGrammar.test_import_custom_sources2) ... ok test_import_custom_sources3 (tests.test_grammar.TestGrammar.test_import_custom_sources3) ... ok test_inline_with_expand_single (tests.test_grammar.TestGrammar.test_inline_with_expand_single) ... ok test_large_terminal (tests.test_grammar.TestGrammar.test_large_terminal) ... ok test_line_breaks (tests.test_grammar.TestGrammar.test_line_breaks) ... ok test_list_grammar_imports (tests.test_grammar.TestGrammar.test_list_grammar_imports) ... ok test_override_rule (tests.test_grammar.TestGrammar.test_override_rule) ... ok test_override_terminal (tests.test_grammar.TestGrammar.test_override_terminal) ... ok test_ranged_repeat_large (tests.test_grammar.TestGrammar.test_ranged_repeat_large) ... ok test_ranged_repeat_terms (tests.test_grammar.TestGrammar.test_ranged_repeat_terms) ... ok test_symbol_eq (tests.test_grammar.TestGrammar.test_symbol_eq) ... ok test_token_multiline_only_works_with_x_flag (tests.test_grammar.TestGrammar.test_token_multiline_only_works_with_x_flag) ... ok test_undefined_ignore (tests.test_grammar.TestGrammar.test_undefined_ignore) ... ok test_undefined_rule (tests.test_grammar.TestGrammar.test_undefined_rule) ... ok test_undefined_term (tests.test_grammar.TestGrammar.test_undefined_term) ... ok test_alias (tests.test_parser.tests.test_parser.TestLalrBasic.test_alias) ... ok test_backslash (tests.test_parser.tests.test_parser.TestLalrBasic.test_backslash) ... ok test_backslash2 (tests.test_parser.tests.test_parser.TestLalrBasic.test_backslash2) ... ok test_basic1 (tests.test_parser.tests.test_parser.TestLalrBasic.test_basic1) ... ok test_basic2 (tests.test_parser.tests.test_parser.TestLalrBasic.test_basic2) ... ok test_bytes_utf8 (tests.test_parser.tests.test_parser.TestLalrBasic.test_bytes_utf8) ... ok test_default_in_treeless_mode (tests.test_parser.tests.test_parser.TestLalrBasic.test_default_in_treeless_mode) ... ok test_dont_expand1_lists_with_multiple_items (tests.test_parser.tests.test_parser.TestLalrBasic.test_dont_expand1_lists_with_multiple_items) ... ok test_dont_expand1_lists_with_multiple_items_2 (tests.test_parser.tests.test_parser.TestLalrBasic.test_dont_expand1_lists_with_multiple_items_2) ... ok test_dynamic_lexer_prioritization (tests.test_parser.tests.test_parser.TestLalrBasic.test_dynamic_lexer_prioritization) Tests effect of priority on result ... skipped 'dynamic lexer prioritization differs from basic lexer prioritization' test_empty (tests.test_parser.tests.test_parser.TestLalrBasic.test_empty) ... ok test_empty_end (tests.test_parser.tests.test_parser.TestLalrBasic.test_empty_end) ... ok test_empty_expand1_list (tests.test_parser.tests.test_parser.TestLalrBasic.test_empty_expand1_list) ... ok test_empty_expand1_list_2 (tests.test_parser.tests.test_parser.TestLalrBasic.test_empty_expand1_list_2) ... ok test_empty_flatten_list (tests.test_parser.tests.test_parser.TestLalrBasic.test_empty_flatten_list) ... ok test_error_with_interactive_parser (tests.test_parser.tests.test_parser.TestLalrBasic.test_error_with_interactive_parser) ... ok test_escaped_string (tests.test_parser.tests.test_parser.TestLalrBasic.test_escaped_string) Tests common.ESCAPED_STRING ... ok test_expand1_lists_with_one_item (tests.test_parser.tests.test_parser.TestLalrBasic.test_expand1_lists_with_one_item) ... ok test_expand1_lists_with_one_item_2 (tests.test_parser.tests.test_parser.TestLalrBasic.test_expand1_lists_with_one_item_2) ... ok test_float_without_lexer (tests.test_parser.tests.test_parser.TestLalrBasic.test_float_without_lexer) ... ok test_g_regex_flags (tests.test_parser.tests.test_parser.TestLalrBasic.test_g_regex_flags) ... ok test_hex_escape (tests.test_parser.tests.test_parser.TestLalrBasic.test_hex_escape) ... ok test_hex_literal_range_escape (tests.test_parser.tests.test_parser.TestLalrBasic.test_hex_literal_range_escape) ... ok test_ignore (tests.test_parser.tests.test_parser.TestLalrBasic.test_ignore) ... ok test_import (tests.test_parser.tests.test_parser.TestLalrBasic.test_import) ... ok test_import_errors (tests.test_parser.tests.test_parser.TestLalrBasic.test_import_errors) ... ok test_import_rename (tests.test_parser.tests.test_parser.TestLalrBasic.test_import_rename) ... ok test_interactive_treeless_transformer (tests.test_parser.tests.test_parser.TestLalrBasic.test_interactive_treeless_transformer) ... ok test_iter_parse (tests.test_parser.tests.test_parser.TestLalrBasic.test_iter_parse) ... ok test_join_regex_flags (tests.test_parser.tests.test_parser.TestLalrBasic.test_join_regex_flags) ... ok test_keep_all_tokens (tests.test_parser.tests.test_parser.TestLalrBasic.test_keep_all_tokens) ... ok test_lexer_detect_newline_tokens (tests.test_parser.tests.test_parser.TestLalrBasic.test_lexer_detect_newline_tokens) ... ok test_lexer_prioritization (tests.test_parser.tests.test_parser.TestLalrBasic.test_lexer_prioritization) Tests effect of priority on result ... ok test_line_and_column (tests.test_parser.tests.test_parser.TestLalrBasic.test_line_and_column) ... ok test_line_counting (tests.test_parser.tests.test_parser.TestLalrBasic.test_line_counting) ... ok test_match_examples (tests.test_parser.tests.test_parser.TestLalrBasic.test_match_examples) ... ok test_maybe (tests.test_parser.tests.test_parser.TestLalrBasic.test_maybe) ... ok test_maybe_placeholders (tests.test_parser.tests.test_parser.TestLalrBasic.test_maybe_placeholders) ... ok test_meddling_unused (tests.test_parser.tests.test_parser.TestLalrBasic.test_meddling_unused) Unless 'unused' is removed, LALR analysis will fail on reduce-reduce collision ... ok test_multi_import (tests.test_parser.tests.test_parser.TestLalrBasic.test_multi_import) ... ok test_multi_start (tests.test_parser.tests.test_parser.TestLalrBasic.test_multi_start) ... ok test_on_error_without_lalr (tests.test_parser.tests.test_parser.TestLalrBasic.test_on_error_without_lalr) ... skipped 'test on_error only works with lalr' test_parse_textslice (tests.test_parser.tests.test_parser.TestLalrBasic.test_parse_textslice) ... ok test_parse_textslice_fails (tests.test_parser.tests.test_parser.TestLalrBasic.test_parse_textslice_fails) ... skipped 'start_pos and end_pos not compatible with old style custom/dynamic lexer ' test_parser_interactive_parser (tests.test_parser.tests.test_parser.TestLalrBasic.test_parser_interactive_parser) ... ok test_postlex_declare (tests.test_parser.tests.test_parser.TestLalrBasic.test_postlex_declare) ... ok test_postlex_indenter (tests.test_parser.tests.test_parser.TestLalrBasic.test_postlex_indenter) ... ok test_prioritization (tests.test_parser.tests.test_parser.TestLalrBasic.test_prioritization) Tests effect of priority on result ... ok test_prioritization_sum (tests.test_parser.tests.test_parser.TestLalrBasic.test_prioritization_sum) Tests effect of priority on result ... skipped 'Currently only Earley supports priority sum in rules' test_priority_vs_embedded (tests.test_parser.tests.test_parser.TestLalrBasic.test_priority_vs_embedded) ... ok test_ranged_repeat_rules (tests.test_parser.tests.test_parser.TestLalrBasic.test_ranged_repeat_rules) ... ok test_reduce_cycle (tests.test_parser.tests.test_parser.TestLalrBasic.test_reduce_cycle) Tests an edge-condition in the LALR parser, in which a transition state looks exactly like the end state. ... ok test_regex_escaping (tests.test_parser.tests.test_parser.TestLalrBasic.test_regex_escaping) ... ok test_regex_quote (tests.test_parser.tests.test_parser.TestLalrBasic.test_regex_quote) ... ok test_regex_width_fallback (tests.test_parser.tests.test_parser.TestLalrBasic.test_regex_width_fallback) ... ok test_relative_import (tests.test_parser.tests.test_parser.TestLalrBasic.test_relative_import) ... ok test_relative_import_of_nested_grammar (tests.test_parser.tests.test_parser.TestLalrBasic.test_relative_import_of_nested_grammar) ... ok test_relative_import_preserves_leading_underscore (tests.test_parser.tests.test_parser.TestLalrBasic.test_relative_import_preserves_leading_underscore) ... ok test_relative_import_rename (tests.test_parser.tests.test_parser.TestLalrBasic.test_relative_import_rename) ... ok test_relative_import_rules_dependencies_imported_only_once (tests.test_parser.tests.test_parser.TestLalrBasic.test_relative_import_rules_dependencies_imported_only_once) ... ok test_relative_import_unicode (tests.test_parser.tests.test_parser.TestLalrBasic.test_relative_import_unicode) ... ok test_relative_multi_import (tests.test_parser.tests.test_parser.TestLalrBasic.test_relative_multi_import) ... ok test_relative_rule_import (tests.test_parser.tests.test_parser.TestLalrBasic.test_relative_rule_import) ... ok test_relative_rule_import_drop_ignore (tests.test_parser.tests.test_parser.TestLalrBasic.test_relative_rule_import_drop_ignore) ... ok test_relative_rule_import_rename (tests.test_parser.tests.test_parser.TestLalrBasic.test_relative_rule_import_rename) ... ok test_relative_rule_import_subrule (tests.test_parser.tests.test_parser.TestLalrBasic.test_relative_rule_import_subrule) ... ok test_relative_rule_import_subrule_no_conflict (tests.test_parser.tests.test_parser.TestLalrBasic.test_relative_rule_import_subrule_no_conflict) ... ok test_rule_collision (tests.test_parser.tests.test_parser.TestLalrBasic.test_rule_collision) ... ok test_rule_collision2 (tests.test_parser.tests.test_parser.TestLalrBasic.test_rule_collision2) ... ok test_serialize (tests.test_parser.tests.test_parser.TestLalrBasic.test_serialize) ... ok test_special_chars (tests.test_parser.tests.test_parser.TestLalrBasic.test_special_chars) ... ok test_stack_for_ebnf (tests.test_parser.tests.test_parser.TestLalrBasic.test_stack_for_ebnf) Verify that stack depth isn't an issue for EBNF grammars ... ok test_start (tests.test_parser.tests.test_parser.TestLalrBasic.test_start) ... ok test_strict (tests.test_parser.tests.test_parser.TestLalrBasic.test_strict) ... ok test_stringio_unicode (tests.test_parser.tests.test_parser.TestLalrBasic.test_stringio_unicode) Verify that a Lark can be created from file-like objects other than Python's standard 'file' object ... ok test_templates (tests.test_parser.tests.test_parser.TestLalrBasic.test_templates) ... ok test_templates_alias (tests.test_parser.tests.test_parser.TestLalrBasic.test_templates_alias) ... ok test_templates_import (tests.test_parser.tests.test_parser.TestLalrBasic.test_templates_import) ... ok test_templates_modifiers (tests.test_parser.tests.test_parser.TestLalrBasic.test_templates_modifiers) ... ok test_templates_recursion (tests.test_parser.tests.test_parser.TestLalrBasic.test_templates_recursion) ... ok test_templates_templates (tests.test_parser.tests.test_parser.TestLalrBasic.test_templates_templates) ... ok test_token_collision (tests.test_parser.tests.test_parser.TestLalrBasic.test_token_collision) ... ok test_token_collision2 (tests.test_parser.tests.test_parser.TestLalrBasic.test_token_collision2) ... ok test_token_collision_WS (tests.test_parser.tests.test_parser.TestLalrBasic.test_token_collision_WS) ... ok test_token_ebnf (tests.test_parser.tests.test_parser.TestLalrBasic.test_token_ebnf) ... ok test_token_flags (tests.test_parser.tests.test_parser.TestLalrBasic.test_token_flags) ... ok test_token_flags2 (tests.test_parser.tests.test_parser.TestLalrBasic.test_token_flags2) ... ok test_token_flags3 (tests.test_parser.tests.test_parser.TestLalrBasic.test_token_flags3) ... ok test_token_flags_collision (tests.test_parser.tests.test_parser.TestLalrBasic.test_token_flags_collision) ... skipped 'Requires context sensitive terminal selection' test_token_flags_verbose (tests.test_parser.tests.test_parser.TestLalrBasic.test_token_flags_verbose) ... ok test_token_flags_verbose_multiline (tests.test_parser.tests.test_parser.TestLalrBasic.test_token_flags_verbose_multiline) ... ok test_token_not_anon (tests.test_parser.tests.test_parser.TestLalrBasic.test_token_not_anon) Tests that "a" is matched as an anonymous token, and not A. ... ok test_twice_empty (tests.test_parser.tests.test_parser.TestLalrBasic.test_twice_empty) ... ok test_unicode (tests.test_parser.tests.test_parser.TestLalrBasic.test_unicode) ... ok test_unicode2 (tests.test_parser.tests.test_parser.TestLalrBasic.test_unicode2) ... ok test_unicode3 (tests.test_parser.tests.test_parser.TestLalrBasic.test_unicode3) ... ok test_unicode4 (tests.test_parser.tests.test_parser.TestLalrBasic.test_unicode4) ... ok test_unicode_class (tests.test_parser.tests.test_parser.TestLalrBasic.test_unicode_class) Tests that character classes from the `regex` module work correctly. ... ok test_unicode_literal_range_escape (tests.test_parser.tests.test_parser.TestLalrBasic.test_unicode_literal_range_escape) ... ok test_unicode_literal_range_escape2 (tests.test_parser.tests.test_parser.TestLalrBasic.test_unicode_literal_range_escape2) ... ok test_unicode_word (tests.test_parser.tests.test_parser.TestLalrBasic.test_unicode_word) Tests that a persistent bug in the `re` module works when `regex` is enabled. ... ok test_utf8 (tests.test_parser.tests.test_parser.TestLalrBasic.test_utf8) ... ok test_alias (tests.test_parser.tests.test_parser.TestLalrContextual.test_alias) ... ok test_backslash (tests.test_parser.tests.test_parser.TestLalrContextual.test_backslash) ... ok test_backslash2 (tests.test_parser.tests.test_parser.TestLalrContextual.test_backslash2) ... ok test_basic1 (tests.test_parser.tests.test_parser.TestLalrContextual.test_basic1) ... ok test_basic2 (tests.test_parser.tests.test_parser.TestLalrContextual.test_basic2) ... ok test_bytes_utf8 (tests.test_parser.tests.test_parser.TestLalrContextual.test_bytes_utf8) ... ok test_default_in_treeless_mode (tests.test_parser.tests.test_parser.TestLalrContextual.test_default_in_treeless_mode) ... ok test_dont_expand1_lists_with_multiple_items (tests.test_parser.tests.test_parser.TestLalrContextual.test_dont_expand1_lists_with_multiple_items) ... ok test_dont_expand1_lists_with_multiple_items_2 (tests.test_parser.tests.test_parser.TestLalrContextual.test_dont_expand1_lists_with_multiple_items_2) ... ok test_dynamic_lexer_prioritization (tests.test_parser.tests.test_parser.TestLalrContextual.test_dynamic_lexer_prioritization) Tests effect of priority on result ... skipped 'dynamic lexer prioritization differs from basic lexer prioritization' test_empty (tests.test_parser.tests.test_parser.TestLalrContextual.test_empty) ... ok test_empty_end (tests.test_parser.tests.test_parser.TestLalrContextual.test_empty_end) ... ok test_empty_expand1_list (tests.test_parser.tests.test_parser.TestLalrContextual.test_empty_expand1_list) ... ok test_empty_expand1_list_2 (tests.test_parser.tests.test_parser.TestLalrContextual.test_empty_expand1_list_2) ... ok test_empty_flatten_list (tests.test_parser.tests.test_parser.TestLalrContextual.test_empty_flatten_list) ... ok test_error_with_interactive_parser (tests.test_parser.tests.test_parser.TestLalrContextual.test_error_with_interactive_parser) ... ok test_escaped_string (tests.test_parser.tests.test_parser.TestLalrContextual.test_escaped_string) Tests common.ESCAPED_STRING ... ok test_expand1_lists_with_one_item (tests.test_parser.tests.test_parser.TestLalrContextual.test_expand1_lists_with_one_item) ... ok test_expand1_lists_with_one_item_2 (tests.test_parser.tests.test_parser.TestLalrContextual.test_expand1_lists_with_one_item_2) ... ok test_float_without_lexer (tests.test_parser.tests.test_parser.TestLalrContextual.test_float_without_lexer) ... ok test_g_regex_flags (tests.test_parser.tests.test_parser.TestLalrContextual.test_g_regex_flags) ... ok test_hex_escape (tests.test_parser.tests.test_parser.TestLalrContextual.test_hex_escape) ... ok test_hex_literal_range_escape (tests.test_parser.tests.test_parser.TestLalrContextual.test_hex_literal_range_escape) ... ok test_ignore (tests.test_parser.tests.test_parser.TestLalrContextual.test_ignore) ... ok test_import (tests.test_parser.tests.test_parser.TestLalrContextual.test_import) ... ok test_import_errors (tests.test_parser.tests.test_parser.TestLalrContextual.test_import_errors) ... ok test_import_rename (tests.test_parser.tests.test_parser.TestLalrContextual.test_import_rename) ... ok test_interactive_treeless_transformer (tests.test_parser.tests.test_parser.TestLalrContextual.test_interactive_treeless_transformer) ... ok test_iter_parse (tests.test_parser.tests.test_parser.TestLalrContextual.test_iter_parse) ... ok test_join_regex_flags (tests.test_parser.tests.test_parser.TestLalrContextual.test_join_regex_flags) ... ok test_keep_all_tokens (tests.test_parser.tests.test_parser.TestLalrContextual.test_keep_all_tokens) ... ok test_lexer_detect_newline_tokens (tests.test_parser.tests.test_parser.TestLalrContextual.test_lexer_detect_newline_tokens) ... ok test_lexer_prioritization (tests.test_parser.tests.test_parser.TestLalrContextual.test_lexer_prioritization) Tests effect of priority on result ... ok test_line_and_column (tests.test_parser.tests.test_parser.TestLalrContextual.test_line_and_column) ... ok test_line_counting (tests.test_parser.tests.test_parser.TestLalrContextual.test_line_counting) ... ok test_match_examples (tests.test_parser.tests.test_parser.TestLalrContextual.test_match_examples) ... ok test_maybe (tests.test_parser.tests.test_parser.TestLalrContextual.test_maybe) ... ok test_maybe_placeholders (tests.test_parser.tests.test_parser.TestLalrContextual.test_maybe_placeholders) ... ok test_meddling_unused (tests.test_parser.tests.test_parser.TestLalrContextual.test_meddling_unused) Unless 'unused' is removed, LALR analysis will fail on reduce-reduce collision ... ok test_multi_import (tests.test_parser.tests.test_parser.TestLalrContextual.test_multi_import) ... ok test_multi_start (tests.test_parser.tests.test_parser.TestLalrContextual.test_multi_start) ... ok test_on_error_without_lalr (tests.test_parser.tests.test_parser.TestLalrContextual.test_on_error_without_lalr) ... skipped 'test on_error only works with lalr' test_parse_textslice (tests.test_parser.tests.test_parser.TestLalrContextual.test_parse_textslice) ... ok test_parse_textslice_fails (tests.test_parser.tests.test_parser.TestLalrContextual.test_parse_textslice_fails) ... skipped 'start_pos and end_pos not compatible with old style custom/dynamic lexer ' test_parser_interactive_parser (tests.test_parser.tests.test_parser.TestLalrContextual.test_parser_interactive_parser) ... ok test_postlex_declare (tests.test_parser.tests.test_parser.TestLalrContextual.test_postlex_declare) ... ok test_postlex_indenter (tests.test_parser.tests.test_parser.TestLalrContextual.test_postlex_indenter) ... ok test_prioritization (tests.test_parser.tests.test_parser.TestLalrContextual.test_prioritization) Tests effect of priority on result ... ok test_prioritization_sum (tests.test_parser.tests.test_parser.TestLalrContextual.test_prioritization_sum) Tests effect of priority on result ... skipped 'Currently only Earley supports priority sum in rules' test_priority_vs_embedded (tests.test_parser.tests.test_parser.TestLalrContextual.test_priority_vs_embedded) ... ok test_ranged_repeat_rules (tests.test_parser.tests.test_parser.TestLalrContextual.test_ranged_repeat_rules) ... ok test_reduce_cycle (tests.test_parser.tests.test_parser.TestLalrContextual.test_reduce_cycle) Tests an edge-condition in the LALR parser, in which a transition state looks exactly like the end state. ... ok test_regex_escaping (tests.test_parser.tests.test_parser.TestLalrContextual.test_regex_escaping) ... ok test_regex_quote (tests.test_parser.tests.test_parser.TestLalrContextual.test_regex_quote) ... ok test_regex_width_fallback (tests.test_parser.tests.test_parser.TestLalrContextual.test_regex_width_fallback) ... ok test_relative_import (tests.test_parser.tests.test_parser.TestLalrContextual.test_relative_import) ... ok test_relative_import_of_nested_grammar (tests.test_parser.tests.test_parser.TestLalrContextual.test_relative_import_of_nested_grammar) ... ok test_relative_import_preserves_leading_underscore (tests.test_parser.tests.test_parser.TestLalrContextual.test_relative_import_preserves_leading_underscore) ... ok test_relative_import_rename (tests.test_parser.tests.test_parser.TestLalrContextual.test_relative_import_rename) ... ok test_relative_import_rules_dependencies_imported_only_once (tests.test_parser.tests.test_parser.TestLalrContextual.test_relative_import_rules_dependencies_imported_only_once) ... ok test_relative_import_unicode (tests.test_parser.tests.test_parser.TestLalrContextual.test_relative_import_unicode) ... ok test_relative_multi_import (tests.test_parser.tests.test_parser.TestLalrContextual.test_relative_multi_import) ... ok test_relative_rule_import (tests.test_parser.tests.test_parser.TestLalrContextual.test_relative_rule_import) ... ok test_relative_rule_import_drop_ignore (tests.test_parser.tests.test_parser.TestLalrContextual.test_relative_rule_import_drop_ignore) ... ok test_relative_rule_import_rename (tests.test_parser.tests.test_parser.TestLalrContextual.test_relative_rule_import_rename) ... ok test_relative_rule_import_subrule (tests.test_parser.tests.test_parser.TestLalrContextual.test_relative_rule_import_subrule) ... ok test_relative_rule_import_subrule_no_conflict (tests.test_parser.tests.test_parser.TestLalrContextual.test_relative_rule_import_subrule_no_conflict) ... ok test_rule_collision (tests.test_parser.tests.test_parser.TestLalrContextual.test_rule_collision) ... ok test_rule_collision2 (tests.test_parser.tests.test_parser.TestLalrContextual.test_rule_collision2) ... ok test_serialize (tests.test_parser.tests.test_parser.TestLalrContextual.test_serialize) ... ok test_special_chars (tests.test_parser.tests.test_parser.TestLalrContextual.test_special_chars) ... ok test_stack_for_ebnf (tests.test_parser.tests.test_parser.TestLalrContextual.test_stack_for_ebnf) Verify that stack depth isn't an issue for EBNF grammars ... ok test_start (tests.test_parser.tests.test_parser.TestLalrContextual.test_start) ... ok test_strict (tests.test_parser.tests.test_parser.TestLalrContextual.test_strict) ... ok test_stringio_unicode (tests.test_parser.tests.test_parser.TestLalrContextual.test_stringio_unicode) Verify that a Lark can be created from file-like objects other than Python's standard 'file' object ... ok test_templates (tests.test_parser.tests.test_parser.TestLalrContextual.test_templates) ... ok test_templates_alias (tests.test_parser.tests.test_parser.TestLalrContextual.test_templates_alias) ... ok test_templates_import (tests.test_parser.tests.test_parser.TestLalrContextual.test_templates_import) ... ok test_templates_modifiers (tests.test_parser.tests.test_parser.TestLalrContextual.test_templates_modifiers) ... ok test_templates_recursion (tests.test_parser.tests.test_parser.TestLalrContextual.test_templates_recursion) ... ok test_templates_templates (tests.test_parser.tests.test_parser.TestLalrContextual.test_templates_templates) ... ok test_token_collision (tests.test_parser.tests.test_parser.TestLalrContextual.test_token_collision) ... ok test_token_collision2 (tests.test_parser.tests.test_parser.TestLalrContextual.test_token_collision2) ... ok test_token_collision_WS (tests.test_parser.tests.test_parser.TestLalrContextual.test_token_collision_WS) ... ok test_token_ebnf (tests.test_parser.tests.test_parser.TestLalrContextual.test_token_ebnf) ... ok test_token_flags (tests.test_parser.tests.test_parser.TestLalrContextual.test_token_flags) ... ok test_token_flags2 (tests.test_parser.tests.test_parser.TestLalrContextual.test_token_flags2) ... ok test_token_flags3 (tests.test_parser.tests.test_parser.TestLalrContextual.test_token_flags3) ... ok test_token_flags_collision (tests.test_parser.tests.test_parser.TestLalrContextual.test_token_flags_collision) ... ok test_token_flags_verbose (tests.test_parser.tests.test_parser.TestLalrContextual.test_token_flags_verbose) ... ok test_token_flags_verbose_multiline (tests.test_parser.tests.test_parser.TestLalrContextual.test_token_flags_verbose_multiline) ... ok test_token_not_anon (tests.test_parser.tests.test_parser.TestLalrContextual.test_token_not_anon) Tests that "a" is matched as an anonymous token, and not A. ... ok test_twice_empty (tests.test_parser.tests.test_parser.TestLalrContextual.test_twice_empty) ... ok test_unicode (tests.test_parser.tests.test_parser.TestLalrContextual.test_unicode) ... ok test_unicode2 (tests.test_parser.tests.test_parser.TestLalrContextual.test_unicode2) ... ok test_unicode3 (tests.test_parser.tests.test_parser.TestLalrContextual.test_unicode3) ... ok test_unicode4 (tests.test_parser.tests.test_parser.TestLalrContextual.test_unicode4) ... ok test_unicode_class (tests.test_parser.tests.test_parser.TestLalrContextual.test_unicode_class) Tests that character classes from the `regex` module work correctly. ... ok test_unicode_literal_range_escape (tests.test_parser.tests.test_parser.TestLalrContextual.test_unicode_literal_range_escape) ... ok test_unicode_literal_range_escape2 (tests.test_parser.tests.test_parser.TestLalrContextual.test_unicode_literal_range_escape2) ... ok test_unicode_word (tests.test_parser.tests.test_parser.TestLalrContextual.test_unicode_word) Tests that a persistent bug in the `re` module works when `regex` is enabled. ... ok test_utf8 (tests.test_parser.tests.test_parser.TestLalrContextual.test_utf8) ... ok test_alias (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_alias) ... ok test_backslash (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_backslash) ... ok test_backslash2 (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_backslash2) ... ok test_basic1 (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_basic1) ... ok test_basic2 (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_basic2) ... ok test_bytes_utf8 (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_bytes_utf8) ... ok test_default_in_treeless_mode (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_default_in_treeless_mode) ... ok test_dont_expand1_lists_with_multiple_items (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_dont_expand1_lists_with_multiple_items) ... ok test_dont_expand1_lists_with_multiple_items_2 (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_dont_expand1_lists_with_multiple_items_2) ... ok test_dynamic_lexer_prioritization (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_dynamic_lexer_prioritization) Tests effect of priority on result ... skipped 'dynamic lexer prioritization differs from basic lexer prioritization' test_empty (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_empty) ... ok test_empty_end (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_empty_end) ... ok test_empty_expand1_list (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_empty_expand1_list) ... ok test_empty_expand1_list_2 (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_empty_expand1_list_2) ... ok test_empty_flatten_list (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_empty_flatten_list) ... ok test_error_with_interactive_parser (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_error_with_interactive_parser) ... ok test_escaped_string (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_escaped_string) Tests common.ESCAPED_STRING ... ok test_expand1_lists_with_one_item (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_expand1_lists_with_one_item) ... ok test_expand1_lists_with_one_item_2 (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_expand1_lists_with_one_item_2) ... ok test_float_without_lexer (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_float_without_lexer) ... ok test_g_regex_flags (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_g_regex_flags) ... ok test_hex_escape (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_hex_escape) ... ok test_hex_literal_range_escape (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_hex_literal_range_escape) ... ok test_ignore (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_ignore) ... ok test_import (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_import) ... ok test_import_errors (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_import_errors) ... ok test_import_rename (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_import_rename) ... ok test_interactive_treeless_transformer (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_interactive_treeless_transformer) ... ok test_iter_parse (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_iter_parse) ... ok test_join_regex_flags (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_join_regex_flags) ... ok test_keep_all_tokens (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_keep_all_tokens) ... ok test_lexer_detect_newline_tokens (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_lexer_detect_newline_tokens) ... ok test_lexer_prioritization (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_lexer_prioritization) Tests effect of priority on result ... ok test_line_and_column (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_line_and_column) ... ok test_line_counting (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_line_counting) ... ok test_match_examples (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_match_examples) ... ok test_maybe (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_maybe) ... ok test_maybe_placeholders (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_maybe_placeholders) ... ok test_meddling_unused (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_meddling_unused) Unless 'unused' is removed, LALR analysis will fail on reduce-reduce collision ... ok test_multi_import (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_multi_import) ... ok test_multi_start (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_multi_start) ... ok test_on_error_without_lalr (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_on_error_without_lalr) ... skipped 'test on_error only works with lalr' test_parse_textslice (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_parse_textslice) ... ok test_parse_textslice_fails (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_parse_textslice_fails) ... skipped 'start_pos and end_pos not compatible with old style custom/dynamic lexer ' test_parser_interactive_parser (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_parser_interactive_parser) ... ok test_postlex_declare (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_postlex_declare) ... ok test_postlex_indenter (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_postlex_indenter) ... ok test_prioritization (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_prioritization) Tests effect of priority on result ... ok test_prioritization_sum (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_prioritization_sum) Tests effect of priority on result ... skipped 'Currently only Earley supports priority sum in rules' test_priority_vs_embedded (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_priority_vs_embedded) ... ok test_ranged_repeat_rules (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_ranged_repeat_rules) ... ok test_reduce_cycle (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_reduce_cycle) Tests an edge-condition in the LALR parser, in which a transition state looks exactly like the end state. ... ok test_regex_escaping (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_regex_escaping) ... ok test_regex_quote (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_regex_quote) ... ok test_regex_width_fallback (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_regex_width_fallback) ... ok test_relative_import (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_relative_import) ... ok test_relative_import_of_nested_grammar (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_relative_import_of_nested_grammar) ... ok test_relative_import_preserves_leading_underscore (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_relative_import_preserves_leading_underscore) ... ok test_relative_import_rename (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_relative_import_rename) ... ok test_relative_import_rules_dependencies_imported_only_once (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_relative_import_rules_dependencies_imported_only_once) ... ok test_relative_import_unicode (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_relative_import_unicode) ... ok test_relative_multi_import (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_relative_multi_import) ... ok test_relative_rule_import (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_relative_rule_import) ... ok test_relative_rule_import_drop_ignore (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_relative_rule_import_drop_ignore) ... ok test_relative_rule_import_rename (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_relative_rule_import_rename) ... ok test_relative_rule_import_subrule (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_relative_rule_import_subrule) ... ok test_relative_rule_import_subrule_no_conflict (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_relative_rule_import_subrule_no_conflict) ... ok test_rule_collision (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_rule_collision) ... ok test_rule_collision2 (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_rule_collision2) ... ok test_serialize (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_serialize) ... ok test_special_chars (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_special_chars) ... ok test_stack_for_ebnf (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_stack_for_ebnf) Verify that stack depth isn't an issue for EBNF grammars ... ok test_start (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_start) ... ok test_strict (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_strict) ... ok test_stringio_unicode (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_stringio_unicode) Verify that a Lark can be created from file-like objects other than Python's standard 'file' object ... ok test_templates (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_templates) ... ok test_templates_alias (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_templates_alias) ... ok test_templates_import (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_templates_import) ... ok test_templates_modifiers (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_templates_modifiers) ... ok test_templates_recursion (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_templates_recursion) ... ok test_templates_templates (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_templates_templates) ... ok test_token_collision (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_token_collision) ... ok test_token_collision2 (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_token_collision2) ... ok test_token_collision_WS (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_token_collision_WS) ... ok test_token_ebnf (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_token_ebnf) ... ok test_token_flags (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_token_flags) ... ok test_token_flags2 (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_token_flags2) ... ok test_token_flags3 (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_token_flags3) ... ok test_token_flags_collision (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_token_flags_collision) ... skipped 'Requires context sensitive terminal selection' test_token_flags_verbose (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_token_flags_verbose) ... ok test_token_flags_verbose_multiline (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_token_flags_verbose_multiline) ... ok test_token_not_anon (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_token_not_anon) Tests that "a" is matched as an anonymous token, and not A. ... ok test_twice_empty (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_twice_empty) ... ok test_unicode (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_unicode) ... ok test_unicode2 (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_unicode2) ... ok test_unicode3 (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_unicode3) ... ok test_unicode4 (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_unicode4) ... ok test_unicode_class (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_unicode_class) Tests that character classes from the `regex` module work correctly. ... ok test_unicode_literal_range_escape (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_unicode_literal_range_escape) ... ok test_unicode_literal_range_escape2 (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_unicode_literal_range_escape2) ... ok test_unicode_word (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_unicode_word) Tests that a persistent bug in the `re` module works when `regex` is enabled. ... ok test_utf8 (tests.test_parser.tests.test_parser.TestLalrCustom_new.test_utf8) ... ok test_basic (tests.test_lexer.TestLexer.test_basic) ... ok test_subset_lex (tests.test_lexer.TestLexer.test_subset_lex) ... ok test_alias (tests.test_parser.TestParsers.test_alias) ... ok test_backwards_custom_lexer (tests.test_parser.TestParsers.test_backwards_custom_lexer) ... ok test_big_list (tests.test_parser.TestParsers.test_big_list) ... ok test_comment_in_rule_definition (tests.test_parser.TestParsers.test_comment_in_rule_definition) ... ok test_custom_input (tests.test_parser.TestParsers.test_custom_input) ... ok test_embedded_transformer (tests.test_parser.TestParsers.test_embedded_transformer) ... ok test_embedded_transformer_inplace (tests.test_parser.TestParsers.test_embedded_transformer_inplace) ... ok test_expand1 (tests.test_parser.TestParsers.test_expand1) ... ok test_infinite_recurse (tests.test_parser.TestParsers.test_infinite_recurse) ... ok test_lexer_token_limit (tests.test_parser.TestParsers.test_lexer_token_limit) Python has a stupid limit of 100 groups in a regular expression. Test that we handle this limitation ... ok test_propagate_positions (tests.test_parser.TestParsers.test_propagate_positions) ... ok test_propagate_positions2 (tests.test_parser.TestParsers.test_propagate_positions2) ... ok test_same_ast (tests.test_parser.TestParsers.test_same_ast) Tests that Earley and LALR parsers produce equal trees ... ok test_vargs_meta (tests.test_parser.TestParsers.test_vargs_meta) ... ok test_vargs_tree (tests.test_parser.TestParsers.test_vargs_tree) ... ok test_visit_tokens (tests.test_parser.TestParsers.test_visit_tokens) ... ok test_visit_tokens2 (tests.test_parser.TestParsers.test_visit_tokens2) ... ok test_match_on_tree (tests.test_pattern_matching.TestPatternMatching.test_match_on_tree) ... ok test_matches_with_bad_token_type (tests.test_pattern_matching.TestPatternMatching.test_matches_with_bad_token_type) ... ok test_matches_with_str_positional_arg (tests.test_pattern_matching.TestPatternMatching.test_matches_with_str_positional_arg) ... ok test_matches_with_string (tests.test_pattern_matching.TestPatternMatching.test_matches_with_string) ... ok test_matches_with_token_kwarg_type (tests.test_pattern_matching.TestPatternMatching.test_matches_with_token_kwarg_type) ... ok test_matches_with_token_positional_arg (tests.test_pattern_matching.TestPatternMatching.test_matches_with_token_positional_arg) ... ok test_BIN_NUMBER (tests.test_python_grammar.TestPythonParser.test_BIN_NUMBER) ... ok test_DEC_NUMBER (tests.test_python_grammar.TestPythonParser.test_DEC_NUMBER) ... ok test_FLOAT_NUMBER (tests.test_python_grammar.TestPythonParser.test_FLOAT_NUMBER) ... ok test_HEX_NUMBER (tests.test_python_grammar.TestPythonParser.test_HEX_NUMBER) ... ok test_IMAG_NUMBER (tests.test_python_grammar.TestPythonParser.test_IMAG_NUMBER) ... ok test_OCT_NUMBER (tests.test_python_grammar.TestPythonParser.test_OCT_NUMBER) ... ok test_assign_expr_with_variable_named_match (tests.test_python_grammar.TestPythonParser.test_assign_expr_with_variable_named_match) ... ok test_assign_to_variable_named_match (tests.test_python_grammar.TestPythonParser.test_assign_to_variable_named_match) ... ok test_invalid_match_statement (tests.test_python_grammar.TestPythonParser.test_invalid_match_statement) ... ok test_invalid_number (tests.test_python_grammar.TestPythonParser.test_invalid_number) ... ok test_valid_match_statement (tests.test_python_grammar.TestPythonParser.test_valid_match_statement) ... ok test_valid_number (tests.test_python_grammar.TestPythonParser.test_valid_number) ... ok test_alias (tests.test_reconstructor.TestReconstructor.test_alias) ... ok test_expand_rule (tests.test_reconstructor.TestReconstructor.test_expand_rule) ... ok test_json_example (tests.test_reconstructor.TestReconstructor.test_json_example) ... ok test_keep_all_tokens (tests.test_reconstructor.TestReconstructor.test_keep_all_tokens) ... ok test_keep_tokens (tests.test_reconstructor.TestReconstructor.test_keep_tokens) ... ok test_starred_group (tests.test_reconstructor.TestReconstructor.test_starred_group) ... ok test_starred_rule (tests.test_reconstructor.TestReconstructor.test_starred_rule) ... ok test_switch_grammar_unicode_terminal (tests.test_reconstructor.TestReconstructor.test_switch_grammar_unicode_terminal) This test checks that a parse tree built with a grammar containing only ascii characters can be reconstructed ... ok test_contextual (tests.test_tools.TestStandalone.test_contextual) ... ok test_interactive (tests.test_tools.TestStandalone.test_interactive) ... ok test_postlex (tests.test_tools.TestStandalone.test_postlex) ... ok test_simple (tests.test_tools.TestStandalone.test_simple) ... ok test_transformer (tests.test_tools.TestStandalone.test_transformer) ... ok test_aliases (tests.test_tree_forest_transformer.TestTreeForestTransformer.test_aliases) ... ok test_default_ambig (tests.test_tree_forest_transformer.TestTreeForestTransformer.test_default_ambig) ... ok test_default_rule (tests.test_tree_forest_transformer.TestTreeForestTransformer.test_default_rule) ... ok test_default_token (tests.test_tree_forest_transformer.TestTreeForestTransformer.test_default_token) ... ok test_discard (tests.test_tree_forest_transformer.TestTreeForestTransformer.test_discard) ... ok test_handles_ambiguity (tests.test_tree_forest_transformer.TestTreeForestTransformer.test_handles_ambiguity) ... ok test_identity_explicit_ambiguity (tests.test_tree_forest_transformer.TestTreeForestTransformer.test_identity_explicit_ambiguity) ... ok test_identity_resolve_ambiguity (tests.test_tree_forest_transformer.TestTreeForestTransformer.test_identity_resolve_ambiguity) ... ok test_rule_calls (tests.test_tree_forest_transformer.TestTreeForestTransformer.test_rule_calls) ... ok test_token_calls (tests.test_tree_forest_transformer.TestTreeForestTransformer.test_token_calls) ... ok test_transformation (tests.test_tree_forest_transformer.TestTreeForestTransformer.test_transformation) ... ok test_tree_class (tests.test_tree_forest_transformer.TestTreeForestTransformer.test_tree_class) ... ok test_conf_call__same_tree (tests.test_tree_templates.TestTreeTemplatesConf.test_conf_call__same_tree) ... ok test_conf_test_var__is_var (tests.test_tree_templates.TestTreeTemplatesConf.test_conf_test_var__is_var) ... ok test_conf_test_var__not_var (tests.test_tree_templates.TestTreeTemplatesConf.test_conf_test_var__not_var) ... ok test_template_match__default_conf_match_same_tree__empty_dictionary (tests.test_tree_templates.TestTreeTemplatesConf.test_template_match__default_conf_match_same_tree__empty_dictionary) ... ok test_template_match__only_tree (tests.test_tree_templates.TestTreeTemplatesConf.test_template_match__only_tree) This test might become irrelevant in the future ... ok test_template_apply_vars__empty__exception (tests.test_tree_templates.TestTreeTemplatesTemplate.test_template_apply_vars__empty__exception) ... ok test_template_apply_vars__matching_vars__template_replaced (tests.test_tree_templates.TestTreeTemplatesTemplate.test_template_apply_vars__matching_vars__template_replaced) ... ok test_template_apply_vars__no_matching_vars__exception (tests.test_tree_templates.TestTreeTemplatesTemplate.test_template_apply_vars__no_matching_vars__exception) ... ok test_template_match__different_tree__none (tests.test_tree_templates.TestTreeTemplatesTemplate.test_template_match__different_tree__none) ... ok test_template_match__different_tree_no_template__none (tests.test_tree_templates.TestTreeTemplatesTemplate.test_template_match__different_tree_no_template__none) ... ok test_template_match__no_template__empty_dictionary (tests.test_tree_templates.TestTreeTemplatesTemplate.test_template_match__no_template__empty_dictionary) ... ok test_template_match__same_tree_no_template__empty_dictionary (tests.test_tree_templates.TestTreeTemplatesTemplate.test_template_match__same_tree_no_template__empty_dictionary) ... ok test_template_match__with_template__empty_dictionary (tests.test_tree_templates.TestTreeTemplatesTemplate.test_template_match__with_template__empty_dictionary) ... ok test_template_search__same_tree_as_child__empty_generator (tests.test_tree_templates.TestTreeTemplatesTemplate.test_template_search__same_tree_as_child__empty_generator) ... ok test_template_search__same_tree_no_template__empty_generator (tests.test_tree_templates.TestTreeTemplatesTemplate.test_template_search__same_tree_no_template__empty_generator) ... ok test_template_search__with_template__matched_result_with_parent_tree (tests.test_tree_templates.TestTreeTemplatesTemplate.test_template_search__with_template__matched_result_with_parent_tree) ... ok test_template_match__match_same_tree__empty_dictionary (tests.test_tree_templates.TestTreeTemplatesTemplateDefaultConf.test_template_match__match_same_tree__empty_dictionary) ... ok test_translate__empty_translations__same_tree (tests.test_tree_templates.TestTreeTemplatesTemplateTranslator.test_translate__empty_translations__same_tree) ... ok test_translate__one_translations__same_tree (tests.test_tree_templates.TestTreeTemplatesTemplateTranslator.test_translate__one_translations__same_tree) ... ok test_copy (tests.test_trees.TestTrees.test_copy) ... ok test_deepcopy (tests.test_trees.TestTrees.test_deepcopy) ... ok test_discard (tests.test_trees.TestTrees.test_discard) ... ok test_eq (tests.test_trees.TestTrees.test_eq) ... ok test_find_token (tests.test_trees.TestTrees.test_find_token) ... ok test_inline_static (tests.test_trees.TestTrees.test_inline_static) ... ok test_interp (tests.test_trees.TestTrees.test_interp) ... ok test_iter_subtrees (tests.test_trees.TestTrees.test_iter_subtrees) ... ok test_iter_subtrees_topdown (tests.test_trees.TestTrees.test_iter_subtrees_topdown) ... ok test_merge_transformers (tests.test_trees.TestTrees.test_merge_transformers) ... ok test_partial (tests.test_trees.TestTrees.test_partial) ... ok test_pickle (tests.test_trees.TestTrees.test_pickle) ... ok test_repr_runnable (tests.test_trees.TestTrees.test_repr_runnable) ... ok test_smart_decorator (tests.test_trees.TestTrees.test_smart_decorator) ... ok test_transform_token (tests.test_trees.TestTrees.test_transform_token) ... ok test_transformer (tests.test_trees.TestTrees.test_transformer) ... ok test_transformer_variants (tests.test_trees.TestTrees.test_transformer_variants) ... ok test_vargs (tests.test_trees.TestTrees.test_vargs) ... ok test_vargs_override (tests.test_trees.TestTrees.test_vargs_override) ... ok test_vargs_set_name (tests.test_trees.TestTrees.test_vargs_set_name) ... ok test_visitor (tests.test_trees.TestTrees.test_visitor) ... ok test_debug (tests.test_logger.Testlogger.test_debug) ... ok test_loglevel_higher (tests.test_logger.Testlogger.test_loglevel_higher) ... ok test_no_regex_collision (tests.test_logger.Testlogger.test_no_regex_collision) ... skipped "interegular is not installed, can't test regex collisions" test_non_debug (tests.test_logger.Testlogger.test_non_debug) ... ok test_regex_collision (tests.test_logger.Testlogger.test_regex_collision) ... skipped "interegular is not installed, can't test regex collisions" ---------------------------------------------------------------------- Ran 1251 tests OK (skipped=126) py$(PYV): OK congratulations :)