[update] minor adjustments

Signed-off-by: Shahbaz Youssefi <ShabbyX@gmail.com>
[update] rearrange LRK load/rebuild + update file format

This makes the load/rebuild decision function of LRK similar to LLK (and
later they can be merged into one).  It also factors out "state"
printing, but that's just for debugging.

This commit however, introduces an update to the LRK grammar cache file
format that makes it incompatible with the previous ones.  The update is
to make it similar to LLK, where $ is not indicated by missing terminals
in end of line, but by setting a lower number of tokens that should
follow.  To distinguish between expecting one nonterminal or K
terminals, -1 is then used instead of the number of tokens that follow.

Signed-off-by: Shahbaz Youssefi <ShabbyX@gmail.com>