Skip to content

Commit

Permalink
docs: add dotnet API reference docs
Browse files Browse the repository at this point in the history
Signed-off-by: peefy <[email protected]>
  • Loading branch information
Peefy committed Jul 15, 2024
1 parent a8a4b4c commit e229428
Show file tree
Hide file tree
Showing 8 changed files with 2,516 additions and 36 deletions.
622 changes: 622 additions & 0 deletions docs/reference/xlang-api/dotnet-api.md

Large diffs are not rendered by default.

16 changes: 7 additions & 9 deletions docs/reference/xlang-api/java-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,15 +207,13 @@ app: AppConfig {

Java Code

```python
import kcl_lib.api as api

args = api.LoadPackage_Args(
parse_args=api.ParseProgram_Args(paths=["schema.k"]), resolve_ast=True
)
api = api.API()
result = api.load_package(args)
assert list(result.symbols.values())[0].ty.schema_name == "AppConfig"
```java
import com.kcl.api.*;

API api = new API();
LoadPackage_Result result = api.loadPackage(LoadPackage_Args.newBuilder().setResolveAst(true)
.setWithAstIndex(true)
.setParseArgs(ParseProgram_Args.newBuilder().addPaths("schema.k").build()).build());
```

</p>
Expand Down
Loading

0 comments on commit e229428

Please sign in to comment.