Make ts_compile_grammar take an optional log file, start logging to it
This commit is contained in:
parent
69d8c6f5e6
commit
6fca8f2f4d
13 changed files with 164 additions and 25 deletions
|
|
@ -5,6 +5,8 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
typedef enum {
|
||||
TSCompileErrorTypeNone,
|
||||
TSCompileErrorTypeInvalidGrammar,
|
||||
|
|
@ -25,7 +27,7 @@ typedef struct {
|
|||
TSCompileErrorType error_type;
|
||||
} TSCompileResult;
|
||||
|
||||
TSCompileResult ts_compile_grammar(const char *input);
|
||||
TSCompileResult ts_compile_grammar(const char *input, FILE *log_file);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue