Middle Manager

From Esolang
Jump to navigation Jump to search

Middle Manager™ is a fully compiled esoteric programming language that transpiles corporate jargon to native C code, created by User:Librarian.

Middle Manager transpiles to standard C code and compiles to native executables via GCC.

Overview

Middle Manager is Turing-complete, as it transpiles directly to C and supports all major C constructs including loops, conditionals, functions, pointers, and dynamic memory allocation.

Language features

  • Complete type system: deliverable (int), synergy (float), deep_dive (double), touchpoint (char), lay_off (void)
  • Control structures: lets_explore (if), circle_back (while), scale_across = (for), evaluate_options (switch)
  • Memory management: allocate_resources (malloc), shift_our_resources (free)
  • Full support for pointers, arrays, structures, and enums
  • Direct access to C standard library functions

Examples

Hello World

  deliverable core_objective() {
      stakeholder_update("Hello, Corporate World!\n");
      deliver 0;
  }

Fibonacci

  deliverable calculate_deliverables(deliverable n) {
      deliverable result = 1;
      scale_across (deliverable i = 2; i <= n; i++) {
          result *= i;
      }
      deliver result;
  }

Implementation

The Middle Manager Compiler (mmc) is a multi-phase transpiler written in C17 consisting of a lexer, parser, semantic analyzer, and code generator. It produces standard C code which is then compiled by GCC into native executables.

External resources