Skip to content

Commit

Permalink
chore: remove ident spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Peefy committed Jul 8, 2023
1 parent 0ad5560 commit b861963
Show file tree
Hide file tree
Showing 12 changed files with 158 additions and 158 deletions.
34 changes: 17 additions & 17 deletions docs/reference/lang/spec/kcl-spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,21 @@ description: KCL Spec
The following are the keywords of the KCL:

```python
True False None Undefined import
and or in is not
as if else elif for
schema mixin protocol check assert
all any map filter lambda
rule
True False None Undefined import
and or in is not
as if else elif for
schema mixin protocol check assert
all any map filter lambda
rule
```

The following are reserved words for the KCL:

```python
pass return validate rule flow
def del raise except try
finally while from with yield
global nonlocal struct class final
pass return validate rule flow
def del raise except try
finally while from with yield
global nonlocal struct class final
```

### Line comment
Expand All @@ -38,18 +38,18 @@ The following are reserved words for the KCL:
### Operators

```python
+ - * ** / // %
<< >> & | ^ < >
~ <= >= == != =
+= -= *= **= /= //= %=
<<= >>= &= ^=
+ - * ** / // %
<< >> & | ^ < >
~ <= >= == != =
+= -= *= **= /= //= %=
<<= >>= &= ^=
```

### Delimiters

```python
( ) [ ] { }
, : . ; @
( ) [ ] { }
, : . ; @
```

### Operator precedence
Expand Down
24 changes: 12 additions & 12 deletions docs/reference/lang/spec/lexical.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,21 +99,21 @@ Identifiers are unlimited in length. The case is significant.
The following identifiers are used as reserved words, or keywords of the language, and cannot be used as ordinary identifiers. They must be spelled exactly as written here:

```
True False None Undefined import
and or in is not
as if else elif for
schema mixin protocol check assert
all any map filter lambda
rule
True False None Undefined import
and or in is not
as if else elif for
schema mixin protocol check assert
all any map filter lambda
rule
```

The following tokens are not used, but they are reserved as possible future keywords:

```
pass return validate rule flow
def del raise except try
finally while from with yield
global nonlocal struct class final
pass return validate rule flow
def del raise except try
finally while from with yield
global nonlocal struct class final
```

### Literals
Expand Down Expand Up @@ -174,7 +174,7 @@ exponent ::= ("e" | "E") ["+" | "-"] digitpart

The following tokens are operators:

```
```python
+ - * ** / // %
<< >> & | ^ < >
~ <= >= == != @
Expand All @@ -184,7 +184,7 @@ The following tokens are operators:

The following tokens serve as delimiters in the grammar:

```
```python
( ) [ ] { }
, : . ; = +=
-= *= **= /= //= %=
Expand Down
18 changes: 9 additions & 9 deletions docs/reference/lang/tour.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ As we learn about the KCL language, keep these facts and concepts in mind:
The following table lists the words that the KCL language treats specially.

```txt
True False None Undefined import
and or in is not
as if else elif for
schema mixin protocol check assert
all any map filter lambda
rule
True False None Undefined import
and or in is not
as if else elif for
schema mixin protocol check assert
all any map filter lambda
rule
```

### Identifiers
Expand Down Expand Up @@ -806,9 +806,9 @@ f = str(Undefined) # Undefined
The following character sequences represent operators:

```txt
+ - * ** / // %
<< >> & | ^ < >
~ <= >= == != @ \
+ - * ** / // %
<< >> & | ^ < >
~ <= >= == != @ \
```

#### Arithmetic Operators
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,21 @@ description: KCL Spec
The following are the keywords of the KCL:

```python
True False None Undefined import
and or in is not
as if else elif for
schema mixin protocol check assert
all any map filter lambda
rule
True False None Undefined import
and or in is not
as if else elif for
schema mixin protocol check assert
all any map filter lambda
rule
```

The following are reserved words for the KCL:

```python
pass return validate rule flow
def del raise except try
finally while from with yield
global nonlocal struct class final
pass return validate rule flow
def del raise except try
finally while from with yield
global nonlocal struct class final
```

### Line comment
Expand All @@ -38,18 +38,18 @@ The following are reserved words for the KCL:
### Operators

```python
+ - * ** / // %
<< >> & | ^ < >
~ <= >= == != =
+= -= *= **= /= //= %=
<<= >>= &= ^=
+ - * ** / // %
<< >> & | ^ < >
~ <= >= == != =
+= -= *= **= /= //= %=
<<= >>= &= ^=
```

