Module

PuduLangDocgen.Api.Parser

View source

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

path
Str
source
Str

Returns

Model.Unit

View source

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]
from
Int
to
Int

Returns

Str

View source