Goog
Goog is a language made by User:Hazel where there is no increnting of the counter and only 137 possible values for a counter. The interpreter was also made by User:Hazel in Go.
Syntax
Goog’s syntax consists of only symbols, with each command corresponding to a function.
- ".": Decrements the counter by one.
- "[": Opens a new bracket, effectively starting a separate counter.
- "]": Closes the bracket, deleting the separate counter.
- "+": Prints the current value of the counter.
- "/": Prints the counter's value as an ASCII character.
- Newline: Resets the counter to its initial state.
- goog: Prints "goog..."
- "#": Accepts user input, storing the ASCII value of the first character in the PI counter.
- "*": Sets the current counter to be the value of the PI counter.
- "&": Prints a newline, does not reset counter.
Technical Details
- The counter always wraps around between its minimum and maximum values.
- The minimum value is `-8` and the maximum is `128`, meaning the language consists of 137 values.
Examples
helloworld (Unoptimized)
................................./ ..................................../ ............................./ ............................./ ........................../ .................................................................................................................../ ................../ ........................../ ......................./ ............................./ ...................................../ &
ASCII Table Countdown
#*.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&
External Links
- Interpreter and Design: https://github.com/hablethedev/goog