First, preface
The Scala program uses Unicode's BMP character set (Wiki:bmp character set), which is not currently supported by the Unicode supplement character set. This chapter defines Scala's syntactic analysis from Scala models and XML models. If not specifically mentioned, the default refers to the Scala model and specifies that the characters are ASCII \u0000 to \u007f fragments.
In the Scala model, Unicode encoding is made up of hexadecimal numbers
Unicodeescape:: = ' \ ' u ' {' u '} hexdigit hexdigit hexdigit hexdigithexdigit ::= ' 0 ' | ' 9 ' | ' A ' | ... | ' F ' | ' A ' | ... | ' F ' // Note: Hexdigit refers to hexadecimal number
The characters that make up the command statement have special requirements that are combined by the following characters:
- Space \u0020 | \u0009 | \u00d | \u000a
- Letters, ' $ ', ' _ '
- Digital
- Brackets (), [], {}
- "' | "' | ' ' ' | '. ' | '; ' | ', '
- Operator
Ii. Definition of form
Scala Learning Note One: Scala syntax morphology