Drive-In Window

This page is a work in progess

Drive-In Window is an esoteric programming language created by User:JWinslow23 in 2013. The layout is similar to what someone would order at a restaurant. It is believed to be Turing-complete, but proof has yet to be made.

Drive-In Window: Like Chef, except you're ordering the recipe!

Pre-program delcarations
A Drive-In Window program always starts with a greeting and a menu declaration.

The menu contains values you want the variables (people) to have. The menu items can be named anything you want, but these foods will have the same value throughout the program. The menu must have multiples of 10 as values.

The program will also have sides, which you can add or subtract to the main food items to get values you want. Sides are not necessary, but encouraged.

Immediately afterwards is the program start declaration, "May I take your order?"

An example of a menu and side menu:

Hi, welcome to Name_of_restaurant. Here is a menu. Tootsie Rolls: $30 Rice Krispie Treats: $40 Cookies: $70 Chocolate: $90 Ice Cream: $110 Here are your sides. Sprinkles: $1 Chocolate Chips: $2 Crushed Oreo: $3 Chocolate Sauce: $4 Caramel: $5 May I take your order?

Now you are ready to order.

In-program commands
All people start out with a value of 0. With commands, you can change their value throughout the program. They can't be under 0 or over 255, it wraps around.

Below is a table of commands and their syntax.

End of program
At the end of the program, you have to say the following, with any dollar amount.

OK, that will be $1.95. Thanks for coming!

Cat program
Hi, welcome to The_Cats_Meow. Here is a menu. Cat Food: $10 May I take your order? Person 1 would like the Cat Food. Let's just do this until Person 1 has no more money! OK, what should Person 1 get? Person 1 will pay for his order! Person 1 has no more money! OK, that'll be $39.95. Thanks for coming!

This copies input directly to output. Person 1 got the $10 Cat Food to make him go into the loop. Then he asks for input, and outputs it. It keeps going until ASCII code 0 is inputted, or an EOF is reached, or you terminate the program.

Truth Machine
Hi, welcome to Spill_The_Beans. Here is a menu. Vodka: $50 Here are your sides. Truth Serum: $2 May I take your order? OK, how much money should Person 1 have? Let's just do this until Person 1 has no more money! Person 1 would also like the Vodka, hold the Truth Serum. Let's just do this until Person 1 has no more money! Person 1 will pay for his order! Person 1 has no more money! Person 1 has no more money! Person 1 would also like the Vodka, hold the Truth Serum. Person 1 will pay for his order! Just wait while we decide... OK, that will be $48. Thanks for coming!

Hello, World!
The classic example, now in short order!

Hi, welcome to Hello_World_Buffet. Here is a menu. Rice Krispie Treat: $10 Ice Cream: $30 Cookies: $70 Here are your sides. Whipped Cream: $1 Chocolate: $2 Caramel: $3 May I take your order? Person 1 would like the Cookies with Chocolate. Person 1 will pay for his order! Person 2 would like the Ice Cream, hold the Whipped Cream. Person 2 would also like what Person 1 has. Person 2 will pay for his order! Person 2 needs 7 dollars more for his order! Person 2 will pay for his order! Person 2 will pay for his order! Person 2 needs 3 dollars more for his order! Person 2 will pay for his order! Person 3 would like the Ice Cream with Chocolate. Person 3 will pay for his order! Person 1 would also like the Rice Krispie Treat with Caramel. Person 1 needs 2 more dollars for his order! Person 1 will pay for his order! Person 2 will pay for his order! Person 2 needs 3 dollars more for his order! Person 2 will pay for his order! Person 2 needs 6 dollars less for his order! Person 2 will pay for his order! Person 2 needs 8 dollars less for his order! Person 2 will pay for his order! Person 3 needs 1 dollar more for his order! Person 3 will pay for his order! Just wait while we decide... OK, that will be $1.14. Thanks for coming!