From e847e4c53cf21fcb96f7ed7765e305a7ec8e6c19 Mon Sep 17 00:00:00 2001 From: _ov4 Date: Sat, 17 Oct 2026 08:31:27 +0000 Subject: feat(classes): parse DELETE destructor methods and DELETE statement Co-Authored-By: Claude Opus 5.5 --- tests/iii/class-destructor-function-error/case.json | 8 ++++++++ tests/iii/class-destructor-function-error/program.cps | 5 +++++ 2 files changed, 13 insertions(+) create mode 100644 tests/iii/class-destructor-function-error/case.json create mode 100644 tests/iii/class-destructor-function-error/program.cps (limited to 'tests/iii/class-destructor-function-error') diff --git a/tests/iii/class-destructor-function-error/case.json b/tests/iii/class-destructor-function-error/case.json new file mode 100644 index 0000000..5482f9d --- /dev/null +++ b/tests/iii/class-destructor-function-error/case.json @@ -0,0 +1,8 @@ +{ + "errors": [ + { + "reason": "destructor DELETE must be a PROCEDURE", + "line": 2 + } + ] +} diff --git a/tests/iii/class-destructor-function-error/program.cps b/tests/iii/class-destructor-function-error/program.cps new file mode 100644 index 0000000..89a2b5a --- /dev/null +++ b/tests/iii/class-destructor-function-error/program.cps @@ -0,0 +1,5 @@ +CLASS Box +FUNCTION DELETE() RETURNS INTEGER +RETURN 0 +ENDFUNCTION +ENDCLASS -- cgit v1.3.1-4-g156e