Skip to content

Commit

Permalink
chore: sync latest documents
Browse files Browse the repository at this point in the history
Signed-off-by: peefy <[email protected]>
  • Loading branch information
Peefy committed Jan 9, 2024
1 parent 8551d43 commit cd19947
Show file tree
Hide file tree
Showing 12 changed files with 36 additions and 24 deletions.
7 changes: 1 addition & 6 deletions docs/reference/lang/spec/kcl-spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,19 +97,14 @@ assert_stmt: ASSERT simple_expr (IF simple_expr)? (COMMA test)?
//////////// if_stmt ////////////
if_stmt: IF test COLON execution_block (ELIF test COLON execution_block)* (ELSE COLON execution_block)?
execution_block: if_simple_stmt | NEWLINE _INDENT schema_init_stmt+ _DEDENT
if_simple_stmt: (simple_assign_stmt | unification_stmt | expr_stmt | assert_stmt) NEWLINE
if_simple_stmt: (assign_stmt | unification_stmt | expr_stmt | assert_stmt) NEWLINE

//////////// assign_stmt ////////////
assign_stmt: identifier [COLON type] (ASSIGN identifier)* ASSIGN test
| identifier (COMP_PLUS | COMP_MINUS | COMP_MULTIPLY | COMP_DOUBLE_STAR | COMP_DIVIDE
| COMP_DOUBLE_DIVIDE | COMP_MOD | COMP_AND | COMP_OR | COMP_XOR | COMP_SHIFT_LEFT
| COMP_SHIFT_RIGHT) test

simple_assign_stmt: identifier ASSIGN test
| identifier (COMP_PLUS | COMP_MINUS | COMP_MULTIPLY | COMP_DOUBLE_STAR | COMP_DIVIDE
| COMP_DOUBLE_DIVIDE | COMP_MOD | COMP_AND | COMP_OR | COMP_XOR | COMP_SHIFT_LEFT
| COMP_SHIFT_RIGHT) test

//////////// unification_stmt ////////////
unification_stmt: identifier COLON schema_expr

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,19 +97,14 @@ assert_stmt: ASSERT simple_expr (IF simple_expr)? (COMMA test)?
//////////// if_stmt ////////////
if_stmt: IF test COLON execution_block (ELIF test COLON execution_block)* (ELSE COLON execution_block)?
execution_block: if_simple_stmt | NEWLINE _INDENT schema_init_stmt+ _DEDENT
if_simple_stmt: (simple_assign_stmt | unification_stmt | expr_stmt | assert_stmt) NEWLINE
if_simple_stmt: (assign_stmt | unification_stmt | expr_stmt | assert_stmt) NEWLINE

//////////// assign_stmt ////////////
assign_stmt: identifier [COLON type] (ASSIGN identifier)* ASSIGN test
| identifier (COMP_PLUS | COMP_MINUS | COMP_MULTIPLY | COMP_DOUBLE_STAR | COMP_DIVIDE
| COMP_DOUBLE_DIVIDE | COMP_MOD | COMP_AND | COMP_OR | COMP_XOR | COMP_SHIFT_LEFT
| COMP_SHIFT_RIGHT) test

simple_assign_stmt: identifier ASSIGN test
| identifier (COMP_PLUS | COMP_MINUS | COMP_MULTIPLY | COMP_DOUBLE_STAR | COMP_DIVIDE
| COMP_DOUBLE_DIVIDE | COMP_MOD | COMP_AND | COMP_OR | COMP_XOR | COMP_SHIFT_LEFT
| COMP_SHIFT_RIGHT) test

//////////// unification_stmt ////////////
unification_stmt: identifier COLON schema_expr

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,19 +97,14 @@ assert_stmt: ASSERT simple_expr (IF simple_expr)? (COMMA test)?
//////////// if_stmt ////////////
if_stmt: IF test COLON execution_block (ELIF test COLON execution_block)* (ELSE COLON execution_block)?
execution_block: if_simple_stmt | NEWLINE _INDENT schema_init_stmt+ _DEDENT
if_simple_stmt: (simple_assign_stmt | unification_stmt | expr_stmt | assert_stmt) NEWLINE
if_simple_stmt: (assign_stmt | unification_stmt | expr_stmt | assert_stmt) NEWLINE

