@rak1507 Computer Science college courses spend a good deal of time on lexing, parsing, tokenising, computer language grammars, and the thing you get next (Abstract Syntax Trees). If you want to follow through how it works in general,
craftinginterpreters.com is a free book that guides through building a small language interpreter in Java