tree-sitter/src/compiler
Max Brunsfeld 20982fdcb9 Mark tokens as non-reusable in states where shorter takes take precedence
This fixes some randomized test failures in the C grammar, relating to Object-like macros.
The object-like macro rule relies on a whitespace token in order to distinguish object-like
macros whose values begin with a '(' from function-like macros. The presence of that
whitespace token means that other nodes should not be reusable in that state.
2017-06-22 16:04:42 -07:00
..
build_tables Mark tokens as non-reusable in states where shorter takes take precedence 2017-06-22 16:04:42 -07:00
generate_code just make it static 2017-03-24 18:38:21 -04:00
prepare_grammar Allow anonymous tokens to be used in grammars' external token lists 2017-03-17 16:31:29 -07:00
rules Remove use of shared_ptr in choice, repeat, and seq factories 2017-03-17 14:28:13 -07:00
util Format make_visitor helper consistently w/ project 2017-03-17 13:37:26 -07:00
compile.cc Implement Rule as a union rather than an abstract base class 2017-03-17 13:29:31 -07:00
compile.h Implement Rule as a union rather than an abstract base class 2017-03-17 13:29:31 -07:00
compile_error.h Implement Rule as a union rather than an abstract base class 2017-03-17 13:29:31 -07:00
grammar.h Allow anonymous tokens to be used in grammars' external token lists 2017-03-17 16:31:29 -07:00
lex_table.cc Implement Rule as a union rather than an abstract base class 2017-03-17 13:29:31 -07:00
lex_table.h Implement Rule as a union rather than an abstract base class 2017-03-17 13:29:31 -07:00
lexical_grammar.h Implement Rule as a union rather than an abstract base class 2017-03-17 13:29:31 -07:00
parse_grammar.cc Allow anonymous tokens to be used in grammars' external token lists 2017-03-17 16:31:29 -07:00
parse_grammar.h Implement Rule as a union rather than an abstract base class 2017-03-17 13:29:31 -07:00
parse_table.cc Non-terminal entries always have valid state-ids 2017-06-14 08:49:38 -04:00
parse_table.h Implement Rule as a union rather than an abstract base class 2017-03-17 13:29:31 -07:00
precedence_range.cc Include precedence calculation in LexItemSet::transitions 2015-10-30 16:07:29 -07:00
precedence_range.h Include precedence calculation in LexItemSet::transitions 2015-10-30 16:07:29 -07:00
rule.cc Remove use of shared_ptr in choice, repeat, and seq factories 2017-03-17 14:28:13 -07:00
rule.h Remove use of shared_ptr in choice, repeat, and seq factories 2017-03-17 14:28:13 -07:00
syntax_grammar.h Allow anonymous tokens to be used in grammars' external token lists 2017-03-17 16:31:29 -07:00