diff --git a/unoptimized_lr/simple_lr_automaton.py b/unoptimized_lr/simple_lr_automaton.py index 55f4e8ccdd4005c5d77b25105b23bfc097fd6667..0dd3286d1dd74b22e63019a682fcf46546f49363 100644 --- a/unoptimized_lr/simple_lr_automaton.py +++ b/unoptimized_lr/simple_lr_automaton.py @@ -36,12 +36,12 @@ from functools import reduce # where log_2 determines the numbers of bits necessary to represent all possible # values for each type: # -# log_2(NTerminal) = WTerminal -# log_2(NNonterminal) = WNonterminal -# log_2(NStates)= WStates -# log_2(NRules)= WRules -# log_2(NLongestRule)= WLongestRule -# and WItem = max(WTerminal, WNonterminal); since there are locations where +# log_2(NTerminal) = W_Terminal +# log_2(NNonterminal) = W_Nonterminal +# log_2(NStates)= W_States +# log_2(NRules)= W_Rules +# log_2(NLongestRule)= W_LongestRule +# and W_Item = max(W_Terminal, W_Nonterminal); since there are locations where # nonterminals and terminals alike must be processed/stored by the same mechanisms # # @@ -142,7 +142,7 @@ from functools import reduce # \ / # <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< # (index out, data out, stack pointer) -# +# WStates # # # Parse index stack. Note that this is only needed if we're outputting a @@ -158,7 +158,7 @@ from functools import reduce # \ / # <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< # (index out, data out, stack pointer) -# +# WLongestParse # # Serialization memory (or stream): #