Skip to content
archived tooling

Mouse-Script Interpreter

Custom scripting language with lexer and parser

Role

Solo Developer

Timeframe

2017

Stack

C++

Overview

An interpreter for a custom scripting language I designed, inspired by the Windows command line and batch scripting. This was one of my first major programming projects.

Features

  • Lexer - Tokenizes source code into meaningful units
  • Parser - Builds abstract syntax tree from tokens
  • Interpreter - Executes parsed commands
  • Variables - Support for storing and retrieving values
  • Control Flow - Basic conditionals and loops

Example Syntax

SET name = "Calvin"
PRINT "Hello, " + name
IF name == "Calvin" THEN
    PRINT "Welcome back!"
END

What I Learned

This project taught me:

  • How programming languages work under the hood
  • Lexical analysis and parsing techniques
  • State management in interpreters
  • C++ memory management

Building this at 15 years old gave me a deep appreciation for compiler design and language implementation.

Outcomes

  • Custom lexer and parser implementation
  • Variable support and control flow
  • Batch-style command syntax

Need a product or system like this shipped properly?

Send the product, workflow or problem you are working on. We can talk it through in a consultation, build it together in tutoring sessions, or scope it as a project quoted before work starts.

See consultations, tutoring and projects