WIP restart of lib

This commit is contained in:
Maix0 2024-06-24 00:20:08 +02:00
parent e239bfa0ea
commit 9f6b90d596
36 changed files with 15951 additions and 2 deletions

11
parser/nsrc/error_costs.h Normal file
View file

@ -0,0 +1,11 @@
#ifndef TREE_SITTER_ERROR_COSTS_H_
#define TREE_SITTER_ERROR_COSTS_H_
#define ERROR_STATE 0
#define ERROR_COST_PER_RECOVERY 500
#define ERROR_COST_PER_MISSING_TREE 110
#define ERROR_COST_PER_SKIPPED_TREE 100
#define ERROR_COST_PER_SKIPPED_LINE 30
#define ERROR_COST_PER_SKIPPED_CHAR 1
#endif