private bool TryPrefixOperator(Word w) { PrefixOperatorDef def = this.ctx.GetPrefixOperator(w.word); if (def == null) { return(false); } return(def.TryParse(w, this)); }
private bool TryPrefixOperator(string word) { PrefixOperatorDef def = this.ctx.GetPrefixOperator(word); if (def == null) { return(false); } this.stk_parse.Push(new UnaryPrefixElement(def)); return(true); }
public UnaryPrefixElement(PrefixOperatorDef def) { this.priority = def.prioR; this.op = def.word; }