Module Import alias identifier Import alias identifier Import alias identifier FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareNotIn NameLoad NameLoad body Return NameLoad Assign NameStore Num While NameLoad body Assign NameStore BinOpAdd BinOpAdd NameLoad Str Call NameLoad NameLoad If CompareNotIn NameLoad NameLoad body Return NameLoad Assign NameStore BinOpAdd NameLoad Num decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assert Call NameLoad NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list Assign NameStore Call NameLoad Lambda arguments args NameParam defaults AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Lambda arguments args NameParam defaults AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Lambda arguments args NameParam defaults AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Lambda arguments args NameParam defaults AttributeLoad AttributeLoad NameLoad attr attr FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Return Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Raise Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareNotIn NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assert NameLoad BinOpMod Str TupleLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpAdd Str NameLoad AttributeLoad SubscriptLoad NameLoad Index Num attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str AttributeLoad SubscriptLoad NameLoad Index Num attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore NameLoad Assign NameStore Call NameLoad Assign NameStore NameLoad Assign NameStore Dict For NameStore AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index NameLoad NameLoad If CompareNotIn NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Raise Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad AttributeLoad SubscriptLoad NameLoad Index Num attr AttributeLoad NameLoad attr orelse If Call NameLoad NameLoad NameLoad body Raise Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Num attr AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index NameLoad NameLoad While UnaryOpNot NameLoad body Assign NameStore NameLoad Assign NameStore AttributeLoad NameLoad attr For TupleStore NameStore NameStore NameLoad body If CompareNotIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad If BoolOpAnd CompareIsNot NameLoad NameLoad CompareNotIn NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore Call NameLoad BinOpAdd BinOpAdd NameLoad Str NameLoad Call NameLoad AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index NameLoad BinOpAdd BinOpAdd SubscriptLoad NameLoad Index NameLoad Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign NameStore NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad For NameStore AttributeLoad NameLoad attr body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad If CompareIsNot NameLoad NameLoad body Raise Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Num attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore ListLoad For NameStore AttributeLoad NameLoad attr body If CompareIn NameLoad NameLoad body AugAssignAdd NameStore ListLoad SubscriptLoad NameLoad Index NameLoad orelse Assign NameStore Call NameLoad NameLoad If CompareIs NameLoad NameLoad body Raise Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Num attr AttributeLoad NameLoad attr orelse AugAssignAdd NameStore ListLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad Str NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad ListLoad Str BinOpAdd NameLoad Str NameLoad NameLoad NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad If Call NameLoad NameLoad AttributeLoad NameLoad attr body Raise Call AttributeLoad NameLoad attr NameLoad NameLoad Return Call NameLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A ufora.FORA.python.ParseException ParseException N/A ufora.FORA.python.ForaValue ForaValue N/A ufora.native.FORA ForaNative freshVarname N/A N/A startingName namesUsed N/A N/A N/A pick a variant on 'startingName' that's not in namesUsed N/A N/A startingName namesUsed N/A N/A startingName N/A ix 1 N/A True N/A N/A name N/A N/A startingName _ N/A str ix N/A N/A name namesUsed N/A N/A name N/A ix N/A ix 1 N/A NameExistsButDoesntParseException N/A object N/A __init__ N/A N/A self projectNode name N/A N/A N/A N/A self projectNode projectNode N/A N/A self name name N/A childrenWhoDontParse N/A N/A self N/A N/A N/A N/A N/A self projectNode childrenWhoDontParse N/A property N/A Expression N/A object N/A N/A Represents a FORA expression. __init__ N/A N/A self nativeExpression codeDefinitionPoint N/A N/A N/A N/A isinstance nativeExpression N/A ForaNative Expression N/A N/A self nativeExpression_ nativeExpression N/A N/A self codeDefinitionPoint_ codeDefinitionPoint N/A N/A freeVariables N/A property N/A N/A N/A self N/A N/A N/A self nativeExpression_ freeVariables N/A mentionedVariables N/A property N/A N/A N/A self N/A N/A N/A self nativeExpression_ mentionedVariables N/A assignedVariables N/A property N/A N/A N/A self N/A N/A N/A self nativeExpression_ assignedVariables N/A freeVariableMemberAccesses N/A property N/A N/A N/A self N/A N/A N/A self nativeExpression_ freeVariableMemberAccesses packAssignedVarsIntoTuple N/A N/A self N/A N/A N/A Return an expression that returns the value of the expression and also any assigned variables.

        If 'self' is 'e', this expression returns (e, (a1, a2, ...)) where the a's are assigned
        variables in the environment sorted alphabetically.

        If the expression throws an exception/stacktrace pair, the new expression throws

            (exception, (a1, a2, ...))

        from the same stacktrace.

        This function may not be called on an expression with return statements in it.
         N/A N/A Expression N/A N/A N/A self nativeExpression_ packAssignedVarsIntoTuple N/A self codeDefinitionPoint_ N/A freeVariableUsePoints N/A N/A self varname N/A N/A N/A return a list of CodeLocations where 'varname' is free N/A N/A N/A N/A self nativeExpression_ getFreeVariableRanges varname N/A getReturnStatementPoints N/A N/A self N/A N/A N/A return a list of CodeLocations where the expression has a 'return' statement N/A N/A N/A N/A self nativeExpression_ getReturnStatementRanges N/A assignedVariableUsePoints N/A N/A self varname N/A N/A N/A return a list of CodeLocations where a free variable 'varname' is assigned to N/A N/A N/A N/A self nativeExpression_ getAssignedVariableRanges varname N/A toFunction N/A N/A self N/A N/A N/A convert to a function with one argument per free variable N/A N/A N/A ForaValue FORAValue N/A N/A N/A self nativeExpression_ toFunctionImplval False N/A toFunctionAsImplval N/A N/A self N/A N/A N/A convert to a function with one argument per free variable N/A N/A N/A N/A self nativeExpression_ toFunctionImplval False N/A toFunctionAsImplvalWithPassthroughArgument N/A N/A self N/A N/A N/A convert to a function with one argument per free variable, plus an extra argument
            that gets added to the final result as a tuple. N/A N/A N/A N/A self nativeExpression_ toFunctionImplvalWithPassthroughArgument False N/A rebindFreeVariableMemberAccess N/A N/A self varname memberName newName N/A N/A N/A convert expressions like 'x.y' where 'x' is free to a new free
        variable N/A N/A Expression N/A N/A N/A self nativeExpression_ rebindFreeVariableMemberAccess varname memberName newName N/A self codeDefinitionPoint_ N/A raiseParseException_ N/A N/A self functionParseError N/A N/A N/A N/A N/A ParseException ParseException functionParseError N/A self codeDefinitionPoint_ N/A raiseIfUsesUndefinedVariables N/A N/A self knownVariables N/A N/A N/A variable N/A self assignedVariables N/A N/A N/A N/A self checkVariableInKnownVariables variable knownVariables N/A checkVariableInKnownVariables N/A N/A self variable knownVariables N/A N/A N/A N/A variable knownVariables N/A N/A assignmentLocations N/A N/A self assignedVariableUsePoints variable N/A assignmentLocations N/A Can't find assignment point for %s in '%s'. N/A variable N/A str self N/A N/A N/A self raiseParseException_ N/A N/A ForaNative FunctionParseError N/A can't assign to free variable  variable N/A N/A assignmentLocations N/A 0 range N/A raiseParseErrorIfHasReturnStatements N/A N/A self N/A N/A N/A getReturnStatementPoints N/A N/A self getReturnStatementPoints N/A getReturnStatementPoints N/A N/A N/A N/A self raiseParseException_ N/A N/A ForaNative FunctionParseError can't use a return statement in a command-line expression N/A N/A getReturnStatementPoints N/A 0 range N/A specializeFreeVariableMapping N/A N/A self freeVariableMapping specializationFunc lookupFunc finalVariableValueValidator N/A N/A N/A Allow an expression containing expressions like 'm.x' to be specialized.

        If we know what 'm' binds to, and

            specializationFunc(freeVariableMapping[m], 'x')

        produces a non-null value, we rebind the free variable to a new name with the result
        of specialzationFunc.

        Finally, we call 'finalVariableValueValidator' with the value each variable chain
        has been resolved to, along with a string of dot-separated identifiers. This function
        should return an error string if the intermediate value that has been bound is invalid.
         N/A done False N/A checkedNames N/A set N/A expr self N/A dotSequences N/A N/A varname N/A self freeVariables N/A N/A N/A dotSequences N/A varname varname N/A N/A varname freeVariableMapping N/A N/A varValue N/A lookupFunc varname N/A N/A varValue None N/A N/A codeLocations N/A N/A self freeVariableUsePoints varname N/A N/A N/A ParseException ParseException N/A N/A ForaNative FunctionParseError N/A Couldn't resolve free variable '%s' N/A varname N/A N/A codeLocations N/A 0 range N/A self codeDefinitionPoint_ N/A N/A N/A isinstance varValue NameExistsButDoesntParseException N/A N/A N/A N/A ParseException ParseException N/A N/A ForaNative FunctionParseError Some modules did not parse correctly. N/A N/A N/A N/A self freeVariableUsePoints varname N/A 0 range N/A self codeDefinitionPoint_ N/A N/A freeVariableMapping N/A varname varValue N/A N/A done N/A N/A done True N/A freeVariablesBound N/A expr freeVariableMemberAccesses N/A N/A varname memberName freeVariablesBound N/A N/A N/A varname freeVariableMapping N/A N/A N/A freeVariableMapping N/A varname N/A lookupFunc varname N/A mapsTo N/A freeVariableMapping N/A varname N/A N/A N/A mapsTo None N/A varname checkedNames N/A N/A subNode N/A specializationFunc mapsTo memberName N/A N/A subNode None N/A N/A newName N/A freshVarname N/A N/A varname _ memberName N/A set N/A expr mentionedVariables N/A N/A dotSequences N/A newName N/A N/A N/A dotSequences N/A varname . memberName N/A expr N/A N/A expr rebindFreeVariableMemberAccess varname memberName newName N/A N/A freeVariableMapping N/A newName subNode N/A done False N/A N/A N/A N/A checkedNames add varname N/A var N/A expr freeVariables N/A N/A errString N/A finalVariableValueValidator N/A freeVariableMapping N/A var N/A dotSequences N/A var N/A N/A errString None N/A N/A N/A N/A ParseException ParseException N/A N/A ForaNative FunctionParseError errString N/A N/A N/A N/A expr freeVariableUsePoints var N/A 0 range N/A self codeDefinitionPoint_ N/A expr N/A returnFreeVariableValues N/A N/A self locals importFunction N/A N/A N/A Return arguments for the free variables in expression.

        importFunction = a function to call with free symbols that aren't in
            locals to look them up
         N/A boundVariables N/A N/A freeVariable N/A self freeVariables N/A N/A N/A freeVariable locals N/A N/A boundVariables N/A N/A locals N/A freeVariable N/A N/A binding N/A importFunction freeVariable N/A N/A binding None N/A N/A N/A N/A ParseException ParseException N/A N/A ForaNative FunctionParseError N/A Couldn't resolve free variable '%s' freeVariable N/A N/A N/A N/A self freeVariableUsePoints freeVariable N/A 0 range N/A self codeDefinitionPoint_ N/A N/A boundVariables N/A binding N/A boundVariables N/A parse N/A N/A textToParse codeDefinitionPoint nameScope parseAsModule N/A None <eval> False N/A N/A parse a string to an Expression object or throw a FunctionParseError.

        textToParse - a string containing the FORA expression
        parsePath - a list of strings containing the path to the
            code being parsed. this will show up in any stacktraces
            thrown by this expression or by code called by this expression
        nameScope - the name that functions and objects should descend from. If the
            expression is a simple 'fun' or 'object', this will be its name
         N/A N/A codeDefinitionPoint None N/A N/A codeDefinitionPoint N/A N/A N/A ForaNative CodeDefinitionPoint ExternalFromStringList N/A nameScope N/A parseAsModule N/A N/A nativeExpressionOrParseError N/A N/A ForaNative parseObjectDefinitionBodyToExpression textToParse N/A Tsunami N/A nameScope .fora False nameScope nameScope N/A N/A nativeExpressionOrParseError N/A N/A ForaNative parseStringToExpression textToParse codeDefinitionPoint nameScope N/A N/A isinstance nativeExpressionOrParseError N/A ForaNative FunctionParseError N/A N/A N/A N/A ParseException ParseException nativeExpressionOrParseError codeDefinitionPoint N/A N/A Expression nativeExpressionOrParseError codeDefinitionPoint N/A staticmethod __str__ N/A N/A self N/A N/A N/A N/A str N/A self nativeExpression_ N/A N/A