4 languages that can kill themselves
DynamicSquid

4 files, each with a different language. Each file will call the next file, and then commit die. Like this:

Basically how this works is each file calls 2 shell commands, one to run the next file, and one to commit toaster bath. The bash command to commit skydiving without a parachute is rm FILE_NAME.

I also added brief comments on how the shell commands work in each language so you might learn something.

I'm just bored.

You are viewing a single comment. View All
DynamicSquid

@MohammedBalsara Okay, try to make a lexer first. A lexer takes in a string input, and turns that into a list of "tokens". A token is a class which has a type, and the actual token.

For example:

(you do python right?)

A token might look like this:

Right now, you can start small and only focus on arithmetic operations. You want your code to take in input like:

And print this: