Flex And One Random Thought
After working on parsing SAS code over the last few weeks, I thought I’ll revisit on the tools I used. I used pyparsing. Theres nothing wrong with using pyparsing (in fact it was immensely helpful to get things done quickly) but I thought it would be a good opportunity to examine flex and bison. I’m more interested in looking at and improving on my C code.
The structure of the lexer and grammar file isn’t completely new to me, since I had been exposed to ply through Udacity course, but it still took more time that I would have liked to get things “up and running”.
[Read More]