Add save_assignments function
authorLukas Jiriste <ljiriste@student.42prague.com>
Sun, 21 Jul 2024 12:24:50 +0000 (14:24 +0200)
committerLukas Jiriste <ljiriste@student.42prague.com>
Sun, 21 Jul 2024 15:43:40 +0000 (17:43 +0200)
commitbc9bc2d04639924d3660ad753ee53effb309b772
treeb2df701192a55c6317671a13ff171c108de9c895
parentdeb20d64c581a5251ba2ee410c229415d8c2de70
Add save_assignments function

This function traverses the subtree of the command and extracts all
ASSIGNMENT_WORD tokens to the assignments t_vec so that it is in the
same form as the t_vecs in t_vars.
src/execution.c