Not a L-attributed grammar if some attribute depends to the right (only to the left)
- LHS 동일할 때는 terminal, nonterminal RHS LHS 나오는 순서 같아야 하고
- LHS 다를 때는 왼쪽의 거나 LHS에 의존해야 한다
L-attributed grammar - Wikipedia
L-attributed grammars are a special type of attribute grammars. They allow the attributes to be evaluated in one depth-first left-to-right traversal of the abstract syntax tree. As a result, attribute evaluation in L-attributed grammars can be incorporated conveniently in top-down parsing.
https://en.wikipedia.org/wiki/L-attributed_grammar
