如果字符是个开括号,把它压入堆栈。
If the character is an opening parenthesis, push it onto the stack.
开括号后面跟着一个可选的参数列表。
The open-parenthesis is followed by an optional argument list.
不可以用操作符、函数、逗号或开括号作为表达式结束符。
Expressions must not end with an operator, function, comma, or opening parenthesis.
当您键入开括号或双引号时,Eclipse会自动提供配对的符号,并将光标置于符号对之内。
Also, when you type an open parenthesis or double quote, Eclipse will provide its partner automatically and place the cursor inside the pair.
当检测到一个开括号时,我们就找到了一个标签的开头,并将收集到的字符在逆转顺序之后返回。
When we detect an open bracket, we have found the start of a tag and return the collected characters after we have reversed their sequence.
现在字符串不是用这种方式表达的,你没有看到字符串里有开括号闭括号,字符串中间也没有逗号,但是它有同样的属性。
Now it is not represented this same way. You don't see strings inside these open parens and closed parens.
如果字符是个闭括号(closingparenthesis),在遇见开括号前,弹出所有操作符,然后把它们添加到结果字符串。
If the character is a closing parenthesis, pop all operators until you reach an opening parenthesis and append them to the result string.
如果字符是个操作符,弹出(pop)操作符,直至遇见开括号(openingparenthesis)、优先级较低的操作符或者同一优先级的右结合符号。
If the character is an operator, pop operators until you reach an opening parenthesis, an operator of lower precedence, or a right associative symbol of equal precedence.
如果字符是个操作符,弹出(pop)操作符,直至遇见开括号(openingparenthesis)、优先级较低的操作符或者同一优先级的右结合符号。
If the character is an operator, pop operators until you reach an opening parenthesis, an operator of lower precedence, or a right associative symbol of equal precedence.
应用推荐