You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This program parses Certora's `CVLDoc` comments. It contains the following modules:
3
+
*[`parse`](/src/parse), which lexes and parses the subset of `CVL` required to be compatible with `CVLDoc`, including the `CVLDoc` documentation blocks
4
+
*[`python_wrapper`](/src/python_wrapper), which exports the Python package `cvldoc_parser` using [`PyO3`](https://pyo3.rs). This is also used by [`cvldocTool`](https://github.com/Certora/cvldocTool).
Clone [the entire repo](https://github.com/Certora/cvldoc_parser), then from the project base:
7
13
```bash
8
14
$ cd src/python_wrapper
@@ -22,7 +28,3 @@ It is now possible to import the module:
22
28
$ python
23
29
>>> import cvldoc_parser
24
30
```
25
-
26
-
## API
27
-
Currently exposes a single function, `cvldoc_parser.parse(paths)`. It takes a list of file paths as strings, and returns a list of parsed CVLDoc objects for each path.
28
-
A parsed CVLDoc object is either a `Documentation` or a `FreeForm`. They both support a `diagnostics()` method, that returns a list of warnings or errors associated with that object.
0 commit comments