From d518610fee4f25710811cd77d386c79a8b3a94c6 Mon Sep 17 00:00:00 2001 From: pseco Date: Thu, 12 Mar 2026 15:56:22 +0100 Subject: [PATCH] Add AVAP execution and testing scripts - Implemented `parser v1.py` to run AVAP files in a Docker container using subprocess. - Created `parser v2.py` to send AVAP code to a local server and handle JSON responses. - Introduced `mbap_tester.py` as a heuristic mock executor for testing AVAP code against predefined test cases. - Added functions for transforming AVAP code to Python and executing it in a controlled environment. - Included error handling and summary reporting for test results in `mbap_tester.py`. --- docs/samples/hello_world.avap | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/samples/hello_world.avap b/docs/samples/hello_world.avap index 2322564..6d5b8cc 100644 --- a/docs/samples/hello_world.avap +++ b/docs/samples/hello_world.avap @@ -1,3 +1,4 @@ -addParam("Alberto",name) -result = "Hello," + name +registerEndpoint("/hello_world","GET",[],"HELLO_WORLD",main,result) +addVar(name,"Alberto") +result = "Hello," + name addResult(result) \ No newline at end of file