Adaptive Framework 0.9.0

compiler

The following is a list of functions in the category compiler

FunctionDescription
assertAssert that a value is true. If not, an assertion_failed error is thrown.
compile_expression_tupleCompile a string containing adaptive expression tuple syntax and return either an unevaluated expression tuple adaptive value or a string containing the compiler listing.
compile_jsonCompile a string containing adaptive JSON syntax and return either an unevaluated JSON adaptive value or a string containing the compiler listing.
compile_relaxed_jsonCompile an adaptive relaxed JSON syntax string and return an adaptive value.
convert_syntax_hybrid_to_expressionConvert a string containing adaptive hybrid syntax, which can be an adaptive template or adaptive expression tuple, to adaptive expression syntax.
decompileDecompile an adaptive value to string.
evaluate_expression_tupleCompile a string containing adaptive expression tuple syntax and then evaluate the result.
evaluate_valueEvaluate an adaptive value.
evaluate_with_retryEvaluate a value and retry up to a limit if an exception occurs.
qualifierThis function allows the active variables for a qualifier to be accessed as the properties of an object.
qualifiersThis function allows the active qualifiers to be accessed as properties of an object. The value of each of these properties is an object whose properties are the variables for the corresponding qualifier.
safe_evaluateReturn the evaluated adaptive value. If an exception occurs, return evaluated error instead.
stringifyEvaluate and decompile an adaptive value to string. For most values this has the effect of producing a string containing json.
test_expressionCompile and evaluate an adaptive expression and compare the results to an expected value. Return object with the test's results.
test_expression_tupleCompile and evaluate an adaptive expression tuple and compare the results to an expected value. Return object with the test's results.
test_hybridCompile and evaluate a string containing adaptive hybrid syntax which can be an adaptive template or adaptive expression tuple and then compare the results to an expected value. Return object with the test's results.
test_scriptCompile and evaluate an adaptive script and compare the results to an expected value. Return object with the test's results.
test_script_runtime_supportThis is a function called internally as the result of a test_script compile. This function is not intended to be called directly.
test_templateCompile and evaluate an adaptive template and compare the results to an expected value. Return object with the test's results.
test_valueEvaluate an adaptive value and compare it to an expected value. Return object with the test's results.