Python code analyzer.
Project description
Python Bot EXpression (PyBEX)
A simple Interpreted Dynamic Programming Language for describing chat bot commands and behavior.
Installing PyBEX
PyBEX is available on PyPI:
python -m pip install -U pybex
Language Elements
String
"Hello, World"
'single or double - doesn\'t matter'
"""multiline
ones"""
'''are
supported'''
Number
# integers
69
420
1_000_000 # 1000000
# and floats
3.1415
5e-10
Variable
args
sender
_underscore
Funcalls
f()
f(g())
f(69, 420, 3.1415)
f("can take in any other language element")
Interactive mode
use command:
python -m pybex
bex> say(99,
... "bottles of beer",
... "on the wall.")
99 bottles of beer on the wall.
bex> if(1, "pi", 3.1415)
'pi'
Interpret from the file
use command:
python -m pybex <file_path>
(replace <file_path> with path of your script file)
say(if(
int(input()),
"non-zero input",
"zero input"
))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pybex-0.0.2.tar.gz
(9.2 kB
view hashes)
Built Distribution
pybex-0.0.2-py3-none-any.whl
(9.6 kB
view hashes)