-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Smart contract functions without args (#1181)
* function parsing * function parsing tests * interpreter parse functions * contract add functions to struct * function_interpreter check if function exist * get available functions and pass them to parsers * add functions to scope * add functions contract struct * allow call to functions * postwalk functions common_interpreter.ex * remove functions postwalk function_interpreter.ex * allow custom function call in action_interpreter.ex * function call return value common_interpreter.ex * function_interpreter.ex add constants in scope * remove add_function as not used * add possibility to pass existing custom functions to sanitize_parse_execute * pass functions to action interpreter scope's * move function prewalk to not catch "for var..." * function_interpreter test parsing and execute * create execute_function_ast for scope * custom function matches check_types * test function parsing in action_interpreter * test function execution in action_interpreter * format * allow function calls in condition block * fix function test * test function in conditions * add functions to condition constatns * add functions test in interpreter * fucntions key to string * function_key function * format * case to if * function_key to tuple * add get_function_ast doc * merge public_functions and private_functions into functions * remove default functions_keys * remove unused function * move test to interpreter_test.exs * format * pass function_keys in condition_interpreter.ex's postwalk * add function_key type * fix spec and doc * scope test * Wrap single line function in ast block * Fix @SPEC * Rename get_functions to get_functions_keys * Use String interpolation --------- Co-authored-by: Neylix <[email protected]>
- Loading branch information
1 parent
ba76e75
commit c5952b5
Showing
13 changed files
with
839 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.