Numeric Literals
| 12345 | Integer |
| 0×456ff | Hexadecimal |
| 0777 | Octal Numbers |
| 23.45 | Float |
| .234E-2 | Scientific Notation |
String Literals
| \t | Tab | ||||||||||
| \n | New Line | ||||||||||
| \r | Carriage Return | ||||||||||
| \f | Form Feed | ||||||||||
| \b | Backspace | ||||||||||
| \a | Alarm/Bell | ||||||||||
| \e | escape | ||||||||||
| 33 | Octal Character | ||||||||||
| \xff | Hexadecimal Character | ||||||||||
| \c[ | Control Character | ||||||||||
| \l | Next character is converted to lower case | ||||||||||
| \u | Next character is converted to upper case | ||||||||||
| \L | Next characters are converted to lower case until a \E is found | ||||||||||
| \U | Next characters are converted to upper case until a \E is found | ||||||||||
| \Q | Backslash all following non-alphanumeric characters until a \E is found | ||||||||||
| \E | Ends upper or lower case conversion started with \L or \U | ||||||||||
| \\ | Backslash |
Special Literals
| _LINE_ | Represents the current line number | |
| _FILE_ | Represents the current filename | |
| _END_ | Represents the logical end of script; trailing garbage is ignored |
No comments:
Post a Comment