A compound statement , usually referred to as a block , is a (possibly empty) sequence of statements surrounded by a pair of curly braces .
复合语句,通常被称为块,是用一对花括号括起来的语句序列(也可能是空的)。Do not change main function and other functions in any content, only the braces in the function fun fill a number of statements you write.
请勿改动主函数main和其它函数中的任何内容,仅在函数fun的花括号中填入你编写的若干语句。Enclose the variable name in curly braces if you want to explicitly specify the end of the name .
如果想明示指定名字的结束,用花括号把变量名括起来。In JavaFX Script, a function can contain variable declarations and a return statement, all contained within curly braces.
在JavaFXScript中,函数可以包含变量声明和一个返回语句,所有语句都包含在花括号中。As this represents one of the most common errors in C, it's a welcome addition to force this kind of proper style.
因为省略花括号是C中最常见的错误之一,所以强制使用这种正确的编码样式的做法很受人们欢迎。The second set of braces encloses the production rule written in a way that JavaCC understands.
第二组花括号包含以JavaCC理解的方式所写的产生式规则。These are defined between the first pair of braces in the production, as shown in Listing 16.
如清单16中所示,这些变量是在产生式中第一对花括号之间定义的。In these simple cases, expressions are provided, but they could also be blocks of code (using curly braces) to specify multiple statements.
这些简单的案例中提供了表达式,但它们也可以是规定多条语句的代码块(使用花括号)。Vector constants are created by putting the type of vector in parentheses followed by the contents of the vector in curly braces.
向量常量的创建方法如下:先是在圆括号中的向量类型,然后是使用花括号括起来的向量内容。