tree-sitter/src/runtime
Max Brunsfeld 009d6d1534 Improve heuristics for pruning parse versions based on errors
* Rewrite the error cost comparison in terms of explicit, discrete
conditions.
* Allow merging versions have different error costs.
* Store the depth of each stack version since the last error. Use this
state to prevent incorrect merging.
* Sort the stack versions in order of preference and put a hard limit on
the version count.
2017-06-29 15:00:20 -07:00
..
alloc.h Abort if malloc fails 2016-11-05 21:23:23 -07:00
array.h Avoid including trailing extra tokens within error nodes unnecessarily 2017-02-19 21:21:54 -08:00
document.c Avoid use-after-free of external token states 2017-06-27 14:54:27 -07:00
document.h Remove the TS prefix from some internal type/function names 2016-11-09 20:59:05 -08:00
error_costs.c Improve heuristics for pruning parse versions based on errors 2017-06-29 15:00:20 -07:00
error_costs.h Improve heuristics for pruning parse versions based on errors 2017-06-29 15:00:20 -07:00
language.c Define a function providing the type of a given symbol. 2017-04-12 09:47:51 -04:00
language.h Tweak naming and organization of external-scanner related language fields 2016-12-21 11:24:41 -08:00
length.h Fix error in changed ranges calculation 2017-01-27 23:47:34 -08:00
lexer.c Avoid use-after-free of external token states 2017-06-27 14:54:27 -07:00
lexer.h Avoid use-after-free of external token states 2017-06-27 14:54:27 -07:00
node.c Add serialize, deserialize and reset callbacks to external scanners 2016-12-20 13:12:01 -08:00
node.h Represent byte, char and tree counts as 32 bit numbers 2016-11-14 12:19:13 -08:00
parser.c Improve heuristics for pruning parse versions based on errors 2017-06-29 15:00:20 -07:00
parser.h Add an option to immediately halt on syntax error 2017-05-01 13:50:49 -07:00
point.h Remove the TS prefix from some internal type/function names 2016-11-09 20:59:05 -08:00
reduce_action.h Represent byte, char and tree counts as 32 bit numbers 2016-11-14 12:19:13 -08:00
reusable_node.h Avoid use-after-free of external token states 2017-06-27 14:54:27 -07:00
stack.c Improve heuristics for pruning parse versions based on errors 2017-06-29 15:00:20 -07:00
stack.h Improve heuristics for pruning parse versions based on errors 2017-06-29 15:00:20 -07:00
string_input.c Add TSInput option to measure columns in bytes not characters 2017-06-15 16:35:34 -07:00
string_input.h Construct TSStringInput with explicit length. 2017-02-10 09:10:06 -05:00
tree.c Improve heuristics for pruning parse versions based on errors 2017-06-29 15:00:20 -07:00
tree.h Improve heuristics for pruning parse versions based on errors 2017-06-29 15:00:20 -07:00
tree_path.h Always recur into error nodes when reporting changed ranges 2017-06-15 17:06:48 -07:00
utf16.c Support UTF16 directly 2015-12-28 13:53:22 -08:00
utf16.h Support UTF16 directly 2015-12-28 13:53:22 -08:00