2 2 votes Statement : L attributed grammer can be evaluated using bottom up parsing. Doubt : L attributed has both types, synthesized as well as left inherited grrammer. So in L attributed grammer how will be left inherited attributes be evaluated (which need preorder traversal)? Something like this : Compiler Design compiler-design syntax-directed-translation + – Mojo-Jojo 1.8k views answer comment Share Follow Print 0 reply Please log in or register to add a comment.
3 3 votes Your Statement is wrong L attributed Grammar can not be evaluated using bottom up parsing. 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. shekhar chauhan answered Jun 3, 2016 shekhar chauhan comment Share Follow 0 reply Please log in or register to add a comment.