基本上,推是指解析器对某个处理程序说:“我有一个foo,对其进行处理。” 当处理程序对解析器说“给我下一个foo”时,即为拉。
推:
if (myChar == '(') handler.handleOpenParen(); // push the open paren to the handler拉:
Token token = parser.next(); // pull the next token from the parser

基本上,推是指解析器对某个处理程序说:“我有一个foo,对其进行处理。” 当处理程序对解析器说“给我下一个foo”时,即为拉。
推:
if (myChar == '(') handler.handleOpenParen(); // push the open paren to the handler拉:
Token token = parser.next(); // pull the next token from the parser