Typically with lex and yacc. Or Flex and Bison, which are the open-source equivalents with a few extra features. These break down languages into their components (lexicon) and then use a parse tree to figure out what to do with syntax.
And that’s very specifically just for compilers. Most computers and most programs don’t understand any programming languages other than their own machine code.
Latest Answers