Get precedences working in the YACC/Bison way where both terminals and productions...
authorNick Downing <downing.nick@gmail.com>
Wed, 18 Jul 2018 23:43:31 +0000 (09:43 +1000)
committerNick Downing <downing.nick@gmail.com>
Wed, 18 Jul 2018 23:43:31 +0000 (09:43 +1000)
commit698c1184b4f32835d33b5be9272a57928932c0a2
treec19f90b3e5eab7e106aa8c881f2ce57674588578
parenta95c3d0664e409697c87d0e216495ef747a66f47
Get precedences working in the YACC/Bison way where both terminals and productions have precedences, done this by removing the priority field in lr1.productions and instead adding a new field lr1.precedences containing (terminal_breaks, terminal_prec, nonterminal_breaks, nonterminal_prec) similar to action/goto tables
ast.py
bison_lr1dfa.py
lr1.py