Update literals.md

This commit is contained in:
Artemy 2023-12-24 18:49:40 +03:00
parent c48f669975
commit eb4dbc1362

View file

@ -1 +1,33 @@
# Literals
In SymboScript exists only three kinds of token literals: strings, numbers, booleans.
## Strings
Strings are enclosed in double quotes, single quotes or backticks.
```ts
"hello";
"hello"`hello`;
("hello\nworld");
('hello"world');
("hello ' world");
```
## Numbers
```ts
1 .1
1.1
1e1
1E1
1.1e1
1.1E1
```
## Booleans
```ts
true;
false;
```