Operator-precedence parser: Difference between revisions

Content deleted Content added
Format code
Pseudo-code: Rename header
Line 30:
The algorithm is not a pure operator-precedence parser like the Dijkstra shunting yard algorithm. It assumes that the ''primary'' nonterminal is parsed in a separate subroutine, like in a recursive descent parser.
 
=== Pseudo-codePseudocode ===
 
The pseudo-codepseudocode for the algorithm is as follows. The parser starts at function ''parse_expression''. Precedence levels are greater than or equal to 0.
 
parse_expression()