3 votes 3 votes If operator precedence parser can parse ambiguous grammar so why don't we use this parser all the time, Why should we care about all the parsers just use this. Compiler Design compiler-design parsing + – The Technical Guy asked Jan 4, 2018 The Technical Guy 1.2k views answer comment Share Follow See all 3 Comments See all 3 3 Comments reply Manu Thakur commented Jan 4, 2018 reply Follow Share It's because operator precedence parser only can parse an operator precedence grammar. An operator grammar is which doesn't allow epsilon and two variables side by side in its productions. Operator grammar only can generate a very small class of languages hence, this parse is not used. It's not possible that each language can have an operator precedence grammar corresponding to it. 2 votes 2 votes hacker16 commented Jan 4, 2018 reply Follow Share exactly !! 0 votes 0 votes priyanka manwani commented Jan 10, 2019 reply Follow Share ""Any ambiguous grammar can be parsed by operator precedence parser"" is this statement only true when the grammer is operator precedence or it is always true??? 0 votes 0 votes Please log in or register to add a comment.
0 votes 0 votes Space used is more by OP parser which is 0(n)(n=no.of operators ) .e,g, 4 operaor require 16 cells table. Swarnimkuk10 answered Feb 16, 2020 Swarnimkuk10 comment Share Follow See all 0 reply Please log in or register to add a comment.