donut-corp/cdomer — reverse-engineered prompt
Reverse engineered prompt
Build me a small programming language called CDOMER in Rust. I want a command line tool that takes a .cdo file, checks it, turns it into C11, then calls gcc or clang to make a native executable. The language should feel familiar to people who know C, Java, Rust, or TypeScript, with static typing plus simple type inference for let.
Please support ints, floats, bools, strings, arrays, structs, functions, if else, while, for, break, continue, and comments. I also want a built in print that can take mixed basic types and just print them nicely. A program should require a main function.
Give me commands to build a file, run it directly, and show the generated C without compiling. Make the compiler report clear lexer, syntax, and type errors with line and column numbers. Include a few example programs like hello world, fibonacci, structs, and arrays with loops, and make it usable on regular Linux and Termux if possible. You can look up current docs online if needed.
Want more depth? Deep Reverse