mirror of
https://github.com/SymboScript/Book.git
synced 2024-11-24 14:16:24 +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.
|
Strings are enclosed in double quotes, single quotes or backticks.
|
||||||
|
|
||||||
```ts
|
```symboscript
|
||||||
"hello";
|
"hello"
|
||||||
"hello"`hello`;
|
"hello"
|
||||||
("hello\nworld");
|
`hello`
|
||||||
('hello"world');
|
"hello\nworld"
|
||||||
("hello ' world");
|
'hello"world'
|
||||||
|
"hello ' world"
|
||||||
```
|
```
|
||||||
|
|
||||||
## Numbers
|
## Numbers
|
||||||
|
|
||||||
```ts
|
```symboscript
|
||||||
1 .1
|
1 .1
|
||||||
1.1
|
1.1
|
||||||
1e1
|
1e1
|
||||||
|
@ -27,7 +28,7 @@ Strings are enclosed in double quotes, single quotes or backticks.
|
||||||
|
|
||||||
## Booleans
|
## Booleans
|
||||||
|
|
||||||
```ts
|
```symboscript
|
||||||
true;
|
true
|
||||||
false;
|
false
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Reference in a new issue