I have a doubt about lr(0) parsers. For example I have the follow grammar:
S -> S N
|
N -> terminalsymbol
If I try to construct the first state of lr0 automaton, I get the following first state:
S ' -> . S $
S -> . S N
S -> .
So here appears to me a stupid doubt. Since I have "S -> ." in the first state, is this a situation of a shift/reduce in lr0 parser? Cause the parser can go to shift action by nonterminal S, or reduce action by empty transition (I think).
I already searched across the web looking for a example with empty transitions, but I didn't found one.