Skip navigation


warning: Creating default object from empty value in /var/www/vhosts/ on line 33.

As a personal project, I started to write an automated makefile generator that would parse C files and identify their full dependency list based on the #include macro as well as identify if the program contained int main().

I was able to get the functionality I wanted by implementing an FSM with the rules I wanted, but I'm pretty sure it's not going to be able to handle edge cases.

I know that the best way to go about this would probably be to create some sort of parser that utilizes grammar rules, but as a freshman in Comp Sci, I have no idea where to even begin finding a resource. It seems every source I can find on the topic is written with more discrete math than I understand.

Is there a simple, down-to-earth way to learn about what I'm trying to do? And if so, where? Or am I going to have to take a couple of discrete math courses first.

submitted by akaritakai
[link] [24 comments]

Your rating: None