If the character is a closing parenthesis, pop all operators until you reach an opening parenthesis and append them to the result string.
如果字符是个闭括号(closing parenthesis),在遇见开括号前,弹出所有操作符,然后把它们添加到结果字符串。
Note that where the final parameter to a method is a closure, Groovy permits that you can remove it from the list of actual parameters and place it immediately after the closing parenthesis.
注意方法的最后一个参数是个闭包,在这个地方Groovy允许把它从实际参数列表中删除,并把它直接放在结束括号后面。
KH: You might say that emoticons are the best way to go about that—a little winking emoticon—you know, semicolon, dash, closing parenthesis.
也许表情符号是表达反语的最好方式,例如一个眨眼的表情符号——由分号,破折号和右括号组成。
In the invocation of such a macro, it represents the zero or more tokens until the closing parenthesis that ends the invocation, including any commas.
这类宏在被调用时,它(这里指‘…’)被表示成零个或多个符号,包括里面的逗号,一直到到右括弧结束为止。
In the invocation of such a macro, it represents the zero or more tokens until the closing parenthesis that ends the invocation, including any commas.
这类宏在被调用时,它(这里指‘…’)被表示成零个或多个符号,包括里面的逗号,一直到到右括弧结束为止。
应用推荐