-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
YOYO NEW KCL DOCS!! Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
438c3a2
commit 5230f8f
Showing
28 changed files
with
1,613 additions
and
48 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
--- | ||
title: "BinaryOperator" | ||
excerpt: "" | ||
layout: manual | ||
--- | ||
|
||
|
||
|
||
|
||
|
||
|
||
**This schema accepts exactly one of the following:** | ||
|
||
Add two numbers. | ||
|
||
**enum:** `+` | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
---- | ||
Subtract two numbers. | ||
|
||
**enum:** `-` | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
---- | ||
Multiply two numbers. | ||
|
||
**enum:** `*` | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
---- | ||
Divide two numbers. | ||
|
||
**enum:** `/` | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
---- | ||
Modulo two numbers. | ||
|
||
**enum:** `%` | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
---- | ||
Raise a number to a power. | ||
|
||
**enum:** `^` | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
---- | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,161 @@ | ||
--- | ||
title: "BinaryPart" | ||
excerpt: "" | ||
layout: manual | ||
--- | ||
|
||
|
||
|
||
|
||
|
||
|
||
**This schema accepts exactly one of the following:** | ||
|
||
|
||
**Type:** `object` | ||
|
||
|
||
|
||
|
||
|
||
## Properties | ||
|
||
| Property | Type | Description | Required | | ||
|----------|------|-------------|----------| | ||
| `type` |enum: `Literal`| | No | | ||
| `start` |[`EnvironmentRef`](/docs/kcl/types/EnvironmentRef)| | No | | ||
| `end` |[`EnvironmentRef`](/docs/kcl/types/EnvironmentRef)| | No | | ||
| `value` |[`LiteralValue`](/docs/kcl/types/LiteralValue)| | No | | ||
| `raw` |`string`| | No | | ||
| `digest` |`[, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`]`| | No | | ||
|
||
|
||
---- | ||
|
||
**Type:** `object` | ||
|
||
|
||
|
||
|
||
|
||
## Properties | ||
|
||
| Property | Type | Description | Required | | ||
|----------|------|-------------|----------| | ||
| `type` |enum: [`Identifier`](/docs/kcl/types/Identifier)| | No | | ||
| `start` |[`EnvironmentRef`](/docs/kcl/types/EnvironmentRef)| | No | | ||
| `end` |[`EnvironmentRef`](/docs/kcl/types/EnvironmentRef)| | No | | ||
| `name` |`string`| | No | | ||
| `digest` |`[, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`]`| | No | | ||
|
||
|
||
---- | ||
|
||
**Type:** `object` | ||
|
||
|
||
|
||
|
||
|
||
## Properties | ||
|
||
| Property | Type | Description | Required | | ||
|----------|------|-------------|----------| | ||
| `type` |enum: `BinaryExpression`| | No | | ||
| `start` |[`EnvironmentRef`](/docs/kcl/types/EnvironmentRef)| | No | | ||
| `end` |[`EnvironmentRef`](/docs/kcl/types/EnvironmentRef)| | No | | ||
| `operator` |[`BinaryOperator`](/docs/kcl/types/BinaryOperator)| | No | | ||
| `left` |[`BinaryPart`](/docs/kcl/types/BinaryPart)| | No | | ||
| `right` |[`BinaryPart`](/docs/kcl/types/BinaryPart)| | No | | ||
| `digest` |`[, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`]`| | No | | ||
|
||
|
||
---- | ||
|
||
**Type:** `object` | ||
|
||
|
||
|
||
|
||
|
||
## Properties | ||
|
||
| Property | Type | Description | Required | | ||
|----------|------|-------------|----------| | ||
| `type` |enum: `CallExpression`| | No | | ||
| `start` |[`EnvironmentRef`](/docs/kcl/types/EnvironmentRef)| | No | | ||
| `end` |[`EnvironmentRef`](/docs/kcl/types/EnvironmentRef)| | No | | ||
| `callee` |[`Identifier`](/docs/kcl/types/Identifier)| | No | | ||
| `arguments` |`[` [`Expr`](/docs/kcl/types/Expr) `]`| | No | | ||
| `optional` |`boolean`| | No | | ||
| `digest` |`[, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`]`| | No | | ||
|
||
|
||
---- | ||
|
||
**Type:** `object` | ||
|
||
|
||
|
||
|
||
|
||
## Properties | ||
|
||
| Property | Type | Description | Required | | ||
|----------|------|-------------|----------| | ||
| `type` |enum: `UnaryExpression`| | No | | ||
| `start` |[`EnvironmentRef`](/docs/kcl/types/EnvironmentRef)| | No | | ||
| `end` |[`EnvironmentRef`](/docs/kcl/types/EnvironmentRef)| | No | | ||
| `operator` |[`UnaryOperator`](/docs/kcl/types/UnaryOperator)| | No | | ||
| `argument` |[`BinaryPart`](/docs/kcl/types/BinaryPart)| | No | | ||
| `digest` |`[, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`]`| | No | | ||
|
||
|
||
---- | ||
|
||
**Type:** `object` | ||
|
||
|
||
|
||
|
||
|
||
## Properties | ||
|
||
| Property | Type | Description | Required | | ||
|----------|------|-------------|----------| | ||
| `type` |enum: `MemberExpression`| | No | | ||
| `start` |[`EnvironmentRef`](/docs/kcl/types/EnvironmentRef)| | No | | ||
| `end` |[`EnvironmentRef`](/docs/kcl/types/EnvironmentRef)| | No | | ||
| `object` |[`MemberObject`](/docs/kcl/types/MemberObject)| | No | | ||
| `property` |[`LiteralIdentifier`](/docs/kcl/types/LiteralIdentifier)| | No | | ||
| `computed` |`boolean`| | No | | ||
| `digest` |`[, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`]`| | No | | ||
|
||
|
||
---- | ||
|
||
**Type:** `object` | ||
|
||
|
||
|
||
|
||
|
||
## Properties | ||
|
||
| Property | Type | Description | Required | | ||
|----------|------|-------------|----------| | ||
| `type` |enum: `IfExpression`| | No | | ||
| `start` |[`EnvironmentRef`](/docs/kcl/types/EnvironmentRef)| | No | | ||
| `end` |[`EnvironmentRef`](/docs/kcl/types/EnvironmentRef)| | No | | ||
| `cond` |[`Expr`](/docs/kcl/types/Expr)| | No | | ||
| `then_val` |[`Program`](/docs/kcl/types/Program)| | No | | ||
| `else_ifs` |`[` [`ElseIf`](/docs/kcl/types/ElseIf) `]`| | No | | ||
| `final_else` |[`Program`](/docs/kcl/types/Program)| | No | | ||
| `digest` |`[, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`]`| | No | | ||
|
||
|
||
---- | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
--- | ||
title: "BodyItem" | ||
excerpt: "" | ||
layout: manual | ||
--- | ||
|
||
|
||
|
||
|
||
|
||
|
||
**This schema accepts exactly one of the following:** | ||
|
||
|
||
**Type:** `object` | ||
|
||
|
||
|
||
|
||
|
||
## Properties | ||
|
||
| Property | Type | Description | Required | | ||
|----------|------|-------------|----------| | ||
| `type` |enum: `ExpressionStatement`| | No | | ||
| `start` |[`EnvironmentRef`](/docs/kcl/types/EnvironmentRef)| | No | | ||
| `end` |[`EnvironmentRef`](/docs/kcl/types/EnvironmentRef)| | No | | ||
| `expression` |[`Expr`](/docs/kcl/types/Expr)| | No | | ||
| `digest` |`[, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`]`| | No | | ||
|
||
|
||
---- | ||
|
||
**Type:** `object` | ||
|
||
|
||
|
||
|
||
|
||
## Properties | ||
|
||
| Property | Type | Description | Required | | ||
|----------|------|-------------|----------| | ||
| `type` |enum: `VariableDeclaration`| | No | | ||
| `start` |[`EnvironmentRef`](/docs/kcl/types/EnvironmentRef)| | No | | ||
| `end` |[`EnvironmentRef`](/docs/kcl/types/EnvironmentRef)| | No | | ||
| `declarations` |`[` [`VariableDeclarator`](/docs/kcl/types/VariableDeclarator) `]`| | No | | ||
| `kind` |[`VariableKind`](/docs/kcl/types/VariableKind)| | No | | ||
| `digest` |`[, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`]`| | No | | ||
|
||
|
||
---- | ||
|
||
**Type:** `object` | ||
|
||
|
||
|
||
|
||
|
||
## Properties | ||
|
||
| Property | Type | Description | Required | | ||
|----------|------|-------------|----------| | ||
| `type` |enum: `ReturnStatement`| | No | | ||
| `start` |[`EnvironmentRef`](/docs/kcl/types/EnvironmentRef)| | No | | ||
| `end` |[`EnvironmentRef`](/docs/kcl/types/EnvironmentRef)| | No | | ||
| `argument` |[`Expr`](/docs/kcl/types/Expr)| | No | | ||
| `digest` |`[, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`, `integer`]`| | No | | ||
|
||
|
||
---- | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- | ||
title: "CommentStyle" | ||
excerpt: "" | ||
layout: manual | ||
--- | ||
|
||
|
||
|
||
|
||
|
||
|
||
**This schema accepts exactly one of the following:** | ||
|
||
Like // foo | ||
|
||
**enum:** `line` | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
---- | ||
Like /* foo */ | ||
|
||
**enum:** `block` | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
---- | ||
|
||
|
||
|
||
|
Oops, something went wrong.