semantic interpreter v1, semantic interpreter tests, fixes

This commit is contained in:
ProgramSnail 2025-12-14 15:59:18 +03:00
parent 1c74f0c3ef
commit a2d4bb93e6
4 changed files with 350 additions and 4 deletions

View file

@ -17,7 +17,6 @@ correct_body_on_arg_borrow(ARGT, B, [Call(F, FARGT, ARGS)|XT], I) :-
not_in_list(I, ARGS), correct_body_on_arg_borrow(ARGT, B, XT, I).
/* func call only correct in all args are not I */
/* TODO: correct_args_map(ARGT, B, FARGT, ARGS) */
correct_args_map(ARGT, B, [], []).
correct_args_map(ARGT, B, BT, [Ref|TS], [I|IS]) :-
arg_tags_neq(ARGT, I, ConstRef),