tree-sitter/test/fixtures/test_grammars
Max Brunsfeld 201b41cf11
feat: add 'reserved word' construct
Co-authored-by: Amaan Qureshi <amaanq12@gmail.com>
2024-12-23 03:06:32 -05:00
..
aliased_inlined_rules Convert some of the fixture grammars from JSON to JS 2021-10-22 18:47:23 -06:00
aliased_rules Avoid extracting default alias for extras 2022-08-10 07:27:34 -07:00
aliased_token_rules Convert some of the fixture grammars from JSON to JS 2021-10-22 18:47:23 -06:00
aliased_unit_reductions Convert some of the fixture grammars from JSON to JS 2021-10-22 18:47:23 -06:00
anonymous_tokens_with_escaped_chars Fix typos 2022-06-28 19:57:42 +08:00
associativity_left Convert some of the fixture grammars from JSON to JS 2021-10-22 18:47:23 -06:00
associativity_missing Convert some of the fixture grammars from JSON to JS 2021-10-22 18:47:23 -06:00
associativity_right Convert some of the fixture grammars from JSON to JS 2021-10-22 18:47:23 -06:00
conflict_in_repeat_rule Convert some of the fixture grammars from JSON to JS 2021-10-22 18:47:23 -06:00
conflict_in_repeat_rule_after_external_token Convert some of the fixture grammars from JSON to JS 2021-10-22 18:47:23 -06:00
conflicting_precedence Convert some of the fixture grammars from JSON to JS 2021-10-22 18:47:23 -06:00
depends_on_column fix: handle more cases of editing subtrees that depend on column values 2024-09-29 20:36:08 -04:00
dynamic_precedence Convert some of the fixture grammars from JSON to JS 2021-10-22 18:47:23 -06:00
epsilon_external_tokens fix: rework parser.h includes for test grammars and multi-grammar repos 2024-02-02 10:42:39 -05:00
epsilon_rules Convert some of the fixture grammars from JSON to JS 2021-10-22 18:47:23 -06:00
external_and_internal_anonymous_tokens test: modernize scanner files 2024-05-05 18:31:53 -04:00
external_and_internal_tokens test: modernize scanner files 2024-05-05 18:31:53 -04:00
external_extra_tokens test: modernize scanner files 2024-05-05 18:31:53 -04:00
external_tokens feat: allow external scanners to use the logger 2024-08-17 14:46:28 -04:00
external_unicode_column_alignment test: modernize scanner files 2024-05-05 18:31:53 -04:00
extra_non_terminals Convert more test grammars from JSON to JS 2021-11-19 10:35:53 -08:00
extra_non_terminals_with_shared_rules Convert more test grammars from JSON to JS 2021-11-19 10:35:53 -08:00
get_col_eof fix(lib): correct unexpected side effect in get_column when the lexer is at EOF 2024-10-08 23:27:42 -04:00
get_col_should_hang_not_crash fix: rework parser.h includes for test grammars and multi-grammar repos 2024-02-02 10:42:39 -05:00
immediate_tokens Convert more test grammars from JSON to JS 2021-11-19 10:35:53 -08:00
inline_rules Convert more test grammars from JSON to JS 2021-11-19 10:35:53 -08:00
inlined_aliased_rules Convert more fixture grammars from JSON to JS 2021-12-30 16:27:02 -08:00
inverted_external_token test: modernize scanner files 2024-05-05 18:31:53 -04:00
invisible_start_rule Convert more fixture grammars from JSON to JS 2021-12-30 16:27:02 -08:00
lexical_conflicts_due_to_state_merging refactor(tests): migrate remaining grammar.json tests to grammar.js 2024-04-29 00:01:35 -04:00
named_precedences refactor(tests): migrate remaining grammar.json tests to grammar.js 2024-04-29 00:01:35 -04:00
named_rule_aliased_as_anonymous refactor(tests): migrate remaining grammar.json tests to grammar.js 2024-04-29 00:01:35 -04:00
nested_inlined_rules refactor(tests): migrate remaining grammar.json tests to grammar.js 2024-04-29 00:01:35 -04:00
next_sibling_from_zwt fix(lib): correct next sibling of zero width node 2024-11-12 18:17:45 -05:00
partially_resolved_conflict refactor(tests): migrate remaining grammar.json tests to grammar.js 2024-04-29 00:01:35 -04:00
precedence_on_single_child_missing refactor(tests): migrate remaining grammar.json tests to grammar.js 2024-04-29 00:01:35 -04:00
precedence_on_single_child_negative refactor(tests): migrate remaining grammar.json tests to grammar.js 2024-04-29 00:01:35 -04:00
precedence_on_single_child_positive refactor(tests): migrate remaining grammar.json tests to grammar.js 2024-04-29 00:01:35 -04:00
precedence_on_subsequence refactor(tests): migrate remaining grammar.json tests to grammar.js 2024-04-29 00:01:35 -04:00
precedence_on_token refactor(tests): migrate remaining grammar.json tests to grammar.js 2024-04-29 00:01:35 -04:00
readme_grammar refactor(tests): migrate remaining grammar.json tests to grammar.js 2024-04-29 00:01:35 -04:00
reserved_words feat: add 'reserved word' construct 2024-12-23 03:06:32 -05:00
start_rule_is_blank refactor(tests): migrate remaining grammar.json tests to grammar.js 2024-04-29 00:01:35 -04:00
start_rule_is_token refactor(tests): migrate remaining grammar.json tests to grammar.js 2024-04-29 00:01:35 -04:00
unicode_classes refactor(tests): migrate remaining grammar.json tests to grammar.js 2024-04-29 00:01:35 -04:00
unused_rules refactor(tests): migrate remaining grammar.json tests to grammar.js 2024-04-29 00:01:35 -04:00
uses_current_column test: modernize scanner files 2024-05-05 18:31:53 -04:00
readme.md Rename spec -> test 2017-03-09 20:40:01 -08:00

These small grammars demonstrate specific features or test for certain specific regressions.

For some of them, compilation is expected to fail with a given error message. For others, the resulting parser is expected to produce certain trees.