Fix wrong pointer depth and gotos offset
authorLukas Jiriste <ljiriste@student.42prague.com>
Wed, 10 Jul 2024 18:41:35 +0000 (20:41 +0200)
committerLukas Jiriste <ljiriste@student.42prague.com>
Sun, 21 Jul 2024 18:21:22 +0000 (20:21 +0200)
commitd34df1ec329ea7b826a8a17639560631675b312a
tree1f25fd4fa1fcd2cc9a18b94b27e4d244b14eb6e3
parent043c05bc2f9a922559a4b33ee6ec7d6069ae0b11
Fix wrong pointer depth and gotos offset

The translation function accessed t_generator_state * instead of the
correct t_generator_state**.
The gotos vector in the table rows is indexed from 0 but uses the tokens
after the eof_token hence the index needs to be offset.
ft_parse/ft_parsing_table_generate.c