src/parser

Search:
Group by:

Parser module

This module implements parsing HTTP body requests for new submissions.

Types

ParsedSubmitField = tuple[word, definition, author: string]
Valid fields for submissions

Procs

proc decode(encoded: string): string {....raises: [], tags: [], forbids: [].}
Decodes stored data to utf-8 (i think...)
proc parseHtmlBody(body: string): Table[string, string] {....raises: [], tags: [],
    forbids: [].}
Parses html body and turns it into a Table of key -> value pairs
proc parseHtmlBodySubmit(body: string): ParsedSubmitField {....raises: [],
    tags: [], forbids: [].}
Parses html body for the submit page