- Village
- 20 Jun 2018 05:01:36 pm
- Last edited by iPhoenix on 05 Jul 2018 11:53:39 am; edited 1 time in total
Village
I seem to be starting new projects every day now x.x
Village is an esoteric programming language. You are a very forgetful village chief, so you write down what you plan to do that day on a sheet of paper, which apparently has line numbers. I did all of this today, so don't expect too much.
Here's some example code:
Code:
Here's the interpreter. You can copy the code above and execute it directly. The program, it's super crappy, but I'm super excited about this.
There isn't any documentation yet, but the program above and the source code here should help.
I seem to be starting new projects every day now x.x
Village is an esoteric programming language. You are a very forgetful village chief, so you write down what you plan to do that day on a sheet of paper, which apparently has line numbers. I did all of this today, so don't expect too much.
Here's some example code:
Code:
Note: You a a super forgetful chief of a village, who wants to
Note: get things done and writes things down in the order you
Note: want them to happen. These are your notes for today:
Call for the villager named Alan.
Call for the villager named Bertrand.
Call for the villager named Charles.
Call for the villager named Dennis.
Tell Alan to make a blueprint for a structure that requires 10 wood and 5 stone.
Tell Charles to gather 10 wood.
Tell Dennis to mine 6 stone.
Note: This doesn't count as a command, it's a comment, and neither do
Note: blank lines. Note that the "Note:"'s are case insensitive.
Note: While we are waiting, here's a hello world program.
Call for the villager named Edsger.
Tell Edsger to write the text "Hello, world!" on his scroll.
Tell Edsger to post his scroll to the Community Message Board.
Tell Bertrand to build a structure using Alan's blueprint, Charles's wood, and Dennis's stone.
Tell Dennis to mine 5 stone.
Note: Also, if you call villagers using the wrong pronoun,
Note: you will have problems.
Note: this errors, because Edsger is male and prefers the use of "his".
Tell Edsger to write the text "example" on her scroll.
Note: If you think I'm being an jerk because of this,
Note: 1, this is a freaking programming language, and 2,
Note: check the comment here: https://github.com/Legend-of-iPhoenix/Village/blob/a8d53ad79a76b9bb129c75165c4a5ad67179e25d/main.js#L89
Here's the interpreter. You can copy the code above and execute it directly. The program, it's super crappy, but I'm super excited about this.
There isn't any documentation yet, but the program above and the source code here should help.