rpw3@rpw3.org (Rob Warnock) wrote:>>The "trick" to hybridizing this with recursive descent is to assign>*very* high operator priorities to the start tokens of control expressions>[e.g., "keywords" such as BEGIN, IF, WHILE, etc.] and *very* low priorities>to the ends of expressions ["stoppers" such as END, ELSE, FI, right-paren,>right-bracket, comma, semicolon, &c]. This causes the simple operator>precedence parser to quite naturally behave as a recursive descent parser>when it encounters any of those constructs. ;-}