A satirical programming language with bureaucratic syntax and strong static typing.
Gov is a satirical programming language that uses bureaucratic terminology to create fully functional programs. Every program must start with a declaration of love for the government and use polite requests "PLEASE" for some operations.
- Full programming language: Variables, loops, conditions, functions
- Static typing: Strong type system with automatic conversions
- Satirical syntax: All commands use bureaucratic terminology
- Ready interpreter: Includes debugger and AST parser
- VS Code support: Syntax highlighting extension
# Create build directory
mkdir build && cd build
# Configure and build
cmake .. -DCMAKE_BUILD_TYPE=Release
cmake --build . --config Release
# Run a program
./bin/gov examples/hello_world.gov!I_LOVE_GOVERNMENT
PRAISE_LEADER "Hello, World!"
PLEASE DECLARE_VARIABLE "Counter" AS INTEGER
PLEASE SET Counter TO 0
FOR_THE_PEOPLE Counter LESS_THAN 3 DO
PRAISE_LEADER "Long live the Supreme Leader!"
PLEASE INCREMENT Counter BY 1
END_FOR_THE_PEOPLE
./gov <file.gov>- run program./gov parse <file.gov>- show AST structure./gov debug <file.gov>- debug mode./gov --help/./gov -h- help
Full Documentation: GOV_LANGUAGE_DOCUMENTATION.md
Ready programs in examples/ folder:
hello_world.gov- classic "Hello World"calculator.gov- simple calculatornumber_guessing.gov- number guessing gametic_tac_toe.gov- tic tac toe game
Install the extension from extension/ folder for .gov file syntax highlighting.
This project is licensed under the MIT License. See LICENSE for details.