Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias Import alias Import alias Import alias ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str Str body Expr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad Call NameLoad attr NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot Call AttributeLoad NameLoad attr body Return TupleLoad NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr TryFinally body TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Assign NameStore Num Assign NameStore Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr attr Str Print Str Print Call AttributeLoad Str attr SubscriptLoad NameLoad Slice UnaryOpUSub NameLoad Raise Call AttributeLoad NameLoad attr NameLoad ExceptHandler type AttributeLoad NameLoad attr name NameStore body Print Call AttributeLoad Str attr AttributeLoad NameLoad attr Raise Call AttributeLoad NameLoad attr NameLoad ExceptHandler type AttributeLoad AttributeLoad NameLoad attr attr name NameStore body Print Call AttributeLoad Str attr NameLoad Raise Call AttributeLoad NameLoad attr NameLoad keyword Str ExceptHandler type NameLoad name NameStore body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Str Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Slice NameLoad attr Str If CompareIn Str NameLoad body Print Str Print NameLoad Raise Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call AttributeLoad Str attr Call AttributeLoad NameLoad attr NameLoad Return TupleLoad NameLoad NameLoad finalbody Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Raise Call AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore NameLoad decorator_list
N/A N/A Console for interpreting Scheme. In particular, this is meant to integrate
with UC Berkeley CS 61A's Scheme project. SchemeConsole expects the an
importable module called "scheme" with the following interface:

    scheme.create_global_frame()
    scheme.read_eval_print_loop(next_line_fn, frame, interactive)
    scheme.buffer_input()
    scheme.read_line(code)
    scheme.scheme_eval(exp, env)
 client exceptions client.sources.common interpreter client.sources.ok_test doctest client.utils output client.utils timer N/A importlib N/A sys N/A textwrap N/A traceback SchemeConsole N/A N/A interpreter Console N/A N/A PS1 scm>  N/A PS2 ....  N/A MODULE scheme N/A _output_fn str load N/A N/A self code setup teardown N/A N/A N/A Prepares a set of setup, test, and teardown code to be
        run in the console.

        Loads the Scheme module before loading any code.
         N/A N/A N/A self _import_scheme N/A N/A N/A N/A super load code setup teardown N/A N/A self _frame N/A N/A N/A self scheme create_global_frame N/A interact N/A N/A self N/A N/A N/A Opens up an interactive session with the current state of
        the console.
         N/A N/A N/A N/A self scheme read_eval_print_loop N/A N/A self scheme buffer_input N/A self _frame True N/A evaluate N/A N/A self code N/A N/A N/A N/A N/A N/A code strip N/A N/A N/A None N/A log_id N/A N/A output new_log N/A N/A N/A N/A N/A exp N/A N/A N/A self scheme read_line code N/A result N/A N/A timer timed N/A self timeout N/A N/A self scheme scheme_eval N/A exp N/A self _frame N/A N/A N/A RuntimeError N/A e N/A N/A stacktrace_length 15 N/A stacktrace N/A N/A N/A N/A N/A N/A traceback format_exc strip split N/A Traceback (most recent call last):
  ... N/A N/A N/A join N/A stacktrace N/A N/A stacktrace_length N/A N/A N/A interpreter ConsoleException e N/A N/A N/A exceptions Timeout N/A e N/A N/A N/A N/A # Error: evaluation exceeded {} seconds. format N/A e timeout N/A N/A N/A interpreter ConsoleException e N/A N/A N/A N/A self scheme SchemeError N/A e N/A N/A N/A N/A # Error: {} format e N/A N/A N/A interpreter ConsoleException e exception_type SchemeError N/A N/A Exception N/A e N/A N/A stacktrace N/A N/A traceback format_exc N/A token <module>
 N/A index N/A N/A N/A stacktrace rfind token N/A len token N/A stacktrace N/A N/A N/A stacktrace N/A index rstrip N/A N/A stacktrace N/A N/A Traceback (most recent call last): N/A stacktrace N/A N/A N/A interpreter ConsoleException e N/A N/A printed_output N/A N/A join N/A N/A output get_log log_id N/A N/A result printed_output N/A N/A N/A N/A output remove_log log_id N/A _import_scheme N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A sys path insert 0 scheme N/A N/A self scheme N/A N/A importlib import_module N/A self MODULE N/A N/A N/A ImportError N/A e N/A N/A N/A N/A exceptions ProtocolException Could not import scheme N/A N/A SchemeSuite N/A N/A doctest DoctestSuite N/A N/A console_type SchemeConsole N/A