Axal::Interpreter
Inherits Reference < Object
Constructors
new
SourceInstance methods
assign_function_args_to_params(stack_frame)
Sourceassign_function_args_to_params_for_chained_call(stack_frame, param1)
Sourceenv
Sourcefetch_ext_code_replacement_value(param)
Sourcefetch_function_definition(fn_name : String)
Sourceinterpret_boolean(boolean)
Sourceinterpret_chained_function_call(fn_call : AST::FunctionCall, param1)
Sourceinterpret_conditional(conditional)
TODO Empty blocks are accepted both for the IF and for the ELSE. For the IF, the parser returns a block with an empty collection of expressions. For the else, no block is constructed. The evaluation is already resulting in nil, which is the desired behavior. It would be better, however, if the parser also returned a block with no expressions for an ELSE with an empty block, as is the case in an IF with an empty block. Investigate this nuance of the parser in the future.
interpret_describe_definition(desc_def)
Sourceinterpret_duktape(value : Duktape::JSPrimitive)
Sourceinterpret_external_code(external_code) : X
find variables in the external code and fetch from local or global
interpret_fetch(url)
Sourceinterpret_function_call(fn_call : AST::FunctionCall)
Sourceinterpret_function_chain(chain : AST::FunctionChain)
Sourceinterpret_function_definition(fn_def)
Sourceinterpret_identifier(identifier)
Sourceinterpret_it_definition(it_def)
Sourceinterpret_json(json : AST::Json)
Sourceinterpret_module_definition(mod_def)
Sourceinterpret_nested_json(json : AST::Json)
Sourceinterpret_nil(nil_node)
Sourceinterpret_nodes(nodes)
Sourceinterpret_number(number) : Float64
Sourceinterpret_repetition(repetition)
Sourceinterpret_return(ret)
Sourceinterpret_string(string)
Sourceinterpret_unary_operator(unary_op)
Sourceinterpret_var_binding(var_binding)
Sourceoutput
Sourceoutput=(output : Array(String))
Sourceprintln(fn_call)
Sourceprogram
Sourcereplace_external_code_variables(external_code, rt)
Sourcereturn_detected?(node)
Sourcetest_output
Sourcetest_output=(test_output : Hash(String, Array(TestResult)))
Sourceunwind_call_stack
Sourceunwind_call_stack=(unwind_call_stack : Int32)
Source