What is Dictu?
Dictu is a very simple dynamically typed programming language
built upon the craftinginterpreters tutorial.
What does Dictu mean?
Dictu means simplistic in Latin.
Documentation for Dictu can be found here
Github repository for Dictu can be found here
$ git clone https://github.com/Jason2605/Dictu.git
$ cd Dictu
$ make dictu
$ ./dictu examples/guessingGame.duThe HTTP class within Dictu requires cURL to be installed when building the interpreter. If you wish to
build Dictu without cURL, and in turn the HTTP class, build with the DISABLE_HTTP flag.
$ git clone https://github.com/Jason2605/Dictu.git
$ cd Dictu
$ make dictu DISABLE_HTTP=1
$ ./dictu examples/guessingGame.duvar userInput;
var guess = 10;
while {
userInput = input("Input your guess: ").toNumber();
print(userInput);
if (userInput == guess) {
print("Well done!");
break;
} else if (userInput < guess) {
print("Too low!");
} else {
print("Too high!");
}
System.sleep(1);
}More here.