Skip to content

jeremyswerdlow/grook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Grook

Grook is an esolang inspired by Ook!. Like its inspiration, Grook is intended to be writeable by someone other than humans; in this case, it is meant for use by a certain loveable Marvel Character.

The repository contains several files related to the generation and running of Grook code. Please see the short descriptions of each below.

Grook is in no way associated with or funded by Marvel or any other company. This is purely for fun!

The convert_to_grook.py file serves the purpose of generating Grook code. It is a simple translator for code from Brainf*ck to Grook. It can be called as follows:

usage: convert_to_grook.py [-h] [--output OUTPUT] input

positional arguments:
  input                 the input file to convert

optional arguments:
  -h, --help            show this help message and exit
  --output OUTPUT, -o OUTPUT
                        the output file to write to

The grook.py file serves as an interpreter for Grook code. It was adapted from Elliot Chance's guide Write Your Own Brainfck Interpreter*, which can be found here.

It can be called as follows:

usage: grook.py [-h] [--save-generated] input

positional arguments:
  input                 the input Grook file to run

optional arguments:
  -h, --help            show this help message and exit
  --save-generated, -s  save the generated lex and yacc files

The examples directory includes example files related to the Grook language and translating to it.

Contributing & Issues

This is an ongoing project; it does not have a full set of Turing operations, as the input delimeter is currently ignored. There are other areas for improvement. Please feel free to open any Issues or Pull Requests against the repository. Thanks in advance!

About

An Esolang based on Ook, but for Groot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages