Crafting interpreters. Very well written and free of cost, but ofc I’d recommend purchasing a copy. If you find it a bit hard to chew, there is a simpler book using Python: https://www.amazon.ca/Anthony-J-Dos-Reis/e/B001KE4SU8/ref=dp... (https://www.amazon.ca/Anthony-J-Dos-Reis/e/B001KE4SU8/ref=dp_byline_cont_book_1) Another book: Game Scripting Mastery.
Also recommended in this reply