Add first kernel construction and its support
authorLukas Jiriste <ljiriste@student.42prague.com>
Thu, 4 Jul 2024 10:32:26 +0000 (12:32 +0200)
committerLukas Jiriste <ljiriste@student.42prague.com>
Sun, 21 Jul 2024 18:21:20 +0000 (20:21 +0200)
commit7f13e68a114a2777ae66fdde4b3efe997c612263
tree20ef299f1272eaaff81fad7fd22d3ea0e761342f
parent3950f918cebbeadedda3f71e6fd2a4b9e6fcd4d1
Add first kernel construction and its support

The supporting changes consist of changing the ft_token_dup function to
take pointer to token as input. Taking global static token caused some
error but was solved by passing pointer.
Function to free structs now handle NULL gracefully. This was
encountered because not all used structures are initialized yet.

The zeroth rule is added to generate a table, that returns the original
first token as a root of the table. The type of NULL cannot be achieved
any other way inside the table.rules.
ft_parse/actions.c
ft_parse/ft_parse_inner.h
ft_parse/ft_parsing_table_free.c
ft_parse/ft_parsing_table_generate.c
ft_parse/helpers.c