Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
mandel committed Sep 4, 2024
1 parent c900d02 commit 31145ad
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
5 changes: 4 additions & 1 deletion docs/api_reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@ This page documents the PDL members that likely to be used to run PDL programs f
::: pdl.pdl_ast

## Interpreter
::: pdl.pdl_interpreter
::: pdl.pdl

<!--
::: pdl.pdl_interpreter
::: pdl.pdl_interpreter.InterpreterState
options:
show_if_no_docstring: true
Expand Down
8 changes: 4 additions & 4 deletions pdl/pdl.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def exec_program(
config: Optional[InterpreterConfig] = None,
scope: Optional[ScopeType] = None,
loc: Optional[LocationType] = None,
):
) -> Any:
"""Execute a PDL program given as a value of type `pdl.pdl_ast.Program`.
Args:
Expand All @@ -65,7 +65,7 @@ def exec_dict(
config: Optional[InterpreterConfig] = None,
scope: Optional[ScopeType] = None,
loc: Optional[LocationType] = None,
):
) -> Any:
"""Execute a PDL program given as a dictionary.
Args:
Expand All @@ -86,7 +86,7 @@ def exec_str(
prog: str,
config: Optional[InterpreterConfig] = None,
scope: Optional[ScopeType] = None,
):
) -> Any:
"""Execute a PDL program given as YAML string.
Args:
Expand All @@ -106,7 +106,7 @@ def exec_file(
prog: str,
config: Optional[InterpreterConfig] = None,
scope: Optional[ScopeType] = None,
):
) -> Any:
"""Execute a PDL program given as YAML file.
Args:
Expand Down

0 comments on commit 31145ad

Please sign in to comment.