1.13.0 - July 21, 2016
Changes
1.13.0 Jul 21 2016
- Restructure the code to keep it on par with the JavaScript and Go versions (PR #30):
rivescript.parser
now contains all the parsing code:
parse()
andcheck_syntax()
are moved here.- Triggers are stored internally in only one place now, like in the
JavaScript and Go versions. This makes some internal mappings simpler as
they now point to common references and don't duplicate data in memory. - Note: Most of the new
rivescript.*
modules are still
private-use-only, even though many internal functions lost their
underscore prefixes. You should still only use the API functions exposed
byrivescript.rivescript
or what is exported by the top level package.
Therivescript.parser
API will be more public-facing in the future to
help with third party integrations (currently it still relies on a Python
object with methods_say
and_warn
).
- Refactor the RiveScript interactive mode (
rivescript.interactive
) to use
argparse instead of getopt and add a pretty ASCII logo. - Add
shell.py
as a possibly easier-to-access (and certainly
easier-to-discover) shortcut to running RiveScript's interactive mode.
It accepts all the same options and works the same as before.