News for hackers. Stuff that matters.
Re:The Day I Fell in Love with Fuzzing by adrianN on Monday January 28, 2019 @01:55PM (#19020047)
IMHO you're often best off with writing a simple recursive descent parser by hand. For lexing you can often get away with splitting the input string at word boundaries.

For slightly more advanced needs, parser combinator libraries make parsing and lexing quite straightforward. I honestly wouldn't use a parser generator.

Re:The Day I Fell in Love with Fuzzing by angara on Monday January 28, 2019 @06:06PM (#19021974)
Regular expressions are also useful for lexing. I like to work from this example code from the Python standard library docs: https://docs.python.org/3.6/library/re.html#writing-a-tokeni...
Re:The Day I Fell in Love with Fuzzing by fanf2 on Wednesday January 30, 2019 @03:48PM (#19039288)
Remember, `lex` is just a pile of regular expressions, so it is great for simple parsing in C. There are good reasons it was known as the Swiss Army knife of Unix before scripting took over :-)
Re:The Day I Fell in Love with Fuzzing by swiley on Monday January 28, 2019 @06:52PM (#19022327)
IMHO recursive ascent is both easier to write and faster.