mirror of
https://github.com/SymboScript/Book.git
synced 2024-11-05 21:33:59 +03:00
Update literals.md
This commit is contained in:
parent
171cac9296
commit
2f04b070df
1 changed files with 11 additions and 10 deletions
|
@ -6,17 +6,18 @@ In SymboScript exists only three kinds of token literals: strings, numbers, bool
|
|||
|
||||
Strings are enclosed in double quotes, single quotes or backticks.
|
||||
|
||||
```ts
|
||||
"hello";
|
||||
"hello"`hello`;
|
||||
("hello\nworld");
|
||||
('hello"world');
|
||||
("hello ' world");
|
||||
```symboscript
|
||||
"hello"
|
||||
"hello"
|
||||
`hello`
|
||||
"hello\nworld"
|
||||
'hello"world'
|
||||
"hello ' world"
|
||||
```
|
||||
|
||||
## Numbers
|
||||
|
||||
```ts
|
||||
```symboscript
|
||||
1 .1
|
||||
1.1
|
||||
1e1
|
||||
|
@ -27,7 +28,7 @@ Strings are enclosed in double quotes, single quotes or backticks.
|
|||
|
||||
## Booleans
|
||||
|
||||
```ts
|
||||
true;
|
||||
false;
|
||||
```symboscript
|
||||
true
|
||||
false
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue