Fix the code to actually produce a tree
authorLukas Jiriste <ljiriste@student.42prague.com>
Fri, 21 Jun 2024 07:43:38 +0000 (09:43 +0200)
committerLukas Jiriste <ljiriste@student.42prague.com>
Fri, 21 Jun 2024 07:43:38 +0000 (09:43 +0200)
commitfaa06ffa7159c575c44abbf5caeddae16e3bc9a0
tree3ed1bc2849c1daa8c4190ca44331f352fc6dfa4d
parent4f93f1751e8d36cafc02bf15267d804e5ca676b5
Fix the code to actually produce a tree

As the previous commit was only checked to compile there were some
minor defects. Notably the parser stack was not initialized properly.
It has to return state_num 0 when empty, which was solved by inserting
a dummy state 0 wih no node attached.
ft_parse/ft_parse.c