Skip to main content

Finnish programming language inspired by Inform 7

Project description

Retki is a proof-of-concept programming language inspired by Inform 7 and based on the Finnish language. It aims to be a readable and natural-feeling language, to some level understandable to people not knowing it, and easy to learn. To which level these goals were accomplished is debatable, but the result is not bad. Many of the proven features of Inform 7 were succesfully implemented in Finnish.

Below is an example of the language taken from the lyhyt-peli.txt adventure game. It contains two things. First, a property called kirjoitus (text) is added to the esine (item) class along with a boolean flag kirjoitusta sisältävä (containing text). Then an action called lukeminen (reading) is defined. If the player enters a command like lue kirje, the action will be executed and, if both ennen checks are passed, the text in the given item will be showed to the player.

> Lukeminen

Esine on joko kirjoitusta sisältämätön tai kirjoitusta sisältävä.
Esine on yleensä kirjoitusta sisältämätön.

Esineellä on kirjoitukseksi kutsuttu merkkijono.
Esineen kirjoitus on yleensä "".

[Esineen] lukeminen on toiminto.
Tulkitse "lue [esine]" lukemisena.
Tulkitse "lue [esinettä]" lukemisena.

Ennen piilossa olevan esineen lukemista:
        Sano "Et näe sellaista asiaa.".
        Keskeytä toiminto.

Ennen kirjoitusta sisältämättömän esineen lukemista:
        Sano "[Se] ei sisällä mitään kirjoitusta.".
        Keskeytä toiminto.

Kirjoitusta sisältävän esineen lukemisen aikana:
        Sano "Luet [siihen] kirjoitetun tekstin:[rivinvaihto][rivinvaihto]".
        Sano "[sen kirjoitus][rivinvaihto]".

Please read the Finnish documentation for more information.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

retki-0.13.0.tar.gz (36.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

retki-0.13.0-py3-none-any.whl (38.6 kB view details)

Uploaded Python 3

File details

Details for the file retki-0.13.0.tar.gz.

File metadata

  • Download URL: retki-0.13.0.tar.gz
  • Upload date:
  • Size: 36.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux Asahi Remix","version":"43","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for retki-0.13.0.tar.gz
Algorithm Hash digest
SHA256 a81a789030c0327b487b64e7236f16bc4abe0eb70d9a1c1c79d7a6f4f8a4779f
MD5 d304c5bb22ce0ba26dea6c2e048186b0
BLAKE2b-256 f339b7f85f5145227cb8707ac22fc7e57bd1ed34eaee333e6e7c3ad11a02756e

See more details on using hashes here.

File details

Details for the file retki-0.13.0-py3-none-any.whl.

File metadata

  • Download URL: retki-0.13.0-py3-none-any.whl
  • Upload date:
  • Size: 38.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux Asahi Remix","version":"43","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for retki-0.13.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7b128fa8a16eca349a85d15f2824e91959790871ab6b5fa2e446ac8c3cc7a2ba
MD5 d4fd1ad7286aa61323b5ed9ee754ddb3
BLAKE2b-256 56f86434b2ff9aaeaf70e5f5c64e728cae84bcb2e47c32643990737dc83709e6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page