Module
PuduLangDocgen.Api.Parser
Module declarations and their documentation read from tokens
Functions
| Name | Description |
|---|---|
parse |
The module declared in a source file at a project-relative path. |
render |
Tokens joined the way declarations are conventionally written. |
parse
fn parse(path: Str, source: Str) -> Model.Unit
The module declared in a source file at a project-relative path.
Parameters
pathStrsourceStr
Returns
render
fn render(tokens: &Array[Lexer.Token], from: Int, to: Int) -> Str
Tokens joined the way declarations are conventionally written.
Parameters
tokens&Array[Lexer.Token]fromInttoInt
Returns
Str