Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Idiots don't know how to parse...

Name: Cudder !cXCudderUE 2015-11-13 8:45

http://stackoverflow.com/questions/28256/equation-expression-parser-with-precedence

WTF? The accepted answer is from someone who thinks recursive descent is "hard" and a ridiculously bloated parser-generator is "easy"? Pure bisonshit! Almost every real (and toy) compiler uses some variant of recursive-descent. Even GCC, which would probably be the biggest user of Bison, moved to recursive-descent years ago.

These aren't even programmers, these are Java-sipping codemonkeys who know next to nothing about how anything really works and can only parrow "reinventing the wheel" and other "enterprise best practices" bullshit.

Name: Anonymous 2015-12-02 20:48

>>35
Counterpoint: parsers have to be custom to be able to encode human-useful information on error.
Generated parse error on function(arg1 arg2): ``error at line 1 column 23, `arg2': expected `,' or `)'''
Custom parse error: ``I couldn't understand line 1: Function call arguments need to be separated by commas; try `function(arg1, arg2)' instead (specifically fell over at column 23)''

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List