Skip to main content

Robust(?) string manipulation language

Project description

Introduction

A programming language specifically designed such that ASTs generated by markov chain are likely to produce programs with meaningful effect

—mcc (@mcclure111) July 11, 2015

Xenoglossia is a simple string manipulation language, akin to sed. It was created with the goal of producing surprising, fun-to-read programs which can be generated in novel manners by a computer.

An introduction to the language and its syntax can be found in the design document, and the documentation of the builtin functions can currently be found in the docstrings of the builtins module.

Usage

Xenoglossia will install an executable named xg. To run a program, call xg --input STRING "xenoglossia program"; for example:

xg --input "This is the input string" "sub 'input' 'output'"

You can also pipe input into stdin:

echo "This is the input string" | xg "sub 'input' 'output'"

Sample programs

Replace two words in a sentence:

gsub "favorite" "favourite" gsub "color" "colour"

Rearrange the words in a sentence, then capitalize the new sentence:

burst " " shuffle capitalize

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

xenoglossia-0.2.tar.gz (5.2 kB view details)

Uploaded Source

File details

Details for the file xenoglossia-0.2.tar.gz.

File metadata

  • Download URL: xenoglossia-0.2.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for xenoglossia-0.2.tar.gz
Algorithm Hash digest
SHA256 cdb19e54df2979cece70604076d0ba6c2639d5e861f95e0af950c127098b935d
MD5 77cb09640e8cb37ff3fa88f184244544
BLAKE2b-256 e217655dd1212080a7f881bb7e62db492d549ffd3d072c2eeca880cf859e6700

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