//////////// assign_stmt ////////////
assign_stmt: identifier [COLON type] (ASSIGN identifier)* ASSIGN test
| identifier (COMP_PLUS | COMP_MINUS | COMP_MULTIPLY | COMP_DOUBLE_STAR | COMP_DIVIDE
| COMP_DOUBLE_DIVIDE | COMP_MOD | COMP_AND | COMP_OR | COMP_XOR | COMP_SHIFT_LEFT
| COMP_SHIFT_RIGHT) test

simple_assign_stmt: identifier ASSIGN test
| identifier (COMP_PLUS | COMP_MINUS | COMP_MULTIPLY | COMP_DOUBLE_STAR | COMP_DIVIDE
| COMP_DOUBLE_DIVIDE | COMP_MOD | COMP_AND | COMP_OR | COMP_XOR | COMP_SHIFT_LEFT
| COMP_SHIFT_RIGHT) test

//////////// unification_stmt ////////////
unification_stmt: identifier COLON schema_expr

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 核心概念

学习更多关于 KCL 核心概念。

import DocCardList from '@theme/DocCardList';

<DocCardList />
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
# 快速开始

import DocCardList from '@theme/DocCardList';

<DocCardList />
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
# 用户手册

import DocCardList from '@theme/DocCardList';

<DocCardList />
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 常见问答

KCL 安装、使用过程中遇到的常见问题,包括基本概念解释、KCL 语法、KCL 语言设计、命令行工具和 YAML 等常见问题。

import DocCardList from '@theme/DocCardList';

<DocCardList />
7 changes: 1 addition & 6 deletions versioned_docs/version-0.7.0/reference/lang/spec/kcl-spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,19 +97,14 @@ assert_stmt: ASSERT simple_expr (IF simple_expr)? (COMMA test)?
//////////// if_stmt ////////////
if_stmt: IF test COLON execution_block (ELIF test COLON execution_block)* (ELSE COLON execution_block)?
execution_block: if_simple_stmt | NEWLINE _INDENT schema_init_stmt+ _DEDENT
if_simple_stmt: (simple_assign_stmt | unification_stmt | expr_stmt | assert_stmt) NEWLINE
if_simple_stmt: (assign_stmt | unification_stmt | expr_stmt | assert_stmt) NEWLINE

//////////// assign_stmt ////////////
assign_stmt: identifier [COLON type] (ASSIGN identifier)* ASSIGN test
| identifier (COMP_PLUS | COMP_MINUS | COMP_MULTIPLY | COMP_DOUBLE_STAR | COMP_DIVIDE
| COMP_DOUBLE_DIVIDE | COMP_MOD | COMP_AND | COMP_OR | COMP_XOR | COMP_SHIFT_LEFT
| COMP_SHIFT_RIGHT) test

simple_assign_stmt: identifier ASSIGN test
| identifier (COMP_PLUS | COMP_MINUS | COMP_MULTIPLY | COMP_DOUBLE_STAR | COMP_DIVIDE
| COMP_DOUBLE_DIVIDE | COMP_MOD | COMP_AND | COMP_OR | COMP_XOR | COMP_SHIFT_LEFT
| COMP_SHIFT_RIGHT) test

//////////// unification_stmt ////////////
unification_stmt: identifier COLON schema_expr

Expand Down
4 changes: 4 additions & 0 deletions versioned_docs/version-0.7.0/user_docs/concepts/concepts.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Concepts

Learn more about KCL concepts.

import DocCardList from '@theme/DocCardList';

<DocCardList />
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Get Started

Get started include a quick overview of the KCL programming language.

import DocCardList from '@theme/DocCardList';

<DocCardList />
4 changes: 4 additions & 0 deletions versioned_docs/version-0.7.0/user_docs/guides/index.md
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
# User Guide

import DocCardList from '@theme/DocCardList';

<DocCardList />
4 changes: 4 additions & 0 deletions versioned_docs/version-0.7.0/user_docs/support/support.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# FAQ

KCL frequently asked questions.

import DocCardList from '@theme/DocCardList';

<DocCardList />

0 comments on commit cd19947

Please sign in to comment.