Operator-precedence parser: Difference between revisions

Content deleted Content added
Ahoogen (talk | contribs)
m "Epsilon" is ambiguous in computer science and doesn't point to an obvious entry point for further information for those who are not familiar.
Citation bot (talk | contribs)
m Add: bibcode. Removed parameters. | You can use this bot yourself. Report bugs here. | Headbomb
Line 97:
Such trees do not necessarily need to be implemented using data structures conventionally used for trees. Instead, tokens can be stored in flat structures, such as tables, by simultaneously building a priority list which states what elements to process in which order.
 
Another approach is to first fully parenthesize the expression, inserting a number of parentheses around each operator, such that they lead to the correct precedence even when parsed with a linear, left-to-right parser. This algorithm was used in the early [[Fortran#FORTRAN|FORTRAN I]] compiler:<ref name="Padua2000">{{cite journal |last1=Padua |first1=David |title=The Fortran I Compiler |year=2000 |publisher=IEEE |journal=Computing in Science & Engineering |volume=2 |issue=1 |pages=70–75 |url=http://polaris.cs.uiuc.edu/publications/c1070.pdf |doi=10.1109/5992.814661|bibcode=2000CSE.....2a..70P }}</ref>
 
<blockquote>