This is a function
thingdoer(a, b, c)Move the opening bracket over to the beginning
| ; Route206 | |
| ; generated by mml2pret.py on 2024-04-10 17:26:58 | |
| Music_Route206: | |
| ; G/S/C header | |
| channel_count 4 | |
| channel 1, Music_Route206_Ch1 | |
| channel 2, Music_Route206_Ch2 | |
| channel 3, Music_Route206_Ch3 |
| proc b(x: ptr seq[int]): auto = | |
| proc a(): seq[int] = | |
| x[].add(10) | |
| return x[] | |
| a | |
| proc ax(): auto = | |
| # allocate a sequence manually | |
| # will be GC'd at the first opportunity | |
| var k = @[1, 2, 3] |
| proc route(reqType: string, path: string): void = | |
| proc notFound( | |
| reqType: string, pathOnly: string, getParams: string, pathParams: StringTableRef | |
| ): void = | |
| stderr.writeLine "default" | |
| proc methodNotAllowed( | |
| reqType: string, pathOnly: string, getParams: string, pathParams: StringTableRef | |
| ): void = | |
| stderr.writeLine "method not allowed" |
| ##[ | |
| An extremely basic BBcode parser | |
| Not quite ready for the works. | |
| Will turn into a package later | |
| Supports no parameters yet. | |
| 2 blank lines = 1 manual line break | |
| 3 blank lines = 2 manual line break |
| import std/random | |
| import std/strutils | |
| import std/httpclient | |
| import std/monotimes | |
| import std/cmdline | |
| import malebolgia | |
| import malebolgia/ticketlocks | |
| proc toThreeString(i: int): string = i.toHex(3).toLowerAscii() |
| from os import makedirs | |
| from typing import Any, Generator, cast | |
| import requests | |
| import json | |
| import sys | |
| from contextlib import contextmanager | |
| from pathlib import Path | |
| level: int = 0 |