¡@

Home 

python Programming Glossary: or_conj

Python/YACC: Resolving a shift/reduce conflict

http://stackoverflow.com/questions/2939888/python-yacc-resolving-a-shift-reduce-conflict

course_data course . course_list_tail 3 or_phrase course . OR_CONJ COURSE_NUMBER 7 course_list_tail . COURSE_NUMBER 8 course_list_tail.. . COURSE_NUMBER course_list_tail shift reduce conflict for OR_CONJ resolved as shift end reduce using rule 5 course_data course.. as shift end reduce using rule 5 course_data course . OR_CONJ shift and go to state 7 shift and go to state 8 OR_CONJ reduce..

Python: How best to parse a simple grammar?

http://stackoverflow.com/questions/2945357/python-how-best-to-parse-a-simple-grammar

self.result # ... self.statement course_data Optional OR_CONJ course_data .setParseAction self.disjunctionCourses def disjunctionCourses..