reno.parser#

Functions to handle parsing strings of reno ops/equations into the actual reno op objects themselves. This is primarily needed for the interative viz portions and the ability to serialize models for saving/loading to file.

Functions

parse(string[, refs])

Turn an equation string into Reno's math equation objects.

parse_class_or_scalar(string)

Parse a single non-math op concatenated equation part, e.g. a scalar (float or int) or distribution with parameters.

parse_function_args(string)

Pull out any python formatted args or kwargs for a function.

parse_op_str(string[, no_op])

Pull out the topmost operation and component arguments, leaving all nested/sub components as raw strings.

parse_value(string)

Try to parse out a float or int if possible, otherwise just return the string itself.

parser_table()

Get a dictionary of operation names and their associated python types/classes.