Skip to main content

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"
))

Inspiration for the project

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

pybex-0.0.2.tar.gz (9.2 kB view hashes)

Uploaded Source

Built Distribution

pybex-0.0.2-py3-none-any.whl (9.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page