add gpl licence

Closes #4

[CI SKIP]
This commit is contained in:
Dmitriy Pleshevskiy 2022-06-14 01:04:49 +03:00
parent ac60fc50bf
commit eb37e35997
Signed by: pleshevskiy
GPG Key ID: 1B59187B161C0215
8 changed files with 150 additions and 0 deletions

View File

@ -1,3 +1,22 @@
/**
* Copyright (C) 2022, Dmitriy Pleshevskiy <dmitriy@ideascup.me>
*
* This file is part of Paren
*
* Paren is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Paren is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Paren. If not, see <https://www.gnu.org/licenses/>.
*/
import { Nilable } from "./utils.ts";
export type Attrs = Record<string, AttrVal>;

View File

@ -1,3 +1,22 @@
/**
* Copyright (C) 2022, Dmitriy Pleshevskiy <dmitriy@ideascup.me>
*
* This file is part of Paren
*
* Paren is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Paren is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Paren. If not, see <https://www.gnu.org/licenses/>.
*/
export function concat(arr: Skipable<string>[]): string {
return join("", arr);
}

View File

@ -1,3 +1,22 @@
/**
* Copyright (C) 2022, Dmitriy Pleshevskiy <dmitriy@ideascup.me>
*
* This file is part of Paren
*
* Paren is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Paren is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Paren. If not, see <https://www.gnu.org/licenses/>.
*/
import { AnyNode, Elem, Fragment, TextNode } from "../core/node.ts";
import { isNil, Nilable } from "../core/utils.ts";
import { Parser } from "./types.ts";

View File

@ -1,3 +1,21 @@
/**
* Copyright (C) 2022, Dmitriy Pleshevskiy <dmitriy@ideascup.me>
*
* This file is part of Paren
*
* Paren is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Paren is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Paren. If not, see <https://www.gnu.org/licenses/>.
*/
import { AnyNode } from "../core/node.ts";
export interface Parser {

View File

@ -1,3 +1,21 @@
/**
* Copyright (C) 2022, Dmitriy Pleshevskiy <dmitriy@ideascup.me>
*
* This file is part of Paren
*
* Paren is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Paren is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Paren. If not, see <https://www.gnu.org/licenses/>.
*/
import { Attrs } from "../core/node.ts";
import { isNotSkip, isStr, join, Skipable } from "../core/utils.ts";

View File

@ -1,3 +1,22 @@
/**
* Copyright (C) 2022, Dmitriy Pleshevskiy <dmitriy@ideascup.me>
*
* This file is part of Paren
*
* Paren is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Paren is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Paren. If not, see <https://www.gnu.org/licenses/>.
*/
import {
AnyNode,
AttrEntry,

View File

@ -1,3 +1,22 @@
/**
* Copyright (C) 2022, Dmitriy Pleshevskiy <dmitriy@ideascup.me>
*
* This file is part of Paren
*
* Paren is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Paren is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Paren. If not, see <https://www.gnu.org/licenses/>.
*/
export * from "../core/node.ts";
import {

View File

@ -1,3 +1,22 @@
/**
* Copyright (C) 2022, Dmitriy Pleshevskiy <dmitriy@ideascup.me>
*
* This file is part of Paren
*
* Paren is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Paren is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Paren. If not, see <https://www.gnu.org/licenses/>.
*/
import { AnyNode } from "../core/node.ts";
export interface Renderer<T> {