Skip to main content

A library to compile liber.

Project description

Liber

劇本語言Liber使用的解析器。

它主要被用在Librian - 簡明強大的Galgame引擎

文檔

拿Librian的中文文檔https://doc.librian.net湊合一下吧!

使用方法

需要Python3.6以上。

pip install liber
import liber
s = '''
> BG 中庭
潘大爺 「你好啊!」
'''
print(liber.load(s))

輸出:

[
    {'縮進數': 0, '原文': 'BG 中庭', '函數': 'BG', '參數表': [{'a': '中庭'}], '類型': '函數調用'}, 
    {'縮進數': 0, '名': '潘大爺', '代': None, '特效': None, '顏': None, '語': '你好啊!', '類型': '人物對話'}
]

Project details


Download files

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

Files for liber, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size liber-1.0.1-py3-none-any.whl (9.0 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size liber-1.0.1.tar.gz (3.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page