2022-04-13から1日間の記事一覧

ハイパー文書

ハイパー文書の定式化には次が必要 文書空間: おおよそ文書型/データ型に相当する。外延的/構造的に定義する。 文書: おおよそ文書空間の要素。特定の文書型/データ型を持つ。 文書コレクション: 同じ文書空間に所属する文書の集まり。文書空間の部分…

unifiedプラグインアーキテクチャの再定式化

まず、ソフトウェアコンポネントを、 プラグイン ドライバー に分ける。プラグインの種類を、 パーザー トランスフォーマー コンパイラ〈シリアライザー | ストリンギファイア〉 の3種に分ける。プラグインは、 アタッチャー パフォーマー に2つの部分からな…

unifiedパーザープラグインの事例 2

https://github.com/redotjs/redot/blob/main/packages/redot-parse/redot-parse.js "use strict"; // generated by dot.pegjs var parser = require("./dot.js"); function parse(doc, file) { try { return parser.parse(file.contents || doc); } catch (…

unifiedストリンギファイアプラグインの事例

https://github.com/retextjs/retext/blob/main/packages/retext-stringify/lib/index.js /** * @typedef {import('nlcst').Root} Root */ import {toString} from 'nlcst-to-string' /** @type {import('unified').Plugin<void[], Root, string>} */ export default function rete</void[],>…