### Delimiters

```python
( ) [ ] { }
, : . ; @
( ) [ ] { }
, : . ; @
```

### Operator precedence
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,22 +98,22 @@ Identifiers are unlimited in length. The case is significant.

The following identifiers are used as reserved words, or keywords of the language, and cannot be used as ordinary identifiers. They must be spelled exactly as written here:

```
True False None Undefined import
and or in is not
as if else elif for
schema mixin protocol check assert
all any map filter lambda
rule
```python
True False None Undefined import
and or in is not
as if else elif for
schema mixin protocol check assert
all any map filter lambda
rule
```

The following tokens are not used, but they are reserved as possible future keywords:

```
pass return validate rule flow
def del raise except try
finally while from with yield
global nonlocal struct class final
```python
pass return validate rule flow
def del raise except try
finally while from with yield
global nonlocal struct class final
```

### Literals
Expand Down Expand Up @@ -174,7 +174,7 @@ exponent ::= ("e" | "E") ["+" | "-"] digitpart

The following tokens are operators:

```
```python
+ - * ** / // %
<< >> & | ^ < >
~ <= >= == != @
Expand All @@ -184,7 +184,7 @@ The following tokens are operators:

The following tokens serve as delimiters in the grammar:

```
```python
( ) [ ] { }
, : . ; = +=
-= *= **= /= //= %=
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ sidebar_position: 1
下表列出了 KCL 语言的关键字。

```txt
True False None Undefined import
and or in is not
as if else elif for
schema mixin protocol check assert
all any map filter lambda
rule
True False None Undefined import
and or in is not
as if else elif for
schema mixin protocol check assert
all any map filter lambda
rule
```

### 标识符
Expand Down Expand Up @@ -803,10 +803,10 @@ f = str(Undefined) # Undefined

以下字符表示运算符:

```txt
+ - * ** / // %
<< >> & | ^ < >
~ <= >= == != @ \
```python
+ - * ** / // %
<< >> & | ^ < >
~ <= >= == != @ \
```

#### 算数运算符
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,21 @@ description: KCL Spec
The following are the keywords of the KCL:

```python
True False None Undefined import
and or in is not
as if else elif for
schema mixin protocol check assert
all any map filter lambda
rule
True False None Undefined import
and or in is not
as if else elif for
schema mixin protocol check assert
all any map filter lambda
rule
```

The following are reserved words for the KCL:

```python
pass return validate rule flow
def del raise except try
finally while from with yield
global nonlocal struct class final
pass return validate rule flow
def del raise except try
finally while from with yield
global nonlocal struct class final
```

### Line comment
Expand All @@ -38,18 +38,18 @@ The following are reserved words for the KCL:
### Operators

```python
+ - * ** / // %
<< >> & | ^ < >
~ <= >= == != =
+= -= *= **= /= //= %=
<<= >>= &= ^=
+ - * ** / // %
<< >> & | ^ < >
~ <= >= == != =
+= -= *= **= /= //= %=
<<= >>= &= ^=
```

### Delimiters

```python
( ) [ ] { }
, : . ; @
( ) [ ] { }
, : . ; @
```

### Operator precedence
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,22 +98,22 @@ Identifiers are unlimited in length. The case is significant.

The following identifiers are used as reserved words, or keywords of the language, and cannot be used as ordinary identifiers. They must be spelled exactly as written here:

```
True False None Undefined import
and or in is not
as if else elif for
schema mixin protocol check assert
all any map filter lambda
rule
```python
True False None Undefined import
and or in is not
as if else elif for
schema mixin protocol check assert
all any map filter lambda
rule
```

The following tokens are not used, but they are reserved as possible future keywords:

```
pass return validate rule flow
def del raise except try
finally while from with yield
global nonlocal struct class final
```python
pass return validate rule flow
def del raise except try
finally while from with yield
global nonlocal struct class final
```

### Literals
Expand Down Expand Up @@ -174,7 +174,7 @@ exponent ::= ("e" | "E") ["+" | "-"] digitpart

The following tokens are operators:

```
```python
+ - * ** / // %
<< >> & | ^ < >
~ <= >= == != @
Expand All @@ -184,7 +184,7 @@ The following tokens are operators:

The following tokens serve as delimiters in the grammar:

```
```python
( ) [ ] { }
, : . ; = +=
-= *= **= /= //= %=
Expand Down
Loading

0 comments on commit b861963

Please sign in to comment.