# Literal expressions

> **Syntax**\
> _LiteralExpression_ :\
>       [CHAR_LITERAL]\
>    | [STRING_LITERAL]\
>    | [RAW_STRING_LITERAL]\
>    | [BYTE_LITERAL]\
>    | [BYTE_STRING_LITERAL]\
>    | [RAW_BYTE_STRING_LITERAL]\
>    | [INTEGER_LITERAL]\
>    | [FLOAT_LITERAL]\
>    | [BOOLEAN_LITERAL]

A _literal expression_ consists of one of the [literal](../tokens.md#literals)
forms described earlier. It directly describes a number, character, string,
or boolean value.

```rust
"hello";   // string type
'5';       // character type
5;         // integer type
```

[CHAR_LITERAL]: ../tokens.md#character-literals
[STRING_LITERAL]: ../tokens.md#string-literals
[RAW_STRING_LITERAL]: ../tokens.md#raw-string-literals
[BYTE_LITERAL]: ../tokens.md#byte-literals
[BYTE_STRING_LITERAL]: ../tokens.md#byte-string-literals
[RAW_BYTE_STRING_LITERAL]: ../tokens.md#raw-byte-string-literals
[INTEGER_LITERAL]: ../tokens.md#integer-literals
[FLOAT_LITERAL]: ../tokens.md#floating-point-literals
[BOOLEAN_LITERAL]: ../tokens.md#boolean-literals
