Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Programming Language Lumora
- Basic Syntax
- ::entry-point:: main_proc @invoke --start_sequence --priority=high ;
- func~invoke⟨greet_function⟩::(param_input⦂str_type) → void_ret {
- @block_start ⇨
- ::output_echo::"<<<### INITIATE GREETING >>> [~ " + param_input + " ~] <<<### END GREETING ###>>>";
- @block_end ⇦
- };
- procedure:::main_proc @execute {
- var_define immutable_var ⦂ string_type ← "Alice" ;;;
- call_function::greet_function(param_input=immutable_var) ;;;;
- var_declare mutable_counter ⦂ int_type ⟵ 0x5 ;;;
- loop_control repeat_while mutable_counter < 0x7 begin_loop {
- if_condition (mutable_counter < 0x3) then_branch {
- ::output_echo:: "-- Loop Start: Count " + mutable_counter + " --" ;;;;
- mutable_counter += 1 ;;
- continue_loop~~current_iteration ;;;
- } else_branch {
- break_loop ;;;
- };
- } loop_end_control ;
- conditional_check (mutable_counter == 0x7) then_action {
- ::output_echo:: "### Loop Completed with Count 7 ###" ;;;
- } else_action {
- ::output_echo:: "!!! Loop Aborted Unexpectedly !!!" ;;;
- } end_conditional ;
- wait_for::milliseconds(0xBB8) ;;;;
- ::output_echo:: "=== Exiting Main Procedure ===" ;;;
- terminate_process:::immediate_exit ;
- };
- ::start_process:: main_proc @invoke_now ;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement