aboutsummaryrefslogtreecommitdiff
path: root/include/compiler.h
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2019-08-25 11:18:13 +0200
committerdec05eba <dec05eba@protonmail.com>2020-07-25 14:36:46 +0200
commit4d8283e14b0365038b01df4fab5dee75035007ed (patch)
tree758545eeeb9b7eae3b04fdc6a863fd06f3039f6d /include/compiler.h
parentd9f652919961a2947452ad3c4af4659f3d2fb330 (diff)
Remove number of branches in executor
Diffstat (limited to 'include/compiler.h')
-rw-r--r--include/compiler.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/compiler.h b/include/compiler.h
index ac50d28..3e3cc92 100644
--- a/include/compiler.h
+++ b/include/compiler.h
@@ -67,4 +67,10 @@ void amal_compiler_options_init(amal_compiler_options *self);
CHECK_RESULT int amal_compiler_load_file(amal_compiler_options *options, amal_program *program, const char *filepath);
CHECK_RESULT int amal_compiler_internal_load_file(amal_compiler *self, const char *filepath, FileScopeReference **file_scope);
+/*
+ Returns a reference to the parsers tokenizer that contains the code reference, or NULL.
+ Note: The lifetime of the tokenizer returned is the same as the lifetime of the parser that owns it.
+*/
+Tokenizer* amal_compiler_find_tokenizer_by_code_reference(amal_compiler *self, const char *code_ref);
+
#endif