Skip to content

Commit dc24259

Browse files
authored
Merge pull request #420 from Peefy/update-kcl-092-api-docs
docs: update kcl 092 api documents
2 parents 23d0279 + 3d45487 commit dc24259

File tree

48 files changed

+2090
-1181
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+2090
-1181
lines changed

docs/reference/xlang-api/c-api.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ The [C API](https://github.com/kcl-lang/lib/tree/main/c) is in the development s
88

99
## Prerequisites
1010

11-
+ Make
12-
+ C Compiler
13-
+ Cargo
11+
- Make
12+
- C Compiler
13+
- Cargo
1414

1515
## API Reference
1616

docs/reference/xlang-api/cpp-api.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ The [C++ API](https://github.com/kcl-lang/lib/tree/main/cpp) is in the developme
88

99
## Prerequisites
1010

11-
+ CMake >= 3.10
12-
+ C++ Compiler with C++17 Support
13-
+ Cargo
11+
- CMake >= 3.10
12+
- C++ Compiler with C++17 Support
13+
- Cargo
1414

1515
## Installation
1616

docs/reference/xlang-api/dotnet-api.md

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -57,38 +57,6 @@ var result = new API().ExecProgram(execArgs);
5757
</p>
5858
</details>
5959

60-
### ParseProgram
61-
62-
Parse KCL program with entry files and return the AST JSON string.
63-
64-
<details><summary>Example</summary>
65-
<p>
66-
67-
The content of `schema.k` is
68-
69-
```python
70-
schema AppConfig:
71-
replicas: int
72-
73-
app: AppConfig {
74-
replicas: 2
75-
}
76-
```
77-
78-
C# Code
79-
80-
```csharp
81-
using KclLib.API;
82-
83-
var path = "schema.k"
84-
var args = new ParseProgram_Args();
85-
args.Paths.Add(path);
86-
var result = new API().ParseProgram(args);
87-
```
88-
89-
</p>
90-
</details>
91-
9260
### ParseFile
9361

9462
Parse KCL single file to Module AST JSON string with import dependencies and parse errors.

0 commit comments

Comments
 (0)