Sup!
I'm trying to understand how to build a parser, because I wanna write a kind of makefile generator in C. Where can I find good tutorials about building a parser?
> I googled it
>>60965619
Read the manuals for lex and yacc.
(Or flex and bison.)
Or just get your head down and write some code.
I used BNFC for parser design for a project @ uni http://bnfc.digitalgrammars.com/
This is a bit old, but free. I guess it's worth trying if you want to really understand how parsing works: https://dickgrune.com/Books/PTAPG_1st_Edition/
>>60965619
http://www.antlr.org/
ANTLR (ANother Tool for Language Recognition) is a powerful parser generator for reading, processing, executing, or translating structured text or binary files. It's widely used to build languages, tools, and frameworks. From a grammar, ANTLR generates a parser that can build and walk parse trees.
Or you can use the Flex + Bison.
>>60966426
Also, you are in for a world of pain OP.
Languages are a pita.
Read about extended BNF first.
>>60965671
fpbp