zexus 1.5.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- zexus-1.5.0/.gitattributes +12 -0
- zexus-1.5.0/.github/linguist.yml +9 -0
- zexus-1.5.0/.gitignore +94 -0
- zexus-1.5.0/.vscode/extensions/zexus-language/README.md +52 -0
- zexus-1.5.0/.vscode/extensions/zexus-language/language-configuration.json +36 -0
- zexus-1.5.0/.vscode/extensions/zexus-language/package.json +114 -0
- zexus-1.5.0/.vscode/extensions/zexus-language/snippets/zexus.json +95 -0
- zexus-1.5.0/.vscode/extensions/zexus-language/syntaxes/zexus.tmLanguage.json +197 -0
- zexus-1.5.0/.vscode/extensions.json +19 -0
- zexus-1.5.0/.vscode/settings.json +48 -0
- zexus-1.5.0/.zpics_runtime/function_calls_after_let.json +12 -0
- zexus-1.5.0/.zpics_runtime/mixed_statement_boundaries.json +12 -0
- zexus-1.5.0/.zpics_runtime/nested_expressions.json +12 -0
- zexus-1.5.0/.zpics_runtime/persistence_after_assignment.json +12 -0
- zexus-1.5.0/.zpics_runtime/property_assignments.json +12 -0
- zexus-1.5.0/.zpics_runtime/type_annotations.json +12 -0
- zexus-1.5.0/.zpics_snapshots/function_calls_after_let.json +15 -0
- zexus-1.5.0/.zpics_snapshots/mixed_statement_boundaries.json +15 -0
- zexus-1.5.0/.zpics_snapshots/nested_expressions.json +15 -0
- zexus-1.5.0/.zpics_snapshots/persistence_after_assignment.json +15 -0
- zexus-1.5.0/.zpics_snapshots/property_assignments.json +15 -0
- zexus-1.5.0/.zpics_snapshots/type_annotations.json +15 -0
- zexus-1.5.0/ASYNC_STATUS.md +32 -0
- zexus-1.5.0/CHANGELOG.md +184 -0
- zexus-1.5.0/IMPLEMENTATION_SUMMARY.md +138 -0
- zexus-1.5.0/LICENSE +0 -0
- zexus-1.5.0/PKG-INFO +2309 -0
- zexus-1.5.0/PRINT_STATEMENT_FIX.md +98 -0
- zexus-1.5.0/PUBLISH_TO_PYPI.md +99 -0
- zexus-1.5.0/README.md +2261 -0
- zexus-1.5.0/REGRESSION_ISSUES_TRACKER.md +601 -0
- zexus-1.5.0/REMAINING_ISSUES.md +171 -0
- zexus-1.5.0/REPOSITORY_STRUCTURE.md +105 -0
- zexus-1.5.0/archive/README.md +21 -0
- zexus-1.5.0/archive/dev-notes/DEV_SCRIPTS_README.md +277 -0
- zexus-1.5.0/archive/dev-notes/README.old.md +494 -0
- zexus-1.5.0/archive/dev-notes/VM_QUICK_REFERENCE.md +264 -0
- zexus-1.5.0/archive/dev-scripts/check_compiler_parser.py +35 -0
- zexus-1.5.0/archive/dev-scripts/check_lexer_module.py +18 -0
- zexus-1.5.0/archive/dev-scripts/check_parser_config.py +33 -0
- zexus-1.5.0/archive/dev-scripts/check_parser_differences.py +48 -0
- zexus-1.5.0/archive/dev-scripts/check_parser_setup.py +27 -0
- zexus-1.5.0/archive/dev-scripts/check_tokens.py +10 -0
- zexus-1.5.0/archive/dev-scripts/compare_lexers.py +46 -0
- zexus-1.5.0/archive/dev-scripts/compile_repro.py +28 -0
- zexus-1.5.0/archive/dev-scripts/debug_closure.py +66 -0
- zexus-1.5.0/archive/dev-scripts/debug_closure_detailed.py +111 -0
- zexus-1.5.0/archive/dev-scripts/debug_closure_full.py +30 -0
- zexus-1.5.0/archive/dev-scripts/debug_closure_instrumented.py +44 -0
- zexus-1.5.0/archive/dev-scripts/debug_function_params.py +52 -0
- zexus-1.5.0/archive/dev-scripts/debug_map_parsing.py +53 -0
- zexus-1.5.0/archive/dev-scripts/debug_module.py +28 -0
- zexus-1.5.0/archive/dev-scripts/debug_module_ast.py +28 -0
- zexus-1.5.0/archive/dev-scripts/debug_parser.py +30 -0
- zexus-1.5.0/archive/dev-scripts/debug_parser_function.py +31 -0
- zexus-1.5.0/archive/dev-scripts/debug_phase10_params.py +55 -0
- zexus-1.5.0/archive/dev-scripts/debug_tokens.py +20 -0
- zexus-1.5.0/archive/dev-scripts/final_validation.py +57 -0
- zexus-1.5.0/archive/dev-scripts/inspect_closure_bc.py +42 -0
- zexus-1.5.0/archive/dev-scripts/investigate_compiler.py +82 -0
- zexus-1.5.0/archive/dev-scripts/lexer_fixed.py +148 -0
- zexus-1.5.0/archive/dev-scripts/main.spec +45 -0
- zexus-1.5.0/archive/dev-scripts/parser_fixed.py +449 -0
- zexus-1.5.0/archive/dev-scripts/run_repro.py +39 -0
- zexus-1.5.0/archive/dev-scripts/temp_head.py +5 -0
- zexus-1.5.0/archive/dev-scripts/temp_import.py +1 -0
- zexus-1.5.0/archive/dev-scripts/tmp_all.zx +6 -0
- zexus-1.5.0/archive/dev-scripts/tmp_arrow_test.py +18 -0
- zexus-1.5.0/archive/dev-scripts/tmp_concat_func.zx +2 -0
- zexus-1.5.0/archive/dev-scripts/tmp_debug_print.zx +2 -0
- zexus-1.5.0/archive/dev-scripts/tmp_func.zx +2 -0
- zexus-1.5.0/archive/dev-scripts/tmp_map.zx +2 -0
- zexus-1.5.0/archive/dev-scripts/tmp_parse_test.py +18 -0
- zexus-1.5.0/archive/dev-scripts/tmp_run.py +25 -0
- zexus-1.5.0/archive/dev-scripts/token.py +50 -0
- zexus-1.5.0/archive/dev-scripts/verify_integration.py +110 -0
- zexus-1.5.0/archive/dev-scripts/zexus_ast.py +289 -0
- zexus-1.5.0/archive/dev-scripts/zexus_compiler.spec +38 -0
- zexus-1.5.0/archive/dev-scripts/zexus_token.py +101 -0
- zexus-1.5.0/archive/proofs/FRIEND_PROOF.md +165 -0
- zexus-1.5.0/archive/proofs/PROOF_FRIEND_WRONG.md +153 -0
- zexus-1.5.0/archive/reports/ALL_ISSUES_FIXED_FINAL_REPORT.md +334 -0
- zexus-1.5.0/archive/reports/VM_INTEGRATION_STATUS.md +142 -0
- zexus-1.5.0/archive/summaries/CONTINUE_IMPLEMENTATION_SUMMARY.md +362 -0
- zexus-1.5.0/archive/summaries/QUESTIONS_ANSWERED.md +308 -0
- zexus-1.5.0/archive/summaries/VSCODE_IMPLEMENTATION_SUMMARY.md +420 -0
- zexus-1.5.0/archive/temp-files/math_ops.cpp +26 -0
- zexus-1.5.0/archive/temp-files/zexus_compiler.py.backup +467 -0
- zexus-1.5.0/check_verify_ast.py +22 -0
- zexus-1.5.0/crypto.zx +22 -0
- zexus-1.5.0/debug_persist_ultimate.zx +64 -0
- zexus-1.5.0/docs/ADVANCED_TESTING_COMPLETION_REPORT.md +258 -0
- zexus-1.5.0/docs/ARCHITECTURE.md +468 -0
- zexus-1.5.0/docs/ASYNC_IMPLEMENTATION_PLAN.md +44 -0
- zexus-1.5.0/docs/BLOCKCHAIN_FEATURES.md +875 -0
- zexus-1.5.0/docs/CONCURRENCY.md +81 -0
- zexus-1.5.0/docs/DOCUMENTATION_INDEX.md +187 -0
- zexus-1.5.0/docs/EDGE_CASE_TESTING_REPORT.md +268 -0
- zexus-1.5.0/docs/ERROR_REPORTING.md +280 -0
- zexus-1.5.0/docs/FINAL_STABILITY_REPORT.md +440 -0
- zexus-1.5.0/docs/GITHUB_LINGUIST_SUBMISSION.md +134 -0
- zexus-1.5.0/docs/INDEX.md +209 -0
- zexus-1.5.0/docs/ISSUES.md +494 -0
- zexus-1.5.0/docs/MAIN_ENTRY_POINT.md +495 -0
- zexus-1.5.0/docs/MAIN_ENTRY_POINT_ENHANCEMENTS.md +389 -0
- zexus-1.5.0/docs/MODULE_SYSTEM.md +342 -0
- zexus-1.5.0/docs/ORGANIZATION.md +302 -0
- zexus-1.5.0/docs/PARSER_OPTIMIZATION_GUIDE.md +203 -0
- zexus-1.5.0/docs/PERFORMANCE_FEATURES.md +479 -0
- zexus-1.5.0/docs/PHILOSOPHY.md +305 -0
- zexus-1.5.0/docs/PLUGIN_QUICK_REFERENCE.md +403 -0
- zexus-1.5.0/docs/PLUGIN_SYSTEM.md +519 -0
- zexus-1.5.0/docs/QUICK_START.md +361 -0
- zexus-1.5.0/docs/README.md +235 -0
- zexus-1.5.0/docs/SECURITY_FEATURES.md +504 -0
- zexus-1.5.0/docs/SECURITY_FEATURES_GUIDE.zx +564 -0
- zexus-1.5.0/docs/STABILITY_AND_EDGE_CASE_SUMMARY.md +353 -0
- zexus-1.5.0/docs/STATUS.md +490 -0
- zexus-1.5.0/docs/TEST_ISSUES_REPORT.md +189 -0
- zexus-1.5.0/docs/WAITGROUP_BARRIER.md +118 -0
- zexus-1.5.0/docs/WATCH_FEATURE.md +353 -0
- zexus-1.5.0/docs/ZPM_GUIDE.md +423 -0
- zexus-1.5.0/docs/archive/README.md +8 -0
- zexus-1.5.0/docs/archive/enhancement-package/00_START_HERE.md +136 -0
- zexus-1.5.0/docs/archive/enhancement-package/AUDIT_IMPLEMENTATION.md +314 -0
- zexus-1.5.0/docs/archive/enhancement-package/BUSINESS_IMPACT.md +412 -0
- zexus-1.5.0/docs/archive/enhancement-package/CODE_EXAMPLES.md +963 -0
- zexus-1.5.0/docs/archive/enhancement-package/CONVENIENCE_ADVANCED_FEATURES_IMPLEMENTATION.md +357 -0
- zexus-1.5.0/docs/archive/enhancement-package/DELIVERY_SUMMARY.md +493 -0
- zexus-1.5.0/docs/archive/enhancement-package/EXECUTIVE_SUMMARY.md +198 -0
- zexus-1.5.0/docs/archive/enhancement-package/FINAL_SUMMARY.md +490 -0
- zexus-1.5.0/docs/archive/enhancement-package/IMPLEMENTATION_GUIDE.md +442 -0
- zexus-1.5.0/docs/archive/enhancement-package/INDEX.md +388 -0
- zexus-1.5.0/docs/archive/enhancement-package/PERFORMANCE_FEATURES_IMPLEMENTATION.md +423 -0
- zexus-1.5.0/docs/archive/enhancement-package/RESTRICT_SANDBOX_TRAIL_IMPLEMENTATION.md +206 -0
- zexus-1.5.0/docs/archive/enhancement-package/ROADMAP.md +511 -0
- zexus-1.5.0/docs/archive/enhancement-package/STRATEGIC_FEATURES.md +717 -0
- zexus-1.5.0/docs/archive/enhancement-package/STRATEGIC_UPGRADES.md +250 -0
- zexus-1.5.0/docs/future_implentations.md +135 -0
- zexus-1.5.0/docs/guides/PLUGIN_SYSTEM_GUIDE.md +834 -0
- zexus-1.5.0/docs/keywords/ACTION_FUNCTION_LAMBDA_RETURN.md +884 -0
- zexus-1.5.0/docs/keywords/ADVANCED_FEATURES.md +509 -0
- zexus-1.5.0/docs/keywords/ADVANCED_KEYWORDS.md +151 -0
- zexus-1.5.0/docs/keywords/ASYNC_AWAIT.md +410 -0
- zexus-1.5.0/docs/keywords/ASYNC_CONCURRENCY.md +675 -0
- zexus-1.5.0/docs/keywords/ASYNC_SYSTEM_FIXED.md +153 -0
- zexus-1.5.0/docs/keywords/ASYNC_SYSTEM_STATUS_REPORT.md +408 -0
- zexus-1.5.0/docs/keywords/BLOCKCHAIN_KEYWORDS.md +550 -0
- zexus-1.5.0/docs/keywords/BLOCKCHAIN_STATE.md +725 -0
- zexus-1.5.0/docs/keywords/BREAK.md +523 -0
- zexus-1.5.0/docs/keywords/CAPABILITY_VALIDATION.md +735 -0
- zexus-1.5.0/docs/keywords/COMMAND_audit.md +374 -0
- zexus-1.5.0/docs/keywords/COMMAND_buffer.md +216 -0
- zexus-1.5.0/docs/keywords/COMMAND_const.md +215 -0
- zexus-1.5.0/docs/keywords/COMMAND_defer.md +231 -0
- zexus-1.5.0/docs/keywords/COMMAND_elif.md +372 -0
- zexus-1.5.0/docs/keywords/COMMAND_enum.md +303 -0
- zexus-1.5.0/docs/keywords/COMMAND_gc.md +148 -0
- zexus-1.5.0/docs/keywords/COMMAND_inline.md +165 -0
- zexus-1.5.0/docs/keywords/COMMAND_native.md +98 -0
- zexus-1.5.0/docs/keywords/COMMAND_pattern.md +235 -0
- zexus-1.5.0/docs/keywords/COMMAND_restrict.md +48 -0
- zexus-1.5.0/docs/keywords/COMMAND_sandbox.md +57 -0
- zexus-1.5.0/docs/keywords/COMMAND_simd.md +279 -0
- zexus-1.5.0/docs/keywords/COMMAND_stream.md +318 -0
- zexus-1.5.0/docs/keywords/COMMAND_trail.md +47 -0
- zexus-1.5.0/docs/keywords/COMMAND_watch.md +365 -0
- zexus-1.5.0/docs/keywords/CONST.md +681 -0
- zexus-1.5.0/docs/keywords/CONTINUE.md +431 -0
- zexus-1.5.0/docs/keywords/DATA.md +1464 -0
- zexus-1.5.0/docs/keywords/ERROR_HANDLING.md +1159 -0
- zexus-1.5.0/docs/keywords/EVENTS_REACTIVE.md +635 -0
- zexus-1.5.0/docs/keywords/IF_ELIF_ELSE.md +694 -0
- zexus-1.5.0/docs/keywords/KEYWORD_TESTING_INDEX.md +278 -0
- zexus-1.5.0/docs/keywords/KEYWORD_TESTING_MASTER_LIST.md +940 -0
- zexus-1.5.0/docs/keywords/KEYWORD_TESTING_PROJECT_SUMMARY.md +280 -0
- zexus-1.5.0/docs/keywords/LET.md +517 -0
- zexus-1.5.0/docs/keywords/LOG.md +1150 -0
- zexus-1.5.0/docs/keywords/MODIFIERS.md +702 -0
- zexus-1.5.0/docs/keywords/MODULE_SYSTEM.md +363 -0
- zexus-1.5.0/docs/keywords/PERFORMANCE.md +560 -0
- zexus-1.5.0/docs/keywords/PRINT_DEBUG.md +687 -0
- zexus-1.5.0/docs/keywords/RENDERER_UI.md +645 -0
- zexus-1.5.0/docs/keywords/SECURITY.md +1299 -0
- zexus-1.5.0/docs/keywords/SPECIAL_KEYWORDS.md +73 -0
- zexus-1.5.0/docs/keywords/WHILE_FOR_EACH_IN.md +797 -0
- zexus-1.5.0/docs/keywords/ZPICS.md +345 -0
- zexus-1.5.0/docs/keywords/features/10-PHASE_COMPLETE.md +395 -0
- zexus-1.5.0/docs/keywords/features/ADVANCED_FEATURES_IMPLEMENTATION.md +926 -0
- zexus-1.5.0/docs/keywords/features/ADVANCED_PARSER_FIX_SUMMARY.md +89 -0
- zexus-1.5.0/docs/keywords/features/ASYNC_OPTIMIZER.md +618 -0
- zexus-1.5.0/docs/keywords/features/AUDIT_COMPLETION_SUMMARY.md +261 -0
- zexus-1.5.0/docs/keywords/features/AUDIT_SECURITY_INTEGRATION.md +340 -0
- zexus-1.5.0/docs/keywords/features/BLOCKCHAIN_IMPLEMENTATION.md +575 -0
- zexus-1.5.0/docs/keywords/features/BLOCKCHAIN_PARSER_EVALUATOR_INTEGRATION.md +399 -0
- zexus-1.5.0/docs/keywords/features/COMPREHENSIVE_VERIFICATION_REPORT.md +468 -0
- zexus-1.5.0/docs/keywords/features/FIXES_SUMMARY.md +346 -0
- zexus-1.5.0/docs/keywords/features/FIX_ISSUES_5_6_SUMMARY.md +40 -0
- zexus-1.5.0/docs/keywords/features/FIX_SUMMARY.md +106 -0
- zexus-1.5.0/docs/keywords/features/IF_STATEMENT_PARSER_FIX.md +71 -0
- zexus-1.5.0/docs/keywords/features/IF_THEN_ELSE_IMPLEMENTATION.md +228 -0
- zexus-1.5.0/docs/keywords/features/IMPLEMENTATION_SUMMARY.md +473 -0
- zexus-1.5.0/docs/keywords/features/INTEGRATION_COMPLETE.md +356 -0
- zexus-1.5.0/docs/keywords/features/INTEGRATION_COMPLETE_SUMMARY.md +186 -0
- zexus-1.5.0/docs/keywords/features/KEYWORD_AFTER_DOT.md +446 -0
- zexus-1.5.0/docs/keywords/features/KEYWORD_AFTER_DOT_IMPLEMENTATION.md +158 -0
- zexus-1.5.0/docs/keywords/features/MAIN_ENTRY_POINT_IMPLEMENTATION.md +298 -0
- zexus-1.5.0/docs/keywords/features/MAIN_ENTRY_POINT_IMPLEMENTATION_STATUS.md +249 -0
- zexus-1.5.0/docs/keywords/features/MEMORY_POOL_USAGE_GUIDE.md +933 -0
- zexus-1.5.0/docs/keywords/features/MODULE_SYSTEM_IMPLEMENTATION_SUMMARY.md +303 -0
- zexus-1.5.0/docs/keywords/features/PERFORMANCE_FEATURES_SUMMARY.md +383 -0
- zexus-1.5.0/docs/keywords/features/PHASE_10_COMPLETION.md +365 -0
- zexus-1.5.0/docs/keywords/features/PHASE_1_2_SUMMARY.md +340 -0
- zexus-1.5.0/docs/keywords/features/PHASE_2_JIT_COMPLETE.md +369 -0
- zexus-1.5.0/docs/keywords/features/PHASE_3_OPTIMIZER_COMPLETE.md +696 -0
- zexus-1.5.0/docs/keywords/features/PHASE_4_CACHE_COMPLETE.md +463 -0
- zexus-1.5.0/docs/keywords/features/PHASE_4_INTEGRATION_VERIFIED.md +348 -0
- zexus-1.5.0/docs/keywords/features/PHASE_5_COMPLETION_REPORT.md +248 -0
- zexus-1.5.0/docs/keywords/features/PHASE_5_REGISTER_VM_COMPLETE.md +453 -0
- zexus-1.5.0/docs/keywords/features/PHASE_6_COMPLETION_REPORT.md +420 -0
- zexus-1.5.0/docs/keywords/features/PHASE_6_PARALLEL_VM_COMPLETE.md +697 -0
- zexus-1.5.0/docs/keywords/features/PHASE_7_MEMORY_MANAGEMENT_COMPLETE.md +325 -0
- zexus-1.5.0/docs/keywords/features/PROFILER_USAGE_GUIDE.md +529 -0
- zexus-1.5.0/docs/keywords/features/REQUIRE_TOLERANCE_IMPLEMENTATION.md +117 -0
- zexus-1.5.0/docs/keywords/features/SEAL_IMPLEMENTATION_SUMMARY.md +205 -0
- zexus-1.5.0/docs/keywords/features/SECURITY_IMPLEMENTATION.md +531 -0
- zexus-1.5.0/docs/keywords/features/SECURITY_IMPLEMENTATION_SUMMARY.md +516 -0
- zexus-1.5.0/docs/keywords/features/SESSION_COMPLETION_SUMMARY.md +291 -0
- zexus-1.5.0/docs/keywords/features/SESSION_PARSER_FIX_SUMMARY.md +214 -0
- zexus-1.5.0/docs/keywords/features/SSA_AND_REGISTER_ALLOCATION.md +842 -0
- zexus-1.5.0/docs/keywords/features/TEST_SUITE_DOCUMENTATION.md +262 -0
- zexus-1.5.0/docs/keywords/features/VERIFY_ENHANCEMENT_GUIDE.md +401 -0
- zexus-1.5.0/docs/keywords/features/VERIFY_IMPLEMENTATION_SUMMARY.md +295 -0
- zexus-1.5.0/docs/keywords/features/VM_CONNECTION_VERIFIED.md +209 -0
- zexus-1.5.0/docs/keywords/features/VM_CRITICAL_ISSUES_FIXED.md +546 -0
- zexus-1.5.0/docs/keywords/features/VM_ENHANCEMENT_MASTER_LIST.md +1050 -0
- zexus-1.5.0/docs/keywords/features/VM_INTEGRATION_COMPLETE.md +231 -0
- zexus-1.5.0/docs/keywords/features/VM_INTEGRATION_SUMMARY.md +923 -0
- zexus-1.5.0/docs/keywords/features/VM_OPTIMIZATION_PHASE_8_MASTER_LIST.md +1002 -0
- zexus-1.5.0/docs/keywords/features/ZEXUS_IN_ACTION.md +245 -0
- zexus-1.5.0/docs/keywords/features/evaluator_export_compiler_summary.md +488 -0
- zexus-1.5.0/docs/keywords/features/installation_paths_summary.md +114 -0
- zexus-1.5.0/docs/keywords/features/module_cache.md +54 -0
- zexus-1.5.0/docs/keywords/features/parser_fix_summary.md +82 -0
- zexus-1.5.0/docs/keywords/features/parsing_fixes_summary.md +79 -0
- zexus-1.5.0/docs/profiler/PROFILER_GUIDE.md +217 -0
- zexus-1.5.0/docs/stdlib/BLOCKCHAIN_MODULE.md +265 -0
- zexus-1.5.0/docs/stdlib/CRYPTO_MODULE.md +155 -0
- zexus-1.5.0/docs/stdlib/INTEGRATION.md +255 -0
- zexus-1.5.0/docs/stdlib/README.md +139 -0
- zexus-1.5.0/dynamic.zx +15 -0
- zexus-1.5.0/dynamic_math.zx +980 -0
- zexus-1.5.0/examples/MAIN_ENTRY_POINT_EXAMPLES.md +91 -0
- zexus-1.5.0/examples/action_literal_test.zx +9 -0
- zexus-1.5.0/examples/daemon_example.zx +33 -0
- zexus-1.5.0/examples/debug_detailed.zx +17 -0
- zexus-1.5.0/examples/debug_environment.zx +10 -0
- zexus-1.5.0/examples/debug_functions.zx +10 -0
- zexus-1.5.0/examples/debug_parser_detailed.zx +1 -0
- zexus-1.5.0/examples/exit_program_example.zx +29 -0
- zexus-1.5.0/examples/explicit_assignment_test.zx +10 -0
- zexus-1.5.0/examples/import_main_module.zx +19 -0
- zexus-1.5.0/examples/is_main_helper.zx +25 -0
- zexus-1.5.0/examples/main_entry_point.zx +39 -0
- zexus-1.5.0/examples/minimal_function_test.zx +10 -0
- zexus-1.5.0/examples/server_with_run.zx +25 -0
- zexus-1.5.0/examples/simple_action_test.zx +1 -0
- zexus-1.5.0/examples/simple_run_example.zx +20 -0
- zexus-1.5.0/examples/simple_test.zx +1 -0
- zexus-1.5.0/examples/test.zx +1 -0
- zexus-1.5.0/examples/token_contract.zx +306 -0
- zexus-1.5.0/examples/ziver_chain_test.zx +92 -0
- zexus-1.5.0/fix_type_checks.py +30 -0
- zexus-1.5.0/index.zx +194 -0
- zexus-1.5.0/install.sh +44 -0
- zexus-1.5.0/linguist-submission/SUBMISSION_INSTRUCTIONS.md +193 -0
- zexus-1.5.0/linguist-submission/grammars.yml +3 -0
- zexus-1.5.0/linguist-submission/languages.yml +16 -0
- zexus-1.5.0/linguist-submission/samples/basic.zx +37 -0
- zexus-1.5.0/linguist-submission/samples/blockchain.zx +44 -0
- zexus-1.5.0/linguist-submission/samples/security.zx +61 -0
- zexus-1.5.0/linguist-submission/zexus.tmLanguage.json +197 -0
- zexus-1.5.0/pyproject.toml +97 -0
- zexus-1.5.0/pytest.ini +6 -0
- zexus-1.5.0/renderer/__init__.py +1 -0
- zexus-1.5.0/renderer/backend.py +93 -0
- zexus-1.5.0/renderer/canvas.py +226 -0
- zexus-1.5.0/renderer/color_system.py +250 -0
- zexus-1.5.0/renderer/graphics.py +266 -0
- zexus-1.5.0/renderer/layout.py +260 -0
- zexus-1.5.0/renderer/main_renderer.py +106 -0
- zexus-1.5.0/renderer/painter.py +210 -0
- zexus-1.5.0/samples/basic.zx +37 -0
- zexus-1.5.0/samples/blockchain.zx +44 -0
- zexus-1.5.0/samples/security.zx +61 -0
- zexus-1.5.0/scripts/README.md +24 -0
- zexus-1.5.0/scripts/__init__.py.bak +23 -0
- zexus-1.5.0/scripts/__main__.py +5 -0
- zexus-1.5.0/scripts/fixed_parser.py +20 -0
- zexus-1.5.0/scripts/integration_demo.py +283 -0
- zexus-1.5.0/scripts/main.py +40 -0
- zexus-1.5.0/scripts/run_zexus_tests.py +91 -0
- zexus-1.5.0/scripts/zpm.py +191 -0
- zexus-1.5.0/scripts/zx-luncher.py +17 -0
- zexus-1.5.0/setup.cfg +49 -0
- zexus-1.5.0/setup.py +107 -0
- zexus-1.5.0/setup_stdlib.sh +55 -0
- zexus-1.5.0/shared_config.json +24 -0
- zexus-1.5.0/src/README.md +1525 -0
- zexus-1.5.0/src/tests/run_zexus_tests.py +117 -0
- zexus-1.5.0/src/tests/test_all_phases.zx +346 -0
- zexus-1.5.0/src/tests/test_blockchain_features.zx +306 -0
- zexus-1.5.0/src/tests/test_complexity_features.zx +321 -0
- zexus-1.5.0/src/tests/test_core_integration.py +185 -0
- zexus-1.5.0/src/tests/test_phase10_ecosystem.zx +177 -0
- zexus-1.5.0/src/tests/test_phase1_modifiers.zx +87 -0
- zexus-1.5.0/src/tests/test_phase2_plugins.zx +80 -0
- zexus-1.5.0/src/tests/test_phase3_security.zx +97 -0
- zexus-1.5.0/src/tests/test_phase4_vfs.zx +116 -0
- zexus-1.5.0/src/tests/test_phase5_types.zx +117 -0
- zexus-1.5.0/src/tests/test_phase6_metaprogramming.zx +125 -0
- zexus-1.5.0/src/tests/test_phase7_optimization.zx +132 -0
- zexus-1.5.0/src/tests/test_phase9_advanced_types.zx +157 -0
- zexus-1.5.0/src/tests/test_security_features.py +419 -0
- zexus-1.5.0/src/tests/test_security_features.zx +276 -0
- zexus-1.5.0/src/tests/test_simple_zx.zx +1 -0
- zexus-1.5.0/src/tests/test_verification_simple.zx +69 -0
- zexus-1.5.0/src/zexus/__init__.py +28 -0
- zexus-1.5.0/src/zexus/__main__.py +5 -0
- zexus-1.5.0/src/zexus/advanced_types.py +401 -0
- zexus-1.5.0/src/zexus/blockchain/__init__.py +40 -0
- zexus-1.5.0/src/zexus/blockchain/crypto.py +463 -0
- zexus-1.5.0/src/zexus/blockchain/ledger.py +255 -0
- zexus-1.5.0/src/zexus/blockchain/transaction.py +267 -0
- zexus-1.5.0/src/zexus/builtin_modules.py +284 -0
- zexus-1.5.0/src/zexus/builtin_plugins.py +317 -0
- zexus-1.5.0/src/zexus/capability_system.py +372 -0
- zexus-1.5.0/src/zexus/cli/__init__.py +2 -0
- zexus-1.5.0/src/zexus/cli/main.py +707 -0
- zexus-1.5.0/src/zexus/cli/zpm.py +203 -0
- zexus-1.5.0/src/zexus/compare_interpreter_compiler.py +146 -0
- zexus-1.5.0/src/zexus/compiler/__init__.py +169 -0
- zexus-1.5.0/src/zexus/compiler/bytecode.py +266 -0
- zexus-1.5.0/src/zexus/compiler/compat_runtime.py +277 -0
- zexus-1.5.0/src/zexus/compiler/lexer.py +257 -0
- zexus-1.5.0/src/zexus/compiler/parser.py +779 -0
- zexus-1.5.0/src/zexus/compiler/semantic.py +118 -0
- zexus-1.5.0/src/zexus/compiler/zexus_ast.py +454 -0
- zexus-1.5.0/src/zexus/complexity_system.py +575 -0
- zexus-1.5.0/src/zexus/concurrency_system.py +493 -0
- zexus-1.5.0/src/zexus/config.py +201 -0
- zexus-1.5.0/src/zexus/crypto_bridge.py +19 -0
- zexus-1.5.0/src/zexus/dependency_injection.py +423 -0
- zexus-1.5.0/src/zexus/ecosystem.py +434 -0
- zexus-1.5.0/src/zexus/environment.py +101 -0
- zexus-1.5.0/src/zexus/environment_manager.py +119 -0
- zexus-1.5.0/src/zexus/error_reporter.py +314 -0
- zexus-1.5.0/src/zexus/evaluator/__init__.py +12 -0
- zexus-1.5.0/src/zexus/evaluator/bytecode_compiler.py +700 -0
- zexus-1.5.0/src/zexus/evaluator/core.py +875 -0
- zexus-1.5.0/src/zexus/evaluator/expressions.py +827 -0
- zexus-1.5.0/src/zexus/evaluator/functions.py +2953 -0
- zexus-1.5.0/src/zexus/evaluator/integration.py +396 -0
- zexus-1.5.0/src/zexus/evaluator/statements.py +4291 -0
- zexus-1.5.0/src/zexus/evaluator/utils.py +126 -0
- zexus-1.5.0/src/zexus/evaluator_original.py +2041 -0
- zexus-1.5.0/src/zexus/external_bridge.py +16 -0
- zexus-1.5.0/src/zexus/find_affected_imports.sh +155 -0
- zexus-1.5.0/src/zexus/hybrid_orchestrator.py +152 -0
- zexus-1.5.0/src/zexus/input_validation.py +259 -0
- zexus-1.5.0/src/zexus/lexer.py +571 -0
- zexus-1.5.0/src/zexus/logging.py +89 -0
- zexus-1.5.0/src/zexus/lsp/__init__.py +9 -0
- zexus-1.5.0/src/zexus/lsp/completion_provider.py +207 -0
- zexus-1.5.0/src/zexus/lsp/definition_provider.py +22 -0
- zexus-1.5.0/src/zexus/lsp/hover_provider.py +71 -0
- zexus-1.5.0/src/zexus/lsp/server.py +269 -0
- zexus-1.5.0/src/zexus/lsp/symbol_provider.py +31 -0
- zexus-1.5.0/src/zexus/metaprogramming.py +321 -0
- zexus-1.5.0/src/zexus/module_cache.py +89 -0
- zexus-1.5.0/src/zexus/module_manager.py +107 -0
- zexus-1.5.0/src/zexus/object.py +959 -0
- zexus-1.5.0/src/zexus/optimization.py +424 -0
- zexus-1.5.0/src/zexus/parser/__init__.py +31 -0
- zexus-1.5.0/src/zexus/parser/integration.py +86 -0
- zexus-1.5.0/src/zexus/parser/parser.py +3971 -0
- zexus-1.5.0/src/zexus/parser/strategy_context.py +7197 -0
- zexus-1.5.0/src/zexus/parser/strategy_structural.py +1014 -0
- zexus-1.5.0/src/zexus/persistence.py +391 -0
- zexus-1.5.0/src/zexus/plugin_system.py +290 -0
- zexus-1.5.0/src/zexus/policy_engine.py +365 -0
- zexus-1.5.0/src/zexus/profiler/__init__.py +5 -0
- zexus-1.5.0/src/zexus/profiler/profiler.py +233 -0
- zexus-1.5.0/src/zexus/purity_system.py +398 -0
- zexus-1.5.0/src/zexus/runtime/__init__.py +20 -0
- zexus-1.5.0/src/zexus/runtime/async_runtime.py +324 -0
- zexus-1.5.0/src/zexus/search_old_imports.sh +65 -0
- zexus-1.5.0/src/zexus/security.py +1302 -0
- zexus-1.5.0/src/zexus/stack_trace.py +233 -0
- zexus-1.5.0/src/zexus/stdlib/__init__.py +27 -0
- zexus-1.5.0/src/zexus/stdlib/blockchain.py +341 -0
- zexus-1.5.0/src/zexus/stdlib/compression.py +167 -0
- zexus-1.5.0/src/zexus/stdlib/crypto.py +124 -0
- zexus-1.5.0/src/zexus/stdlib/datetime.py +163 -0
- zexus-1.5.0/src/zexus/stdlib/encoding.py +230 -0
- zexus-1.5.0/src/zexus/stdlib/fs.py +195 -0
- zexus-1.5.0/src/zexus/stdlib/http.py +219 -0
- zexus-1.5.0/src/zexus/stdlib/json_module.py +61 -0
- zexus-1.5.0/src/zexus/stdlib/math.py +360 -0
- zexus-1.5.0/src/zexus/stdlib/os_module.py +265 -0
- zexus-1.5.0/src/zexus/stdlib/regex.py +148 -0
- zexus-1.5.0/src/zexus/stdlib_integration.py +341 -0
- zexus-1.5.0/src/zexus/strategy_recovery.py +256 -0
- zexus-1.5.0/src/zexus/syntax_validator.py +315 -0
- zexus-1.5.0/src/zexus/testing/zpics.py +407 -0
- zexus-1.5.0/src/zexus/testing/zpics_runtime.py +369 -0
- zexus-1.5.0/src/zexus/type_system.py +374 -0
- zexus-1.5.0/src/zexus/validation_system.py +569 -0
- zexus-1.5.0/src/zexus/virtual_filesystem.py +355 -0
- zexus-1.5.0/src/zexus/vm/__init__.py +8 -0
- zexus-1.5.0/src/zexus/vm/async_optimizer.py +420 -0
- zexus-1.5.0/src/zexus/vm/bytecode.py +428 -0
- zexus-1.5.0/src/zexus/vm/bytecode_converter.py +297 -0
- zexus-1.5.0/src/zexus/vm/cache.py +532 -0
- zexus-1.5.0/src/zexus/vm/jit.py +720 -0
- zexus-1.5.0/src/zexus/vm/memory_manager.py +520 -0
- zexus-1.5.0/src/zexus/vm/memory_pool.py +511 -0
- zexus-1.5.0/src/zexus/vm/optimizer.py +478 -0
- zexus-1.5.0/src/zexus/vm/parallel_vm.py +899 -0
- zexus-1.5.0/src/zexus/vm/peephole_optimizer.py +452 -0
- zexus-1.5.0/src/zexus/vm/profiler.py +527 -0
- zexus-1.5.0/src/zexus/vm/register_allocator.py +462 -0
- zexus-1.5.0/src/zexus/vm/register_vm.py +520 -0
- zexus-1.5.0/src/zexus/vm/ssa_converter.py +757 -0
- zexus-1.5.0/src/zexus/vm/vm.py +1392 -0
- zexus-1.5.0/src/zexus/zexus_ast.py +1782 -0
- zexus-1.5.0/src/zexus/zexus_token.py +253 -0
- zexus-1.5.0/src/zexus/zpm/__init__.py +15 -0
- zexus-1.5.0/src/zexus/zpm/installer.py +116 -0
- zexus-1.5.0/src/zexus/zpm/package_manager.py +208 -0
- zexus-1.5.0/src/zexus/zpm/publisher.py +98 -0
- zexus-1.5.0/src/zexus/zpm/registry.py +110 -0
- zexus-1.5.0/src/zexus.egg-info/PKG-INFO +2309 -0
- zexus-1.5.0/src/zexus.egg-info/SOURCES.txt +861 -0
- zexus-1.5.0/src/zexus.egg-info/dependency_links.txt +1 -0
- zexus-1.5.0/src/zexus.egg-info/entry_points.txt +3 -0
- zexus-1.5.0/src/zexus.egg-info/not-zip-safe +1 -0
- zexus-1.5.0/src/zexus.egg-info/requires.txt +14 -0
- zexus-1.5.0/src/zexus.egg-info/top_level.txt +2 -0
- zexus-1.5.0/syntaxes/zexus.tmLanguage.json +197 -0
- zexus-1.5.0/tests/TEST_RESULTS.md +471 -0
- zexus-1.5.0/tests/advanced_edge_cases/README.md +325 -0
- zexus-1.5.0/tests/advanced_edge_cases/test_bytecode_validation.py +189 -0
- zexus-1.5.0/tests/advanced_edge_cases/test_circular_imports.py +155 -0
- zexus-1.5.0/tests/advanced_edge_cases/test_file_io_errors.py +149 -0
- zexus-1.5.0/tests/advanced_edge_cases/test_input_validation.py +281 -0
- zexus-1.5.0/tests/advanced_edge_cases/test_memory_limits.py +179 -0
- zexus-1.5.0/tests/advanced_edge_cases/test_network_capabilities.py +201 -0
- zexus-1.5.0/tests/advanced_edge_cases/test_recursion_limits.py +159 -0
- zexus-1.5.0/tests/advanced_edge_cases/test_resource_cleanup.py +267 -0
- zexus-1.5.0/tests/advanced_edge_cases/test_resource_cleanup_simple.py +168 -0
- zexus-1.5.0/tests/builtin_modules/README.md +24 -0
- zexus-1.5.0/tests/builtin_modules/test_crypto_basic.zx +5 -0
- zexus-1.5.0/tests/comprehensive_test.zx +149 -0
- zexus-1.5.0/tests/conftest.py +8 -0
- zexus-1.5.0/tests/debug_print_parse.py +24 -0
- zexus-1.5.0/tests/debug_tokens.py +19 -0
- zexus-1.5.0/tests/edge_cases/README.md +119 -0
- zexus-1.5.0/tests/edge_cases/test_arithmetic_edge_cases.py +129 -0
- zexus-1.5.0/tests/edge_cases/test_comprehensive_edge_cases.py +303 -0
- zexus-1.5.0/tests/edge_cases/test_null_reassignment.py +152 -0
- zexus-1.5.0/tests/examples/clean_test.zx +6 -0
- zexus-1.5.0/tests/examples/debug.zx +17 -0
- zexus-1.5.0/tests/examples/debug_test.zx +3 -0
- zexus-1.5.0/tests/examples/debug_try_catch.zx +12 -0
- zexus-1.5.0/tests/examples/let_test.zx +3 -0
- zexus-1.5.0/tests/examples/math.zx +136 -0
- zexus-1.5.0/tests/examples/math_simple.zx +106 -0
- zexus-1.5.0/tests/examples/minimal_test.zx +0 -0
- zexus-1.5.0/tests/examples/module_registry.zx +21 -0
- zexus-1.5.0/tests/examples/no_comments_test.zx +4 -0
- zexus-1.5.0/tests/examples/repro_issue2.zx +14 -0
- zexus-1.5.0/tests/examples/repro_issue3.zx +20 -0
- zexus-1.5.0/tests/examples/repro_issue4.zx +22 -0
- zexus-1.5.0/tests/examples/repro_issue6.zx +11 -0
- zexus-1.5.0/tests/examples/simple1.zx +1 -0
- zexus-1.5.0/tests/examples/simple2.zx +1 -0
- zexus-1.5.0/tests/examples/simple3.zx +1 -0
- zexus-1.5.0/tests/examples/simple_let_test.zx +2 -0
- zexus-1.5.0/tests/examples/simple_test.zx +3 -0
- zexus-1.5.0/tests/final_integration_test.zx +77 -0
- zexus-1.5.0/tests/fixtures/inline_int.zx +2 -0
- zexus-1.5.0/tests/fixtures/inline_math.zx +3 -0
- zexus-1.5.0/tests/fixtures/inline_math2.zx +2 -0
- zexus-1.5.0/tests/fixtures/modules/a.zx +4 -0
- zexus-1.5.0/tests/fixtures/modules/b.zx +3 -0
- zexus-1.5.0/tests/fixtures/modules/mathmod.zx +2 -0
- zexus-1.5.0/tests/fixtures/print_float_literal.zx +1 -0
- zexus-1.5.0/tests/fixtures/print_one.zx +1 -0
- zexus-1.5.0/tests/fixtures/use_import.zx +2 -0
- zexus-1.5.0/tests/fixtures/use_only.zx +1 -0
- zexus-1.5.0/tests/golden/README.md +49 -0
- zexus-1.5.0/tests/golden/function_calls_after_let.zx +12 -0
- zexus-1.5.0/tests/golden/mixed_statement_boundaries.zx +20 -0
- zexus-1.5.0/tests/golden/nested_expressions.zx +10 -0
- zexus-1.5.0/tests/golden/persistence_after_assignment.zx +19 -0
- zexus-1.5.0/tests/golden/property_assignments.zx +14 -0
- zexus-1.5.0/tests/golden/type_annotations.zx +10 -0
- zexus-1.5.0/tests/integration/core/simple_test.zx +18 -0
- zexus-1.5.0/tests/integration/core/test_all_comparisons.zx +25 -0
- zexus-1.5.0/tests/integration/core/test_all_comparisons_fixed.zx +45 -0
- zexus-1.5.0/tests/integration/core/test_assignment_simple.zx +10 -0
- zexus-1.5.0/tests/integration/core/test_better_control.zx +24 -0
- zexus-1.5.0/tests/integration/core/test_boolean_only.zx +19 -0
- zexus-1.5.0/tests/integration/core/test_booleans.zx +24 -0
- zexus-1.5.0/tests/integration/core/test_comparisons.zx +15 -0
- zexus-1.5.0/tests/integration/core/test_control_flow.zx +50 -0
- zexus-1.5.0/tests/integration/core/test_control_flow_fixed.zx +54 -0
- zexus-1.5.0/tests/integration/core/test_core.zx +19 -0
- zexus-1.5.0/tests/integration/core/test_data_structures.zx +23 -0
- zexus-1.5.0/tests/integration/core/test_datetime_math.zx +16 -0
- zexus-1.5.0/tests/integration/core/test_debug_error.zx +40 -0
- zexus-1.5.0/tests/integration/core/test_edge_cases.zx +22 -0
- zexus-1.5.0/tests/integration/core/test_explicit.zx +6 -0
- zexus-1.5.0/tests/integration/core/test_file_io.zx +27 -0
- zexus-1.5.0/tests/integration/core/test_final_control.zx +29 -0
- zexus-1.5.0/tests/integration/core/test_float.zx +16 -0
- zexus-1.5.0/tests/integration/core/test_map.zx +14 -0
- zexus-1.5.0/tests/integration/core/test_minimal.zx +3 -0
- zexus-1.5.0/tests/integration/core/test_modulo.zx +18 -0
- zexus-1.5.0/tests/integration/core/test_multi_language_fixed.zx +34 -0
- zexus-1.5.0/tests/integration/core/test_print_basic.zx +2 -0
- zexus-1.5.0/tests/integration/core/test_print_single.zx +2 -0
- zexus-1.5.0/tests/integration/core/test_simple.zx +13 -0
- zexus-1.5.0/tests/integration/core/test_simple_control.zx +23 -0
- zexus-1.5.0/tests/integration/core/test_simple_expressions.zx +17 -0
- zexus-1.5.0/tests/integration/core/test_syntax_discovery.zx +20 -0
- zexus-1.5.0/tests/integration/core/test_ui.zx +6 -0
- zexus-1.5.0/tests/integration/core/test_vars.zx +3 -0
- zexus-1.5.0/tests/integration/core/test_working_control.zx +34 -0
- zexus-1.5.0/tests/integration/core/test_working_syntax.zx +40 -0
- zexus-1.5.0/tests/integration/features/test_daemonize.zx +25 -0
- zexus-1.5.0/tests/integration/features/test_enhanced_run.zx +36 -0
- zexus-1.5.0/tests/integration/features/test_hot_reload.zx +36 -0
- zexus-1.5.0/tests/integration/features/test_hot_reload_callback.zx +16 -0
- zexus-1.5.0/tests/integration/features/test_hot_reload_simple.zx +11 -0
- zexus-1.5.0/tests/integration/features/test_lifecycle_hooks.zx +44 -0
- zexus-1.5.0/tests/integration/features/test_main_args_complete.zx +48 -0
- zexus-1.5.0/tests/integration/features/test_module_introspection.zx +51 -0
- zexus-1.5.0/tests/integration/features/test_phase1_features.zx +175 -0
- zexus-1.5.0/tests/integration/features/test_production_features.zx +95 -0
- zexus-1.5.0/tests/integration/features/test_run_with_args.zx +30 -0
- zexus-1.5.0/tests/integration/features/test_schedule.zx +56 -0
- zexus-1.5.0/tests/integration/features/test_schedule_multi.zx +22 -0
- zexus-1.5.0/tests/integration/features/test_schedule_simple.zx +15 -0
- zexus-1.5.0/tests/integration/features/test_signal_handlers.zx +34 -0
- zexus-1.5.0/tests/integration/features/test_signal_handlers_enhanced.zx +60 -0
- zexus-1.5.0/tests/integration/features/test_simple_features.zx +31 -0
- zexus-1.5.0/tests/integration/keywords/if_test.zx +6 -0
- zexus-1.5.0/tests/integration/keywords/test_action_fix.zx +16 -0
- zexus-1.5.0/tests/integration/keywords/test_actionliteral_eval.zx +7 -0
- zexus-1.5.0/tests/integration/keywords/test_all_lambdas.zx +44 -0
- zexus-1.5.0/tests/integration/keywords/test_args.zx +18 -0
- zexus-1.5.0/tests/integration/keywords/test_args_brace.zx +18 -0
- zexus-1.5.0/tests/integration/keywords/test_args_if.zx +13 -0
- zexus-1.5.0/tests/integration/keywords/test_bare_function.zx +6 -0
- zexus-1.5.0/tests/integration/keywords/test_if.zx +18 -0
- zexus-1.5.0/tests/integration/keywords/test_if_else.zx +23 -0
- zexus-1.5.0/tests/integration/keywords/test_if_simple.zx +7 -0
- zexus-1.5.0/tests/integration/keywords/test_if_syntax.zx +21 -0
- zexus-1.5.0/tests/integration/keywords/test_lambda_and_chains.py +31 -0
- zexus-1.5.0/tests/integration/keywords/test_lambda_and_chains_pytest.py +40 -0
- zexus-1.5.0/tests/integration/keywords/test_let_complex.zx +31 -0
- zexus-1.5.0/tests/integration/keywords/test_let_function_call.zx +23 -0
- zexus-1.5.0/tests/integration/keywords/test_let_in_if.zx +24 -0
- zexus-1.5.0/tests/integration/keywords/test_loops.zx +20 -0
- zexus-1.5.0/tests/integration/keywords/test_while_simple.zx +10 -0
- zexus-1.5.0/tests/integration/test_advanced_features_complete.zx +220 -0
- zexus-1.5.0/tests/integration/test_audit_command.zx +31 -0
- zexus-1.5.0/tests/integration/test_blockchain_integration.zx +45 -0
- zexus-1.5.0/tests/integration/test_brace.zx +5 -0
- zexus-1.5.0/tests/integration/test_builtins_simple.zx +25 -0
- zexus-1.5.0/tests/integration/test_capability_simple.zx +4 -0
- zexus-1.5.0/tests/integration/test_concat.zx +1 -0
- zexus-1.5.0/tests/integration/test_concat_undefined.zx +3 -0
- zexus-1.5.0/tests/integration/test_dependency_injection.zx +212 -0
- zexus-1.5.0/tests/integration/test_diag.zx +1 -0
- zexus-1.5.0/tests/integration/test_escape.zx +1 -0
- zexus-1.5.0/tests/integration/test_eval.zx +1 -0
- zexus-1.5.0/tests/integration/test_fix.zx +0 -0
- zexus-1.5.0/tests/integration/test_fix_circular.zx +23 -0
- zexus-1.5.0/tests/integration/test_func_decl.zx +6 -0
- zexus-1.5.0/tests/integration/test_func_expr.zx +1 -0
- zexus-1.5.0/tests/integration/test_func_literal.zx +6 -0
- zexus-1.5.0/tests/integration/test_function_call.zx +7 -0
- zexus-1.5.0/tests/integration/test_hash_token.zx +2 -0
- zexus-1.5.0/tests/integration/test_integration_simple.zx +24 -0
- zexus-1.5.0/tests/integration/test_issue3_and_4.zx +17 -0
- zexus-1.5.0/tests/integration/test_issue3_print_concat.zx +4 -0
- zexus-1.5.0/tests/integration/test_issue5_type_alias.zx +9 -0
- zexus-1.5.0/tests/integration/test_issue6_using.zx +9 -0
- zexus-1.5.0/tests/integration/test_issue7_packages.zx +10 -0
- zexus-1.5.0/tests/integration/test_issues_comprehensive.zx +50 -0
- zexus-1.5.0/tests/integration/test_map.zx +2 -0
- zexus-1.5.0/tests/integration/test_map_access.zx +3 -0
- zexus-1.5.0/tests/integration/test_math_core.zx +31 -0
- zexus-1.5.0/tests/integration/test_minimal2.zx +29 -0
- zexus-1.5.0/tests/integration/test_minimal_phase1.zx +37 -0
- zexus-1.5.0/tests/integration/test_module_basic.zx +8 -0
- zexus-1.5.0/tests/integration/test_module_debug.zx +10 -0
- zexus-1.5.0/tests/integration/test_module_simple.zx +10 -0
- zexus-1.5.0/tests/integration/test_no_comments.zx +5 -0
- zexus-1.5.0/tests/integration/test_package_hierarchy.zx +36 -0
- zexus-1.5.0/tests/integration/test_package_simple.zx +12 -0
- zexus-1.5.0/tests/integration/test_persistence_and_memory.zx +53 -0
- zexus-1.5.0/tests/integration/test_protect_feature.zx +121 -0
- zexus-1.5.0/tests/integration/test_seal_feature.zx +21 -0
- zexus-1.5.0/tests/integration/test_simple.zx +11 -0
- zexus-1.5.0/tests/integration/test_simple_assign.zx +2 -0
- zexus-1.5.0/tests/integration/test_simple_fix.zx +15 -0
- zexus-1.5.0/tests/integration/test_simple_fixes.zx +35 -0
- zexus-1.5.0/tests/integration/test_simple_func.zx +5 -0
- zexus-1.5.0/tests/integration/test_simple_print.zx +4 -0
- zexus-1.5.0/tests/integration/test_stdlib.zx +26 -0
- zexus-1.5.0/tests/integration/test_try_catch_simple.zx +10 -0
- zexus-1.5.0/tests/integration/test_try_syntax.zx +11 -0
- zexus-1.5.0/tests/integration/test_try_traditional.zx +11 -0
- zexus-1.5.0/tests/integration/test_type_alias_advanced.zx +25 -0
- zexus-1.5.0/tests/integration/test_type_alias_errors.zx +13 -0
- zexus-1.5.0/tests/integration/test_using_file.zx +14 -0
- zexus-1.5.0/tests/integration/test_watch.zx +32 -0
- zexus-1.5.0/tests/integration/test_watch_clean.zx +70 -0
- zexus-1.5.0/tests/integration/test_watch_feature.zx +75 -0
- zexus-1.5.0/tests/integration/test_working.zx +39 -0
- zexus-1.5.0/tests/integration/test_working_fixed.zx +36 -0
- zexus-1.5.0/tests/keyword_tests/README.md +206 -0
- zexus-1.5.0/tests/keyword_tests/complex/test_advanced_complex.zx +248 -0
- zexus-1.5.0/tests/keyword_tests/complex/test_async_complex.zx +359 -0
- zexus-1.5.0/tests/keyword_tests/complex/test_blockchain_complex.zx +195 -0
- zexus-1.5.0/tests/keyword_tests/complex/test_capability_complex.zx +370 -0
- zexus-1.5.0/tests/keyword_tests/complex/test_const_complex.zx +290 -0
- zexus-1.5.0/tests/keyword_tests/complex/test_continue_complex.zx +331 -0
- zexus-1.5.0/tests/keyword_tests/complex/test_error_handling_complex.zx +626 -0
- zexus-1.5.0/tests/keyword_tests/complex/test_events_complex.zx +548 -0
- zexus-1.5.0/tests/keyword_tests/complex/test_functions_complex.zx +293 -0
- zexus-1.5.0/tests/keyword_tests/complex/test_if_complex.zx +341 -0
- zexus-1.5.0/tests/keyword_tests/complex/test_io_modules_complex.zx +305 -0
- zexus-1.5.0/tests/keyword_tests/complex/test_let_complex.zx +338 -0
- zexus-1.5.0/tests/keyword_tests/complex/test_modifiers_complex.zx +497 -0
- zexus-1.5.0/tests/keyword_tests/complex/test_module_complex.zx +486 -0
- zexus-1.5.0/tests/keyword_tests/complex/test_parallel_stress.zx +136 -0
- zexus-1.5.0/tests/keyword_tests/complex/test_performance_complex.zx +235 -0
- zexus-1.5.0/tests/keyword_tests/complex/test_register_stress.zx +231 -0
- zexus-1.5.0/tests/keyword_tests/complex/test_renderer_complex.zx +375 -0
- zexus-1.5.0/tests/keyword_tests/complex/test_renderer_ops_complex.zx +277 -0
- zexus-1.5.0/tests/keyword_tests/complex/test_security_complex.zx +465 -0
- zexus-1.5.0/tests/keyword_tests/complex/test_special_complex.zx +345 -0
- zexus-1.5.0/tests/keyword_tests/complex/test_while_for_each_complex.zx +213 -0
- zexus-1.5.0/tests/keyword_tests/easy/test_advanced_easy.zx +163 -0
- zexus-1.5.0/tests/keyword_tests/easy/test_async_easy.zx +139 -0
- zexus-1.5.0/tests/keyword_tests/easy/test_async_easy.zx.old +236 -0
- zexus-1.5.0/tests/keyword_tests/easy/test_blockchain_easy.zx +91 -0
- zexus-1.5.0/tests/keyword_tests/easy/test_capability_easy.zx +159 -0
- zexus-1.5.0/tests/keyword_tests/easy/test_const_easy.zx +82 -0
- zexus-1.5.0/tests/keyword_tests/easy/test_continue_easy.zx +123 -0
- zexus-1.5.0/tests/keyword_tests/easy/test_data_easy.zx +132 -0
- zexus-1.5.0/tests/keyword_tests/easy/test_error_handling_easy.zx +261 -0
- zexus-1.5.0/tests/keyword_tests/easy/test_events_easy.zx +210 -0
- zexus-1.5.0/tests/keyword_tests/easy/test_functions_easy.zx +159 -0
- zexus-1.5.0/tests/keyword_tests/easy/test_if_easy.zx +155 -0
- zexus-1.5.0/tests/keyword_tests/easy/test_io_modules_easy.zx +119 -0
- zexus-1.5.0/tests/keyword_tests/easy/test_let_easy.zx +89 -0
- zexus-1.5.0/tests/keyword_tests/easy/test_loops_easy.zx +163 -0
- zexus-1.5.0/tests/keyword_tests/easy/test_modifiers_easy.zx +170 -0
- zexus-1.5.0/tests/keyword_tests/easy/test_module_easy.zx +115 -0
- zexus-1.5.0/tests/keyword_tests/easy/test_parallel_basic.zx +188 -0
- zexus-1.5.0/tests/keyword_tests/easy/test_performance_easy.zx +105 -0
- zexus-1.5.0/tests/keyword_tests/easy/test_phase13_easy.zx +139 -0
- zexus-1.5.0/tests/keyword_tests/easy/test_register_basic.zx +87 -0
- zexus-1.5.0/tests/keyword_tests/easy/test_renderer_easy.zx +161 -0
- zexus-1.5.0/tests/keyword_tests/easy/test_renderer_ops_easy.zx +134 -0
- zexus-1.5.0/tests/keyword_tests/easy/test_security_easy.zx +182 -0
- zexus-1.5.0/tests/keyword_tests/easy/test_special_easy.zx +145 -0
- zexus-1.5.0/tests/keyword_tests/easy/test_while_for_each_easy.zx +153 -0
- zexus-1.5.0/tests/keyword_tests/medium/test_advanced_medium.zx +190 -0
- zexus-1.5.0/tests/keyword_tests/medium/test_async_medium.zx +322 -0
- zexus-1.5.0/tests/keyword_tests/medium/test_blockchain_medium.zx +122 -0
- zexus-1.5.0/tests/keyword_tests/medium/test_capability_medium.zx +262 -0
- zexus-1.5.0/tests/keyword_tests/medium/test_const_medium.zx +136 -0
- zexus-1.5.0/tests/keyword_tests/medium/test_continue_medium.zx +219 -0
- zexus-1.5.0/tests/keyword_tests/medium/test_data_edge_cases.zx +236 -0
- zexus-1.5.0/tests/keyword_tests/medium/test_error_handling_medium.zx +383 -0
- zexus-1.5.0/tests/keyword_tests/medium/test_events_medium.zx +356 -0
- zexus-1.5.0/tests/keyword_tests/medium/test_functions_medium.zx +239 -0
- zexus-1.5.0/tests/keyword_tests/medium/test_if_medium.zx +244 -0
- zexus-1.5.0/tests/keyword_tests/medium/test_io_modules_medium.zx +173 -0
- zexus-1.5.0/tests/keyword_tests/medium/test_let_medium.zx +165 -0
- zexus-1.5.0/tests/keyword_tests/medium/test_modifiers_medium.zx +223 -0
- zexus-1.5.0/tests/keyword_tests/medium/test_module_medium.zx +282 -0
- zexus-1.5.0/tests/keyword_tests/medium/test_parallel_advanced.zx +322 -0
- zexus-1.5.0/tests/keyword_tests/medium/test_performance_medium.zx +175 -0
- zexus-1.5.0/tests/keyword_tests/medium/test_register_advanced.zx +156 -0
- zexus-1.5.0/tests/keyword_tests/medium/test_renderer_medium.zx +195 -0
- zexus-1.5.0/tests/keyword_tests/medium/test_renderer_ops_medium.zx +177 -0
- zexus-1.5.0/tests/keyword_tests/medium/test_security_medium.zx +272 -0
- zexus-1.5.0/tests/keyword_tests/medium/test_special_medium.zx +204 -0
- zexus-1.5.0/tests/keyword_tests/medium/test_while_for_each_medium.zx +199 -0
- zexus-1.5.0/tests/keyword_tests/run_keyword_test.sh +71 -0
- zexus-1.5.0/tests/keyword_tests/test_module_helper.zx +24 -0
- zexus-1.5.0/tests/repro/repro_enum.zx +1 -0
- zexus-1.5.0/tests/repro/repro_lambda.zx +1 -0
- zexus-1.5.0/tests/repro/repro_map.zx +1 -0
- zexus-1.5.0/tests/repro/repro_protocol.zx +4 -0
- zexus-1.5.0/tests/test_async_system_integration.py +377 -0
- zexus-1.5.0/tests/test_full_integration.py +121 -0
- zexus-1.5.0/tests/test_global.zx +11 -0
- zexus-1.5.0/tests/test_integration.py +144 -0
- zexus-1.5.0/tests/test_module_system.py +34 -0
- zexus-1.5.0/tests/test_simple_if.zx +9 -0
- zexus-1.5.0/tests/unit/simple_test.py +19 -0
- zexus-1.5.0/tests/unit/test_advanced_types.py +415 -0
- zexus-1.5.0/tests/unit/test_advanced_vs_traditional.py +37 -0
- zexus-1.5.0/tests/unit/test_audit_components.py +127 -0
- zexus-1.5.0/tests/unit/test_audit_enhanced.py +169 -0
- zexus-1.5.0/tests/unit/test_basic.py +48 -0
- zexus-1.5.0/tests/unit/test_capability_system.py +315 -0
- zexus-1.5.0/tests/unit/test_concurrent_execution.py +150 -0
- zexus-1.5.0/tests/unit/test_convenience_advanced_features.py +177 -0
- zexus-1.5.0/tests/unit/test_ecosystem.py +458 -0
- zexus-1.5.0/tests/unit/test_edge_cases.py +231 -0
- zexus-1.5.0/tests/unit/test_exact_phase10.py +61 -0
- zexus-1.5.0/tests/unit/test_hybrid.py +41 -0
- zexus-1.5.0/tests/unit/test_lexer_directly.py +15 -0
- zexus-1.5.0/tests/unit/test_map_fix.py +51 -0
- zexus-1.5.0/tests/unit/test_map_only.py +49 -0
- zexus-1.5.0/tests/unit/test_memory_leakage.py +137 -0
- zexus-1.5.0/tests/unit/test_metaprogramming.py +455 -0
- zexus-1.5.0/tests/unit/test_modifiers_evaluator.py +156 -0
- zexus-1.5.0/tests/unit/test_modifiers_evaluator_simple.py +124 -0
- zexus-1.5.0/tests/unit/test_modifiers_parsing.py +27 -0
- zexus-1.5.0/tests/unit/test_optimization.py +454 -0
- zexus-1.5.0/tests/unit/test_parameter_binding.py +131 -0
- zexus-1.5.0/tests/unit/test_parser_debug.py +36 -0
- zexus-1.5.0/tests/unit/test_performance.py +260 -0
- zexus-1.5.0/tests/unit/test_performance_features.py +163 -0
- zexus-1.5.0/tests/unit/test_plugin_system.py +264 -0
- zexus-1.5.0/tests/unit/test_restrict_trail_sandbox.py +83 -0
- zexus-1.5.0/tests/unit/test_runner.py +71 -0
- zexus-1.5.0/tests/unit/test_seal_components.py +53 -0
- zexus-1.5.0/tests/unit/test_type_system.py +352 -0
- zexus-1.5.0/tests/unit/test_virtual_filesystem.py +331 -0
- zexus-1.5.0/tests/unit/test_zexus_phases.py +118 -0
- zexus-1.5.0/tests/unit/test_zexus_program.py +230 -0
- zexus-1.5.0/tests/vm/benchmark_cache.py +245 -0
- zexus-1.5.0/tests/vm/benchmark_memory.py +385 -0
- zexus-1.5.0/tests/vm/benchmark_parallel_vm.py +309 -0
- zexus-1.5.0/tests/vm/benchmark_register_vm.py +299 -0
- zexus-1.5.0/tests/vm/test_all_optimizations_integration.py +662 -0
- zexus-1.5.0/tests/vm/test_async_optimizer.py +462 -0
- zexus-1.5.0/tests/vm/test_async_verification.py +568 -0
- zexus-1.5.0/tests/vm/test_blockchain_opcodes.py +772 -0
- zexus-1.5.0/tests/vm/test_cache.py +594 -0
- zexus-1.5.0/tests/vm/test_comprehensive_vm_verification.py +1375 -0
- zexus-1.5.0/tests/vm/test_integration_all_phases.py +321 -0
- zexus-1.5.0/tests/vm/test_integration_simple.py +252 -0
- zexus-1.5.0/tests/vm/test_jit_compilation.py +518 -0
- zexus-1.5.0/tests/vm/test_jit_vm_integration.py +797 -0
- zexus-1.5.0/tests/vm/test_memory_manager.py +539 -0
- zexus-1.5.0/tests/vm/test_memory_pool.py +519 -0
- zexus-1.5.0/tests/vm/test_optimizer.py +567 -0
- zexus-1.5.0/tests/vm/test_parallel_vm.py +503 -0
- zexus-1.5.0/tests/vm/test_peephole_optimizer.py +565 -0
- zexus-1.5.0/tests/vm/test_profiler.py +470 -0
- zexus-1.5.0/tests/vm/test_register_allocator.py +284 -0
- zexus-1.5.0/tests/vm/test_register_vm.py +457 -0
- zexus-1.5.0/tests/vm/test_ssa_converter.py +155 -0
- zexus-1.5.0/tests/vm/test_vm_async_integration.py +169 -0
- zexus-1.5.0/tests/vm/test_vm_memory_pool_integration.py +239 -0
- zexus-1.5.0/tests/vm/test_vm_peephole_integration.py +276 -0
- zexus-1.5.0/tests/vm/test_vm_ssa_integration.py +194 -0
- zexus-1.5.0/ultimate_test.zx +650 -0
- zexus-1.5.0/vscode-extension/.gitignore +7 -0
- zexus-1.5.0/vscode-extension/README.md +314 -0
- zexus-1.5.0/vscode-extension/language-configuration.json +36 -0
- zexus-1.5.0/vscode-extension/package.json +224 -0
- zexus-1.5.0/vscode-extension/snippets/zexus.json +95 -0
- zexus-1.5.0/vscode-extension/src/extension.ts +172 -0
- zexus-1.5.0/vscode-extension/syntaxes/zexus.tmLanguage.json +197 -0
- zexus-1.5.0/vscode-extension/tsconfig.json +18 -0
- zexus-1.5.0/zexus-syntax/install-syntax.sh +24 -0
- zexus-1.5.0/zexus-syntax/language-configuration.json +22 -0
- zexus-1.5.0/zexus-syntax/package.json +36 -0
- zexus-1.5.0/zexus-syntax/syntaxes/zexus.tmLanguage.json +0 -0
- zexus-1.5.0/zexus-syntax/zexus-language-0.1.0.vsix.zip +0 -0
- zexus-1.5.0/zexus.json +14 -0
- zexus-1.5.0/zpics +133 -0
- zexus-1.5.0/zpm_modules/zexus-blockchain/README.md +406 -0
- zexus-1.5.0/zpm_modules/zexus-blockchain/blockchain/bridge.zx +232 -0
- zexus-1.5.0/zpm_modules/zexus-blockchain/blockchain/consensus.zx +188 -0
- zexus-1.5.0/zpm_modules/zexus-blockchain/blockchain/contract.zx +202 -0
- zexus-1.5.0/zpm_modules/zexus-blockchain/blockchain/core.zx +99 -0
- zexus-1.5.0/zpm_modules/zexus-blockchain/blockchain/evolution.zx +163 -0
- zexus-1.5.0/zpm_modules/zexus-blockchain/blockchain/explainable.zx +94 -0
- zexus-1.5.0/zpm_modules/zexus-blockchain/blockchain/oracle.zx +227 -0
- zexus-1.5.0/zpm_modules/zexus-blockchain/blockchain/p2p.zx +335 -0
- zexus-1.5.0/zpm_modules/zexus-blockchain/blockchain/patching.zx +187 -0
- zexus-1.5.0/zpm_modules/zexus-blockchain/blockchain/seb_defi.zx +255 -0
- zexus-1.5.0/zpm_modules/zexus-blockchain/blockchain/transaction.zx +142 -0
- zexus-1.5.0/zpm_modules/zexus-blockchain/blockchain/zksnarks.zx +157 -0
- zexus-1.5.0/zpm_modules/zexus-blockchain/blockchain.zx +25 -0
- zexus-1.5.0/zpm_modules/zexus-blockchain/index.zx +115 -0
- zexus-1.5.0/zpm_modules/zexus-blockchain/zexus.json +27 -0
- zexus-1.5.0/zpm_modules/zexus-core/import.zx +3 -0
- zexus-1.5.0/zpm_modules/zexus-core/index.zx +2 -0
- zexus-1.5.0/zpm_modules/zexus-core/string.zx +42 -0
- zexus-1.5.0/zpm_modules/zexus-math/README.md +233 -0
- zexus-1.5.0/zpm_modules/zexus-math/examples/advanced_calculator.zx +62 -0
- zexus-1.5.0/zpm_modules/zexus-math/examples/expert_calculator.zx +91 -0
- zexus-1.5.0/zpm_modules/zexus-math/examples/unified_usage.zx +58 -0
- zexus-1.5.0/zpm_modules/zexus-math/index.zx +281 -0
- zexus-1.5.0/zpm_modules/zexus-math/math/advanced_linalg.zx +56 -0
- zexus-1.5.0/zpm_modules/zexus-math/math/async.zx +85 -0
- zexus-1.5.0/zpm_modules/zexus-math/math/calculus.zx +76 -0
- zexus-1.5.0/zpm_modules/zexus-math/math/complex.zx +198 -0
- zexus-1.5.0/zpm_modules/zexus-math/math/core.zx +132 -0
- zexus-1.5.0/zpm_modules/zexus-math/math/crypto.zx +97 -0
- zexus-1.5.0/zpm_modules/zexus-math/math/diffeq.zx +43 -0
- zexus-1.5.0/zpm_modules/zexus-math/math/geometric.zx +60 -0
- zexus-1.5.0/zpm_modules/zexus-math/math/interpolation.zx +45 -0
- zexus-1.5.0/zpm_modules/zexus-math/math/linalg.zx +340 -0
- zexus-1.5.0/zpm_modules/zexus-math/math/ml.zx +99 -0
- zexus-1.5.0/zpm_modules/zexus-math/math/numerical.zx +44 -0
- zexus-1.5.0/zpm_modules/zexus-math/math/optimization.zx +67 -0
- zexus-1.5.0/zpm_modules/zexus-math/math/performance.zx +51 -0
- zexus-1.5.0/zpm_modules/zexus-math/math/physics.zx +48 -0
- zexus-1.5.0/zpm_modules/zexus-math/math/renderer.zx +43 -0
- zexus-1.5.0/zpm_modules/zexus-math/math/signal.zx +62 -0
- zexus-1.5.0/zpm_modules/zexus-math/math/special.zx +64 -0
- zexus-1.5.0/zpm_modules/zexus-math/math/stats.zx +47 -0
- zexus-1.5.0/zpm_modules/zexus-math/math/symbolic.zx +71 -0
- zexus-1.5.0/zpm_modules/zexus-math/math/validation.zx +64 -0
- zexus-1.5.0/zpm_modules/zexus-math/math.zx +137 -0
- zexus-1.5.0/zpm_modules/zexus-math/zexus.json +13 -0
- zexus-1.5.0/zpm_modules/zexus-network/README.md +409 -0
- zexus-1.5.0/zpm_modules/zexus-network/examples/http_client.zx +23 -0
- zexus-1.5.0/zpm_modules/zexus-network/examples/network_demo.zx +80 -0
- zexus-1.5.0/zpm_modules/zexus-network/examples/websocket_chat.zx +34 -0
- zexus-1.5.0/zpm_modules/zexus-network/index.zx +146 -0
- zexus-1.5.0/zpm_modules/zexus-network/network/core.zx +53 -0
- zexus-1.5.0/zpm_modules/zexus-network/network/dns.zx +76 -0
- zexus-1.5.0/zpm_modules/zexus-network/network/http.zx +116 -0
- zexus-1.5.0/zpm_modules/zexus-network/network/security.zx +83 -0
- zexus-1.5.0/zpm_modules/zexus-network/network/server.zx +201 -0
- zexus-1.5.0/zpm_modules/zexus-network/network/socket.zx +190 -0
- zexus-1.5.0/zpm_modules/zexus-network/network/websocket.zx +139 -0
- zexus-1.5.0/zpm_modules/zexus-network/network.zx +4 -0
- zexus-1.5.0/zpm_modules/zexus-network/zexus.json +14 -0
- zexus-1.5.0/zx +19 -0
- zexus-1.5.0/zx-deploy +190 -0
- zexus-1.5.0/zx-dev +38 -0
- zexus-1.5.0/zx-run +83 -0
- zexus-1.5.0/zx.bin +0 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Zexus Language Definition
|
|
2
|
+
# Map to Python for syntax highlighting on GitHub until Zexus is added to Linguist
|
|
3
|
+
*.zx linguist-language=Python linguist-detectable=true
|
|
4
|
+
|
|
5
|
+
# Mark as documentation/vendored to exclude from language stats
|
|
6
|
+
*.md linguist-documentation
|
|
7
|
+
tests/** linguist-vendored=true
|
|
8
|
+
scripts/** linguist-vendored=true
|
|
9
|
+
examples/** linguist-documentation
|
|
10
|
+
|
|
11
|
+
# Ensure Zexus source files are counted
|
|
12
|
+
src/**/*.zx linguist-vendored=false linguist-detectable=true
|
zexus-1.5.0/.gitignore
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
__pycache__/
|
|
2
|
+
*.pyc
|
|
3
|
+
*.pyo
|
|
4
|
+
*.pyd
|
|
5
|
+
.Python
|
|
6
|
+
build/
|
|
7
|
+
develop-eggs/
|
|
8
|
+
dist/
|
|
9
|
+
downloads/
|
|
10
|
+
eggs/
|
|
11
|
+
.eggs/
|
|
12
|
+
lib/
|
|
13
|
+
lib64/
|
|
14
|
+
parts/
|
|
15
|
+
sdist/
|
|
16
|
+
var/
|
|
17
|
+
wheels/
|
|
18
|
+
pip-wheel-metadata/
|
|
19
|
+
share/python-wheels/
|
|
20
|
+
*.egg-info/
|
|
21
|
+
.installed.cfg
|
|
22
|
+
*.egg
|
|
23
|
+
MANIFEST
|
|
24
|
+
|
|
25
|
+
# Virtual environments
|
|
26
|
+
venv/
|
|
27
|
+
ENV/
|
|
28
|
+
env/
|
|
29
|
+
.venv
|
|
30
|
+
|
|
31
|
+
# IDE
|
|
32
|
+
.vscode/
|
|
33
|
+
.idea/
|
|
34
|
+
*.swp
|
|
35
|
+
*.swo
|
|
36
|
+
*~
|
|
37
|
+
.DS_Store
|
|
38
|
+
|
|
39
|
+
# Testing
|
|
40
|
+
.pytest_cache/
|
|
41
|
+
.coverage
|
|
42
|
+
htmlcov/
|
|
43
|
+
.tox/
|
|
44
|
+
.hypothesis/
|
|
45
|
+
|
|
46
|
+
# Zexus specific
|
|
47
|
+
.zexus_persist/
|
|
48
|
+
*.zx.compiled
|
|
49
|
+
zpm_modules/
|
|
50
|
+
*.log
|
|
51
|
+
|
|
52
|
+
# Temporary files
|
|
53
|
+
/tmp/
|
|
54
|
+
*.tmp
|
|
55
|
+
*.bak
|
|
56
|
+
|
|
57
|
+
# ===================================
|
|
58
|
+
# RUNTIME STATE (NEVER COMMIT THESE)
|
|
59
|
+
# ===================================
|
|
60
|
+
|
|
61
|
+
# Blockchain/Contract State
|
|
62
|
+
chain_data/
|
|
63
|
+
*.sqlite
|
|
64
|
+
*.db
|
|
65
|
+
|
|
66
|
+
# Audit Logs
|
|
67
|
+
audit_logs/
|
|
68
|
+
*.audit
|
|
69
|
+
|
|
70
|
+
# Generated Files
|
|
71
|
+
generated.py
|
|
72
|
+
generated.cpp
|
|
73
|
+
generated.zx
|
|
74
|
+
*.generated.*
|
|
75
|
+
|
|
76
|
+
# Test Artifacts
|
|
77
|
+
test_*.txt
|
|
78
|
+
*_output.txt
|
|
79
|
+
calculation.txt
|
|
80
|
+
shared.txt
|
|
81
|
+
|
|
82
|
+
# Temporary Scripts
|
|
83
|
+
script.py
|
|
84
|
+
analytics.py
|
|
85
|
+
demo_*.py
|
|
86
|
+
|
|
87
|
+
# Keys and Secrets
|
|
88
|
+
*.key
|
|
89
|
+
*.pem
|
|
90
|
+
SSH_PUBLIC_KEY.txt
|
|
91
|
+
|
|
92
|
+
# Cache and Runtime Data
|
|
93
|
+
.mypy_cache/
|
|
94
|
+
*.cache
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# Zexus Language Extension for VS Code
|
|
2
|
+
|
|
3
|
+
This directory contains the VS Code language extension for Zexus.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
### Option 1: Workspace Settings (Current Setup)
|
|
8
|
+
The `.vscode/settings.json` file associates `.zx` files with the Zexus language and applies syntax highlighting.
|
|
9
|
+
|
|
10
|
+
### Option 2: Install Extension Globally
|
|
11
|
+
|
|
12
|
+
1. Package the extension:
|
|
13
|
+
```bash
|
|
14
|
+
cd .vscode/extensions/zexus-language
|
|
15
|
+
npm install -g vsce
|
|
16
|
+
vsce package
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
2. Install the .vsix file:
|
|
20
|
+
```bash
|
|
21
|
+
code --install-extension zexus-language-0.1.0.vsix
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
### Option 3: Development Mode
|
|
25
|
+
|
|
26
|
+
1. Open VS Code
|
|
27
|
+
2. Press `F5` to open Extension Development Host
|
|
28
|
+
3. The extension will be active in the new window
|
|
29
|
+
|
|
30
|
+
## Syntax Highlighting
|
|
31
|
+
|
|
32
|
+
Syntax highlighting is now enabled through:
|
|
33
|
+
- Workspace settings (`.vscode/settings.json`)
|
|
34
|
+
- TextMate grammar (`syntaxes/zexus.tmLanguage.json`)
|
|
35
|
+
- Language configuration (`language-configuration.json`)
|
|
36
|
+
|
|
37
|
+
## Features
|
|
38
|
+
|
|
39
|
+
- **Syntax Highlighting**: Keywords, strings, comments, operators
|
|
40
|
+
- **Auto-closing**: Brackets, quotes, braces
|
|
41
|
+
- **Code Snippets**: contract, entity, protect, watch, inject
|
|
42
|
+
- **Comment Toggling**: Use Ctrl+/ to toggle line comments
|
|
43
|
+
- **Folding**: Support for #region/#endregion
|
|
44
|
+
|
|
45
|
+
## Troubleshooting
|
|
46
|
+
|
|
47
|
+
If syntax highlighting doesn't work:
|
|
48
|
+
|
|
49
|
+
1. Reload VS Code window (Ctrl+Shift+P > "Reload Window")
|
|
50
|
+
2. Check file extension is `.zx`
|
|
51
|
+
3. Verify language mode in bottom-right corner shows "Zexus"
|
|
52
|
+
4. Check Output panel (View > Output > select "Extension Host")
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"comments": {
|
|
3
|
+
"lineComment": "//",
|
|
4
|
+
"blockComment": ["/*", "*/"]
|
|
5
|
+
},
|
|
6
|
+
"brackets": [
|
|
7
|
+
["{", "}"],
|
|
8
|
+
["[", "]"],
|
|
9
|
+
["(", ")"]
|
|
10
|
+
],
|
|
11
|
+
"autoClosingPairs": [
|
|
12
|
+
{ "open": "{", "close": "}" },
|
|
13
|
+
{ "open": "[", "close": "]" },
|
|
14
|
+
{ "open": "(", "close": ")" },
|
|
15
|
+
{ "open": "\"", "close": "\"", "notIn": ["string"] },
|
|
16
|
+
{ "open": "'", "close": "'", "notIn": ["string", "comment"] }
|
|
17
|
+
],
|
|
18
|
+
"surroundingPairs": [
|
|
19
|
+
["{", "}"],
|
|
20
|
+
["[", "]"],
|
|
21
|
+
["(", ")"],
|
|
22
|
+
["\"", "\""],
|
|
23
|
+
["'", "'"]
|
|
24
|
+
],
|
|
25
|
+
"folding": {
|
|
26
|
+
"markers": {
|
|
27
|
+
"start": "^\\s*#region\\b",
|
|
28
|
+
"end": "^\\s*#endregion\\b"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"wordPattern": "(-?\\d*\\.\\d\\w*)|([^\\`\\~\\!\\@\\#\\%\\^\\&\\*\\(\\)\\-\\=\\+\\[\\{\\]\\}\\\\\\|\\;\\:\\'\\\"\\,\\.\\<\\>\\/\\?\\s]+)",
|
|
32
|
+
"indentationRules": {
|
|
33
|
+
"increaseIndentPattern": "^((?!\\/\\/).)*(\\{[^}\"'`]*|\\([^)\"'`]*|\\[[^\\]\"'`]*)$",
|
|
34
|
+
"decreaseIndentPattern": "^((?!.*?\\/\\*).*\\*/)?\\s*[\\)\\}\\]].*$"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "zexus-language",
|
|
3
|
+
"displayName": "Zexus Language Support",
|
|
4
|
+
"description": "Syntax highlighting and language support for Zexus programming language",
|
|
5
|
+
"version": "1.5.0",
|
|
6
|
+
"publisher": "Zaidux",
|
|
7
|
+
"icon": "images/icon.png",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "https://github.com/Zaidux/zexus-interpreter"
|
|
11
|
+
},
|
|
12
|
+
"engines": {
|
|
13
|
+
"vscode": "^1.60.0"
|
|
14
|
+
},
|
|
15
|
+
"categories": [
|
|
16
|
+
"Programming Languages"
|
|
17
|
+
],
|
|
18
|
+
"keywords": [
|
|
19
|
+
"zexus",
|
|
20
|
+
"blockchain",
|
|
21
|
+
"smart-contracts",
|
|
22
|
+
"security"
|
|
23
|
+
],
|
|
24
|
+
"contributes": {
|
|
25
|
+
"languages": [
|
|
26
|
+
{
|
|
27
|
+
"id": "zexus",
|
|
28
|
+
"aliases": [
|
|
29
|
+
"Zexus",
|
|
30
|
+
"zexus"
|
|
31
|
+
],
|
|
32
|
+
"extensions": [
|
|
33
|
+
".zx"
|
|
34
|
+
],
|
|
35
|
+
"configuration": "./language-configuration.json",
|
|
36
|
+
"icon": {
|
|
37
|
+
"light": "./images/zexus-icon.png",
|
|
38
|
+
"dark": "./images/zexus-icon.png"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"grammars": [
|
|
43
|
+
{
|
|
44
|
+
"language": "zexus",
|
|
45
|
+
"scopeName": "source.zexus",
|
|
46
|
+
"path": "./syntaxes/zexus.tmLanguage.json"
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
"snippets": [
|
|
50
|
+
{
|
|
51
|
+
"language": "zexus",
|
|
52
|
+
"path": "./snippets/zexus.json"
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
"commands": [
|
|
56
|
+
{
|
|
57
|
+
"command": "zexus.run",
|
|
58
|
+
"title": "Run Zexus File",
|
|
59
|
+
"category": "Zexus"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"command": "zexus.check",
|
|
63
|
+
"title": "Check Syntax",
|
|
64
|
+
"category": "Zexus"
|
|
65
|
+
}
|
|
66
|
+
],
|
|
67
|
+
"keybindings": [
|
|
68
|
+
{
|
|
69
|
+
"command": "zexus.run",
|
|
70
|
+
"key": "ctrl+shift+r",
|
|
71
|
+
"mac": "cmd+shift+r",
|
|
72
|
+
"when": "editorLangId == zexus"
|
|
73
|
+
}
|
|
74
|
+
],
|
|
75
|
+
"configuration": {
|
|
76
|
+
"title": "Zexus",
|
|
77
|
+
"properties": {
|
|
78
|
+
"zexus.syntaxStyle": {
|
|
79
|
+
"type": "string",
|
|
80
|
+
"enum": [
|
|
81
|
+
"universal",
|
|
82
|
+
"tolerable",
|
|
83
|
+
"auto"
|
|
84
|
+
],
|
|
85
|
+
"default": "auto",
|
|
86
|
+
"description": "Syntax style to use (universal=strict, tolerable=flexible, auto=detect)"
|
|
87
|
+
},
|
|
88
|
+
"zexus.executionMode": {
|
|
89
|
+
"type": "string",
|
|
90
|
+
"enum": [
|
|
91
|
+
"interpreter",
|
|
92
|
+
"compiler",
|
|
93
|
+
"auto"
|
|
94
|
+
],
|
|
95
|
+
"default": "auto",
|
|
96
|
+
"description": "Execution engine to use"
|
|
97
|
+
},
|
|
98
|
+
"zexus.advancedParsing": {
|
|
99
|
+
"type": "boolean",
|
|
100
|
+
"default": true,
|
|
101
|
+
"description": "Enable advanced multi-strategy parsing"
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
"scripts": {
|
|
107
|
+
"vscode:prepublish": "echo 'Ready to publish'",
|
|
108
|
+
"package": "vsce package",
|
|
109
|
+
"publish": "vsce publish"
|
|
110
|
+
},
|
|
111
|
+
"devDependencies": {
|
|
112
|
+
"@types/vscode": "^1.60.0"
|
|
113
|
+
}
|
|
114
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Contract": {
|
|
3
|
+
"prefix": "contract",
|
|
4
|
+
"body": [
|
|
5
|
+
"contract ${1:ContractName} {",
|
|
6
|
+
"\tpersistent storage ${2:data}: ${3:Map<Address, integer>}",
|
|
7
|
+
"\t",
|
|
8
|
+
"\taction ${4:method_name}(${5:params}) {",
|
|
9
|
+
"\t\t${6:// Implementation}",
|
|
10
|
+
"\t}",
|
|
11
|
+
"}"
|
|
12
|
+
],
|
|
13
|
+
"description": "Create a Zexus contract"
|
|
14
|
+
},
|
|
15
|
+
"Entity": {
|
|
16
|
+
"prefix": "entity",
|
|
17
|
+
"body": [
|
|
18
|
+
"entity ${1:EntityName} {",
|
|
19
|
+
"\t${2:field}: ${3:type},",
|
|
20
|
+
"\t${4:field2}: ${5:type2}",
|
|
21
|
+
"}"
|
|
22
|
+
],
|
|
23
|
+
"description": "Create a Zexus entity"
|
|
24
|
+
},
|
|
25
|
+
"Action": {
|
|
26
|
+
"prefix": "action",
|
|
27
|
+
"body": [
|
|
28
|
+
"action ${1:function_name}(${2:params}) -> ${3:return_type} {",
|
|
29
|
+
"\t${4:// Implementation}",
|
|
30
|
+
"}"
|
|
31
|
+
],
|
|
32
|
+
"description": "Create a Zexus action (function)"
|
|
33
|
+
},
|
|
34
|
+
"Protect": {
|
|
35
|
+
"prefix": "protect",
|
|
36
|
+
"body": [
|
|
37
|
+
"protect(${1:target}, {",
|
|
38
|
+
"\trate_limit: ${2:100},",
|
|
39
|
+
"\tauth_required: ${3:true},",
|
|
40
|
+
"\trequire_https: ${4:true}",
|
|
41
|
+
"}, \"${5:strict}\")"
|
|
42
|
+
],
|
|
43
|
+
"description": "Add protection policy"
|
|
44
|
+
},
|
|
45
|
+
"Verify": {
|
|
46
|
+
"prefix": "verify",
|
|
47
|
+
"body": [
|
|
48
|
+
"verify(${1:condition})"
|
|
49
|
+
],
|
|
50
|
+
"description": "Add runtime verification"
|
|
51
|
+
},
|
|
52
|
+
"Watch": {
|
|
53
|
+
"prefix": "watch",
|
|
54
|
+
"body": [
|
|
55
|
+
"watch ${1:variable} {",
|
|
56
|
+
"\t${2:// Callback when variable changes}",
|
|
57
|
+
"}"
|
|
58
|
+
],
|
|
59
|
+
"description": "Watch variable for changes"
|
|
60
|
+
},
|
|
61
|
+
"For Each": {
|
|
62
|
+
"prefix": "foreach",
|
|
63
|
+
"body": [
|
|
64
|
+
"for each ${1:item} in ${2:collection} {",
|
|
65
|
+
"\t${3:// Loop body}",
|
|
66
|
+
"}"
|
|
67
|
+
],
|
|
68
|
+
"description": "For each loop"
|
|
69
|
+
},
|
|
70
|
+
"Match": {
|
|
71
|
+
"prefix": "match",
|
|
72
|
+
"body": [
|
|
73
|
+
"match ${1:value} {",
|
|
74
|
+
"\tcase ${2:pattern}: ${3:result}",
|
|
75
|
+
"\tdefault: ${4:default_result}",
|
|
76
|
+
"}"
|
|
77
|
+
],
|
|
78
|
+
"description": "Pattern matching"
|
|
79
|
+
},
|
|
80
|
+
"Inject": {
|
|
81
|
+
"prefix": "inject",
|
|
82
|
+
"body": [
|
|
83
|
+
"inject ${1:dependency}"
|
|
84
|
+
],
|
|
85
|
+
"description": "Inject dependency"
|
|
86
|
+
},
|
|
87
|
+
"Persist": {
|
|
88
|
+
"prefix": "persist",
|
|
89
|
+
"body": [
|
|
90
|
+
"persist_set(\"${1:key}\", ${2:value})",
|
|
91
|
+
"let ${3:result} = persist_get(\"${1:key}\")"
|
|
92
|
+
],
|
|
93
|
+
"description": "Persistent storage"
|
|
94
|
+
}
|
|
95
|
+
}
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
|
|
3
|
+
"name": "Zexus",
|
|
4
|
+
"scopeName": "source.zexus",
|
|
5
|
+
"fileTypes": ["zx"],
|
|
6
|
+
"patterns": [
|
|
7
|
+
{
|
|
8
|
+
"include": "#comments"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"include": "#strings"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"include": "#numbers"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"include": "#keywords"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"include": "#operators"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"include": "#functions"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"include": "#variables"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"include": "#constants"
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
"repository": {
|
|
33
|
+
"comments": {
|
|
34
|
+
"patterns": [
|
|
35
|
+
{
|
|
36
|
+
"name": "comment.line.double-slash.zexus",
|
|
37
|
+
"match": "//.*$"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"name": "comment.line.number-sign.zexus",
|
|
41
|
+
"match": "#.*$"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"name": "comment.block.zexus",
|
|
45
|
+
"begin": "/\\*",
|
|
46
|
+
"end": "\\*/"
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
"strings": {
|
|
51
|
+
"patterns": [
|
|
52
|
+
{
|
|
53
|
+
"name": "string.quoted.double.zexus",
|
|
54
|
+
"begin": "\"",
|
|
55
|
+
"end": "\"",
|
|
56
|
+
"patterns": [
|
|
57
|
+
{
|
|
58
|
+
"name": "constant.character.escape.zexus",
|
|
59
|
+
"match": "\\\\(n|t|r|\\\\|\"|'|\\{|\\})"
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"name": "string.quoted.single.zexus",
|
|
65
|
+
"begin": "'",
|
|
66
|
+
"end": "'",
|
|
67
|
+
"patterns": [
|
|
68
|
+
{
|
|
69
|
+
"name": "constant.character.escape.zexus",
|
|
70
|
+
"match": "\\\\(n|t|r|\\\\|\"|')"
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
}
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
"numbers": {
|
|
77
|
+
"patterns": [
|
|
78
|
+
{
|
|
79
|
+
"name": "constant.numeric.float.zexus",
|
|
80
|
+
"match": "\\b\\d+\\.\\d+([eE][+-]?\\d+)?\\b"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"name": "constant.numeric.integer.zexus",
|
|
84
|
+
"match": "\\b\\d+\\b"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"name": "constant.numeric.hex.zexus",
|
|
88
|
+
"match": "\\b0[xX][0-9a-fA-F]+\\b"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"name": "constant.numeric.binary.zexus",
|
|
92
|
+
"match": "\\b0[bB][01]+\\b"
|
|
93
|
+
}
|
|
94
|
+
]
|
|
95
|
+
},
|
|
96
|
+
"keywords": {
|
|
97
|
+
"patterns": [
|
|
98
|
+
{
|
|
99
|
+
"name": "keyword.control.zexus",
|
|
100
|
+
"match": "\\b(if|else|for|while|each|in|break|continue|return|match|case|default)\\b"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"name": "keyword.declaration.zexus",
|
|
104
|
+
"match": "\\b(let|const|action|entity|contract|interface|trait|module|use|import|export|external)\\b"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"name": "keyword.modifier.zexus",
|
|
108
|
+
"match": "\\b(public|private|static|async|immutable)\\b"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"name": "keyword.operator.zexus",
|
|
112
|
+
"match": "\\b(and|or|not|is|as|typeof|instanceof)\\b"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"name": "keyword.blockchain.zexus",
|
|
116
|
+
"match": "\\b(transaction|emit|revert|require|assert|address|balance|transfer|call)\\b"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"name": "keyword.security.zexus",
|
|
120
|
+
"match": "\\b(protect|verify|restrict|sanitize|validate|audit|seal|watch|cache|inject)\\b"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"name": "keyword.other.zexus",
|
|
124
|
+
"match": "\\b(try|catch|finally|throw|yield|await|from|to|of)\\b"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"name": "constant.language.zexus",
|
|
128
|
+
"match": "\\b(true|false|null|undefined|this|super)\\b"
|
|
129
|
+
}
|
|
130
|
+
]
|
|
131
|
+
},
|
|
132
|
+
"operators": {
|
|
133
|
+
"patterns": [
|
|
134
|
+
{
|
|
135
|
+
"name": "keyword.operator.arithmetic.zexus",
|
|
136
|
+
"match": "\\+|\\-|\\*|\\/|%|\\*\\*"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"name": "keyword.operator.comparison.zexus",
|
|
140
|
+
"match": "==|!=|<|>|<=|>=|==="
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"name": "keyword.operator.logical.zexus",
|
|
144
|
+
"match": "&&|\\|\\||!"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"name": "keyword.operator.assignment.zexus",
|
|
148
|
+
"match": "=|\\+=|\\-=|\\*=|\\/=|%="
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"name": "keyword.operator.bitwise.zexus",
|
|
152
|
+
"match": "&|\\||\\^|~|<<|>>|>>>"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"name": "keyword.operator.arrow.zexus",
|
|
156
|
+
"match": "->|=>"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"name": "keyword.operator.spread.zexus",
|
|
160
|
+
"match": "\\.\\.\\."
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"name": "keyword.operator.pipeline.zexus",
|
|
164
|
+
"match": "\\|>"
|
|
165
|
+
}
|
|
166
|
+
]
|
|
167
|
+
},
|
|
168
|
+
"functions": {
|
|
169
|
+
"patterns": [
|
|
170
|
+
{
|
|
171
|
+
"name": "entity.name.function.zexus",
|
|
172
|
+
"match": "\\b([a-zA-Z_][a-zA-Z0-9_]*)\\s*(?=\\()"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"name": "support.function.builtin.zexus",
|
|
176
|
+
"match": "\\b(print|println|input|len|type|string|int|float|bool|list|map|set|range|filter|reduce|sort|reverse|join|split|replace|uppercase|lowercase|trim|abs|ceil|floor|round|min|max|sum|sqrt|pow|log|exp|sin|cos|tan|random|time|sleep|open|read|write|close|exists|delete|mkdir|rmdir|persist_set|persist_get|persist_clear|track_memory|create_policy|enforce_policy|verify_condition|register_dependency|inject_dependency|mock_dependency|unmock_all|get_mock_stats|test_mode)\\b"
|
|
177
|
+
}
|
|
178
|
+
]
|
|
179
|
+
},
|
|
180
|
+
"variables": {
|
|
181
|
+
"patterns": [
|
|
182
|
+
{
|
|
183
|
+
"name": "variable.other.zexus",
|
|
184
|
+
"match": "\\b[a-z_][a-zA-Z0-9_]*\\b"
|
|
185
|
+
}
|
|
186
|
+
]
|
|
187
|
+
},
|
|
188
|
+
"constants": {
|
|
189
|
+
"patterns": [
|
|
190
|
+
{
|
|
191
|
+
"name": "constant.other.zexus",
|
|
192
|
+
"match": "\\b[A-Z][A-Z0-9_]*\\b"
|
|
193
|
+
}
|
|
194
|
+
]
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"contributes": {
|
|
3
|
+
"languages": [
|
|
4
|
+
{
|
|
5
|
+
"id": "zexus",
|
|
6
|
+
"aliases": ["Zexus", "zexus"],
|
|
7
|
+
"extensions": [".zx"],
|
|
8
|
+
"configuration": "./.vscode/extensions/zexus-language/language-configuration.json"
|
|
9
|
+
}
|
|
10
|
+
],
|
|
11
|
+
"grammars": [
|
|
12
|
+
{
|
|
13
|
+
"language": "zexus",
|
|
14
|
+
"scopeName": "source.zexus",
|
|
15
|
+
"path": "./syntaxes/zexus.tmLanguage.json"
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"files.associations": {
|
|
3
|
+
"*.zx": "zexus"
|
|
4
|
+
},
|
|
5
|
+
"editor.tokenColorCustomizations": {
|
|
6
|
+
"textMateRules": [
|
|
7
|
+
{
|
|
8
|
+
"scope": "keyword.control.zexus",
|
|
9
|
+
"settings": {
|
|
10
|
+
"foreground": "#C586C0"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"scope": "keyword.declaration.zexus",
|
|
15
|
+
"settings": {
|
|
16
|
+
"foreground": "#569CD6"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"scope": "keyword.security.zexus",
|
|
21
|
+
"settings": {
|
|
22
|
+
"foreground": "#4EC9B0"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"scope": "string.quoted.double.zexus",
|
|
27
|
+
"settings": {
|
|
28
|
+
"foreground": "#CE9178"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"scope": "comment.line.number-sign.zexus",
|
|
33
|
+
"settings": {
|
|
34
|
+
"foreground": "#6A9955"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
"[zexus]": {
|
|
40
|
+
"editor.wordWrap": "on",
|
|
41
|
+
"editor.quickSuggestions": {
|
|
42
|
+
"other": true,
|
|
43
|
+
"comments": false,
|
|
44
|
+
"strings": false
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"python.analysis.typeCheckingMode": "strict"
|
|
48
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"source_code": "# Golden Test: Function Calls After Assignments\n# Tests that function calls are not consumed by previous LET statements\n# Critical regression: LET must stop collecting before function call statements\n\nlet value = 42\n\naction process(x: integer) -> integer {\n return x * 2\n}\n\nlet result = process(value)\nprint(\"Result: \" + string(result))\n",
|
|
3
|
+
"source_hash": "a834483ecd7941770f74ea2503dc13c6",
|
|
4
|
+
"stdout_output": "",
|
|
5
|
+
"stderr_output": "Error: 'Lexer' object has no attribute 'tokenize'\n",
|
|
6
|
+
"exit_code": 1,
|
|
7
|
+
"execution_metadata": {
|
|
8
|
+
"test_name": "function_calls_after_let"
|
|
9
|
+
},
|
|
10
|
+
"variables_final": {},
|
|
11
|
+
"execution_time_ms": 0.0
|
|
12
|
+
}
|