Skip to main content

Xulang: a minimalist programming language with no rules to memorize. Dedicated to my dear little mouse.

Project description

xulang

xulang: an ultra-minimalist programming language with zero memorization of grammar required.

Introduction

Zhizhi is a lovely mouse-musume. Since she dislikes memorizing grammar rules, Miaomiao designed a programming language for her that requires almost no grammar memorization.

Install

pip install xulang

Usage

# xulang interactive CLI
python3 -m xulang

# run file
python3 -m xulang <filepath.xu>

# run file with include_path
python3 -m xulang -I <include_path>

# use --verbose to see matching process
python3 -m xulang --verbose

Lexical Units

Constants: Character strings consisting of letters, digits, and underscores, starting with a digit or uppercase letter. Examples: 123, ABX_1, T, etc.

Variables: Character strings consisting of letters, digits, and underscores, starting with a lowercase letter or underscore. Examples: a, _name, _var1.

List Matching: A string starting with an asterisk immediately followed by a variable name. Examples: *a, *_x, *v1.

Program Examples

See ./sample_code/*.xu on https://github.com/GGN-2015/py_xulang.

Standard Library

See ./xulang/include/Std/*.xu on https://github.com/GGN-2015/py_xulang. It's not necessary to use standard library since most of ther utilities can be easily mannually implemented, they just come as examples.

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

xulang-0.5.1.tar.gz (22.8 kB view details)

Uploaded Source

Built Distribution

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

xulang-0.5.1-py3-none-any.whl (30.7 kB view details)

Uploaded Python 3

File details

Details for the file xulang-0.5.1.tar.gz.

File metadata

  • Download URL: xulang-0.5.1.tar.gz
  • Upload date:
  • Size: 22.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.13.12 Windows/11

File hashes

Hashes for xulang-0.5.1.tar.gz
Algorithm Hash digest
SHA256 032962fef0c8b182a64b56e5b82b5cd7ec9478f882dd563336c236eb81d10a05
MD5 1d1a8cf080bdbb6e6da0e8240e51dbcc
BLAKE2b-256 2da9bf7139347d0c6a2a8daa88cc9bae232976dad403fb5d781a94c94198c6cc

See more details on using hashes here.

File details

Details for the file xulang-0.5.1-py3-none-any.whl.

File metadata

  • Download URL: xulang-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 30.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.13.12 Windows/11

File hashes

Hashes for xulang-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 968abdd691e1f3faaee68bf0101c7161f4d49848fdca6aa1b7d74d145ea5a6f5
MD5 c8972e73779aab59a3a97252a5baafb5
BLAKE2b-256 0b139dd6bd9741213882dcd8d286688a0e2150d12b4dbca8bbe99e457f73312b

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