MIT License

项目介绍

groteworld/pikalang 是一个托管在 GitHub 上的开源项目,主要使用 Python 编写,采用 MIT License 许可证,目前获得 98 个 Star、13 次 Fork。

仓库全名
groteworld/pikalang
开源许可证
MIT License
Star 数
98
Fork 数
13
未关闭 Issue
1

README 摘要

PIKALANG - The Pikachu Programming Language A [brainfuck][2] derivative based off the vocabulary of [Pikachu][3] from [Pokémon][4]. Syntax pikalang | brainfuck | description pi | + | increment the byte at pointer ka | - | decrement the byte at pointer pika | [ | if pointer is zero, jump to matching chu chu | ] | if pointer is nonzero, jump to matching pika pipi | > | increment the data pointer pichu | < | decrement…

完整内容见 GitHub 原始 README 或本页 。

常见问题

pikalang 用什么语言开发?

主要使用 Python 编写,采用 MIT License 许可证,目前有 98 个 Star。

pikalang 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 pikalang 的源码?

可以直接克隆仓库:git clone https://github.com/groteworld/pikalang.git,默认分支为 master;安装与运行步骤见仓库 README。

pikalang 最近还在维护吗?

仓库最近一次更新为 2024年3月20日,当前有 1 个未关闭 Issue;Star 数为 98,可作为社区活跃度的参考。

关于

A brainfuck derivative based off the vocabulary of Pikachu from Pokémon.

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

简要分析

热度分
128
价值分
63
活跃状态
活跃

README

PIKALANG - The Pikachu Programming Language



A brainfuck derivative based off the vocabulary of Pikachu from Pokémon.

Syntax

pikalang brainfuck description
pi + increment the byte at pointer
ka - decrement the byte at pointer
pika [ if pointer is zero, jump to matching chu
chu ] if pointer is nonzero, jump to matching pika
pipi > increment the data pointer
pichu < decrement the data pointer
pikapi , input of one byte into pointer
pikachu . output the byte at pointer

Installation

stable:

pip install pikalang

or bleeding edge…

git clone https://github.com/grotewold/pikalang.git
cd pikalang

python setup.py install

Usage

pikalang path/to/file.pokeball

File Extention

A pikalang program must be stored in a file with a .pokeball extention

API Usage

import pikalang

sourcecode = """
    pi pi pi pi pi pi pi pi pi pi pika pipi pi pi pi pi pi pi pi pipi pi pi pi
    pi pi pi pi pi pi pi pipi pi pi pi pipi pi pichu pichu pichu pichu ka chu
    pipi pi pi pikachu pipi pi pikachu pi pi pi pi pi pi pi pikachu pikachu pi
    pi pi pikachu pipi pi pi pikachu pichu pichu pi pi pi pi pi pi pi pi pi pi
    pi pi pi pi pi pikachu pipi pikachu pi pi pi pikachu ka ka ka ka ka ka
    pikachu ka ka ka ka ka ka ka ka pikachu pipi pi pikachu pipi pikachu
    """

# or use sourcecode = pikalang.load_source("FILENAME.pokeball") to load from file

pikalang.evaluate(sourcecode)

Development

When developing, use pipenv to install needed tools.

pipenv install

pipenv run black .

pipenv run python -m pikalang tests/hello-world.pokeball

Thanks

Special thanks to Elliot Chance for providing the base implementation of this.

Disclaimer

This is a fan-based parody of themes from Pokémon. The language, as well as its author, is in no way associated with the Pokémon francise and its creators, nor is this project, in any way, for-profit. This is a project to teach myself ply, which is protected under fair use.

评论

暂无评论