mahahahad / Minishell

1 stars 1 forks source link

feat: now displays the parsed table #13

Closed Ali-Danish-72 closed 3 months ago

Ali-Danish-72 commented 4 months ago

The main is now set to print after every line the tokens it has created and the type of token it is.

I added the -g3 and -fsanitize=address flags to the Makefile to help with tackling segfaults.

Ali-Danish-72 commented 4 months ago

There are more tokens that need to be added, namely the bonus ones [ ( ], [ ) ], [ && ], [ || ] and [ * ] as well as the [ $ ] and [ ~ ]. I didn't add them myself in the print_token() function as you have been the one who has done the code for tokens so far, so it is best left upto on how to add it.

Ali-Danish-72 commented 3 months ago

@mahahahad It's done now, you can merge whenever you're ready.

Ali-Danish-72 commented 3 months ago

Luckily I just realized that the PR was opened for the main branch and not the parsing branch.