Katkat

Implement compiler for custom language

Jane StreetMachine Learning Engineer · Technical Screen

Last updated

This interview question evaluates requirements, scale assumptions, API/data design, architecture, trade-offs, failure modes, and rollout in a realistic interview setting. A strong answer for Implement compiler for custom language states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.

Question

Design and implement a compiler/interpreter for a simple bespoke programming language in your preferred language. Describe your object-oriented design, the compilation pipeline, and how you would detect and fix bugs.