Stage 1: Coding the lexer - Scans raw program to turn text into a clean list of categorized tokens.
Stage 2: Coding the parser - Arranges those tokens into an abstract syntax tree to make sure the code follows proper grammatical rules (the tokens are in correct order).
Stage 3: Coding the Interpreter - Walks through the tree and executes the logic by performing math and managing variable memory.
Stage 4: Implementing data structures - Added support for Arrays and Stacks so the language could store and manipulate lists of information.
Stage 5: Creating syntax sugar - Implemented quality of life features like string interpolation and shortcut operators to make the code look professional.
Stage 6: Making exemplary programs - Wrote actual programs like calculators and temperature conversion programs in Klang to prove the engine was stable and fast.
Log in to leave a comment