compiler
The following is a list of functions in the category compiler
Function | Description |
---|---|
assert | Assert that a value is true. If not, an assertion_failed error is thrown. |
compile_expression_tuple | Compile a string containing adaptive expression tuple syntax and return either an unevaluated expression tuple adaptive value or a string containing the compiler listing. |
compile_json | Compile a string containing adaptive JSON syntax and return either an unevaluated JSON adaptive value or a string containing the compiler listing. |
compile_relaxed_json | Compile an adaptive relaxed JSON syntax string and return an adaptive value. |
convert_syntax_hybrid_to_expression | Convert a string containing adaptive hybrid syntax, which can be an adaptive template or adaptive expression tuple, to adaptive expression syntax. |
decompile | Decompile an adaptive value to string. |
evaluate_expression_tuple | Compile a string containing adaptive expression tuple syntax and then evaluate the result. |
evaluate_value | Evaluate an adaptive value. |
evaluate_with_retry | Evaluate a value and retry up to a limit if an exception occurs. |
qualifier | This function allows the active variables for a qualifier to be accessed as the properties of an object. |
qualifiers | This 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_evaluate | Return the evaluated adaptive value. If an exception occurs, return evaluated error instead. |
stringify | Evaluate and decompile an adaptive value to string. For most values this has the effect of producing a string containing json. |
test_expression | Compile and evaluate an adaptive expression and compare the results to an expected value. Return object with the test's results. |
test_expression_tuple | Compile and evaluate an adaptive expression tuple and compare the results to an expected value. Return object with the test's results. |
test_hybrid | Compile 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_script | Compile and evaluate an adaptive script and compare the results to an expected value. Return object with the test's results. |
test_script_runtime_support | This is a function called internally as the result of a test_script compile. This function is not intended to be called directly. |
test_template | Compile and evaluate an adaptive template and compare the results to an expected value. Return object with the test's results. |
test_value | Evaluate an adaptive value and compare it to an expected value. Return object with the test's results. |