Path: csiph.com!feeder.erje.net!2.us.feeder.erje.net!news.glorb.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news.iecc.com!.POSTED.news.iecc.com!nerds-end From: Andreas Schramm Newsgroups: comp.compilers Subject: precedences vs. hierarchy Date: Mon, 6 Jun 2016 09:08:56 +0200 Organization: Compilers Central Lines: 17 Sender: news@iecc.com Approved: comp.compilers@iecc.com Message-ID: <16-06-001@comp.compilers> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Injection-Info: miucha.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="19132"; mail-complaints-to="abuse@iecc.com" Keywords: parse, question Posted-Date: 06 Jun 2016 08:35:43 EDT X-submission-address: compilers@iecc.com X-moderator-address: compilers-request@iecc.com X-FAQ-and-archives: http://compilers.iecc.com Xref: csiph.com comp.compilers:1707 Hi all, for specifying the syntax of operator expressions with multiple levels of precedences, there are essentially two approaches: (i) by precedence and associativity declarations, and (ii) by a hierarchy of non-terminals. Both approaches have been known and in use for decades. My question is: Are there trends in the public opinion in favor of one of them over the other? Or are they equally respected approaches? Best regards, Andreas