@pacem/pacem-foundation 1.0.6-ricci → 2.0.0-abel

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3019,884 +3019,2953 @@
3019
3019
  "members": [
3020
3020
  {
3021
3021
  "kind": "Interface",
3022
- "canonicalReference": "@pacem/pacem-foundation!Compile.Lexer:interface",
3023
- "docComment": "/**\n * Turns raw input into a stream of {@link Token}s given a grammar (list of {@link Rule}s).\n */\n",
3022
+ "canonicalReference": "@pacem/pacem-foundation!Compile.BuiltinSyntax:interface",
3023
+ "docComment": "/**\n * A {@link Syntax} shipped with foundation: its name, and its base syntax if any, are {@link SyntaxName}s.\n */\n",
3024
3024
  "excerptTokens": [
3025
3025
  {
3026
3026
  "kind": "Content",
3027
- "text": "export interface Lexer "
3027
+ "text": "export interface BuiltinSyntax extends "
3028
+ },
3029
+ {
3030
+ "kind": "Reference",
3031
+ "text": "Syntax",
3032
+ "canonicalReference": "@pacem/pacem-foundation!Compile.Syntax:interface"
3033
+ },
3034
+ {
3035
+ "kind": "Content",
3036
+ "text": " "
3028
3037
  }
3029
3038
  ],
3030
- "fileUrlPath": "dist/types/compile/parser.d.ts",
3039
+ "fileUrlPath": "dist/types/compile/syntax/types.d.ts",
3031
3040
  "releaseTag": "Public",
3032
- "name": "Lexer",
3041
+ "name": "BuiltinSyntax",
3033
3042
  "preserveMemberOrder": false,
3034
3043
  "members": [
3035
3044
  {
3036
- "kind": "MethodSignature",
3037
- "canonicalReference": "@pacem/pacem-foundation!Compile.Lexer#tokenize:member(1)",
3038
- "docComment": "/**\n * Tokenizes the whole input string against a grammar.\n *\n * @param input - String to tokenize.\n *\n * @param grammar - Ordered list of rules; the first rule that matches at each position wins.\n *\n * @returns The resulting list of tokens.\n */\n",
3045
+ "kind": "PropertySignature",
3046
+ "canonicalReference": "@pacem/pacem-foundation!Compile.BuiltinSyntax#extends:member",
3047
+ "docComment": "",
3039
3048
  "excerptTokens": [
3040
3049
  {
3041
3050
  "kind": "Content",
3042
- "text": "tokenize(input: "
3043
- },
3044
- {
3045
- "kind": "Content",
3046
- "text": "string"
3047
- },
3048
- {
3049
- "kind": "Content",
3050
- "text": ", grammar: "
3051
+ "text": "extends?: "
3051
3052
  },
3052
3053
  {
3053
3054
  "kind": "Reference",
3054
- "text": "Rule",
3055
- "canonicalReference": "@pacem/pacem-foundation!Compile.Rule:interface"
3055
+ "text": "SyntaxName",
3056
+ "canonicalReference": "@pacem/pacem-foundation!Compile.SyntaxName:type"
3056
3057
  },
3057
3058
  {
3058
3059
  "kind": "Content",
3059
- "text": "[]"
3060
- },
3060
+ "text": ";"
3061
+ }
3062
+ ],
3063
+ "isReadonly": false,
3064
+ "isOptional": true,
3065
+ "releaseTag": "Public",
3066
+ "name": "extends",
3067
+ "propertyTypeTokenRange": {
3068
+ "startIndex": 1,
3069
+ "endIndex": 2
3070
+ }
3071
+ },
3072
+ {
3073
+ "kind": "PropertySignature",
3074
+ "canonicalReference": "@pacem/pacem-foundation!Compile.BuiltinSyntax#name:member",
3075
+ "docComment": "",
3076
+ "excerptTokens": [
3061
3077
  {
3062
3078
  "kind": "Content",
3063
- "text": "): "
3079
+ "text": "name: "
3064
3080
  },
3065
3081
  {
3066
3082
  "kind": "Reference",
3067
- "text": "Token",
3068
- "canonicalReference": "@pacem/pacem-foundation!Compile.Token:interface"
3069
- },
3070
- {
3071
- "kind": "Content",
3072
- "text": "[]"
3083
+ "text": "SyntaxName",
3084
+ "canonicalReference": "@pacem/pacem-foundation!Compile.SyntaxName:type"
3073
3085
  },
3074
3086
  {
3075
3087
  "kind": "Content",
3076
3088
  "text": ";"
3077
3089
  }
3078
3090
  ],
3091
+ "isReadonly": false,
3079
3092
  "isOptional": false,
3080
- "returnTypeTokenRange": {
3081
- "startIndex": 6,
3082
- "endIndex": 8
3083
- },
3084
3093
  "releaseTag": "Public",
3085
- "overloadIndex": 1,
3086
- "parameters": [
3087
- {
3088
- "parameterName": "input",
3089
- "parameterTypeTokenRange": {
3090
- "startIndex": 1,
3091
- "endIndex": 2
3092
- },
3093
- "isOptional": false
3094
- },
3095
- {
3096
- "parameterName": "grammar",
3097
- "parameterTypeTokenRange": {
3098
- "startIndex": 3,
3099
- "endIndex": 5
3100
- },
3101
- "isOptional": false
3102
- }
3103
- ],
3104
- "name": "tokenize"
3094
+ "name": "name",
3095
+ "propertyTypeTokenRange": {
3096
+ "startIndex": 1,
3097
+ "endIndex": 2
3098
+ }
3105
3099
  }
3106
3100
  ],
3107
- "extendsTokenRanges": []
3101
+ "extendsTokenRanges": [
3102
+ {
3103
+ "startIndex": 1,
3104
+ "endIndex": 2
3105
+ }
3106
+ ]
3108
3107
  },
3109
3108
  {
3110
- "kind": "Namespace",
3111
- "canonicalReference": "@pacem/pacem-foundation!Compile.Markdown:namespace",
3112
- "docComment": "",
3113
- "excerptTokens": [],
3114
- "fileUrlPath": "dist/types/index-compile.d.ts",
3115
- "releaseTag": "None",
3116
- "name": "Markdown",
3109
+ "kind": "Variable",
3110
+ "canonicalReference": "@pacem/pacem-foundation!Compile.CSharpSyntax:var",
3111
+ "docComment": "/**\n * C# vocabulary: XML doc comments (`doc-comment`), comments, preprocessor directives, strings (regular, verbatim, raw, interpolated with nested `{…}` expressions), chars, numbers (with suffixes), identifiers (`@verbatim` included), keywords (contextual ones included, not after `.`/`?.`), brackets, punctuation and operators.\n */\n",
3112
+ "excerptTokens": [
3113
+ {
3114
+ "kind": "Content",
3115
+ "text": "CSharpSyntax: "
3116
+ },
3117
+ {
3118
+ "kind": "Reference",
3119
+ "text": "BuiltinSyntax",
3120
+ "canonicalReference": "@pacem/pacem-foundation!Compile.BuiltinSyntax:interface"
3121
+ }
3122
+ ],
3123
+ "fileUrlPath": "dist/types/compile/syntax/vocabularies/csharp.d.ts",
3124
+ "isReadonly": true,
3125
+ "releaseTag": "Public",
3126
+ "name": "CSharpSyntax",
3127
+ "variableTypeTokenRange": {
3128
+ "startIndex": 1,
3129
+ "endIndex": 2
3130
+ }
3131
+ },
3132
+ {
3133
+ "kind": "Variable",
3134
+ "canonicalReference": "@pacem/pacem-foundation!Compile.CSyntax:var",
3135
+ "docComment": "/**\n * C/C++ vocabulary: comments (`/** … *\\/` and `///` as `doc-comment`), preprocessor directives (with their `<header>`), strings (raw `R\"x(…)x\"` and prefixed ones included), chars, numbers (with suffixes/separators), identifiers, keywords (C and C++), brackets, punctuation and operators.\n */\n",
3136
+ "excerptTokens": [
3137
+ {
3138
+ "kind": "Content",
3139
+ "text": "CSyntax: "
3140
+ },
3141
+ {
3142
+ "kind": "Reference",
3143
+ "text": "BuiltinSyntax",
3144
+ "canonicalReference": "@pacem/pacem-foundation!Compile.BuiltinSyntax:interface"
3145
+ }
3146
+ ],
3147
+ "fileUrlPath": "dist/types/compile/syntax/vocabularies/c.d.ts",
3148
+ "isReadonly": true,
3149
+ "releaseTag": "Public",
3150
+ "name": "CSyntax",
3151
+ "variableTypeTokenRange": {
3152
+ "startIndex": 1,
3153
+ "endIndex": 2
3154
+ }
3155
+ },
3156
+ {
3157
+ "kind": "Variable",
3158
+ "canonicalReference": "@pacem/pacem-foundation!Compile.DefaultHighlightClasses:var",
3159
+ "docComment": "/**\n * Default token type → CSS class mapping, matching the `code-*` classes styled by the theme (see `ui/markdown.css`).\n */\n",
3160
+ "excerptTokens": [
3161
+ {
3162
+ "kind": "Content",
3163
+ "text": "DefaultHighlightClasses: "
3164
+ },
3165
+ {
3166
+ "kind": "Reference",
3167
+ "text": "Readonly",
3168
+ "canonicalReference": "!Readonly:type"
3169
+ },
3170
+ {
3171
+ "kind": "Content",
3172
+ "text": "<"
3173
+ },
3174
+ {
3175
+ "kind": "Reference",
3176
+ "text": "Record",
3177
+ "canonicalReference": "!Record:type"
3178
+ },
3179
+ {
3180
+ "kind": "Content",
3181
+ "text": "<string, string>>"
3182
+ }
3183
+ ],
3184
+ "fileUrlPath": "dist/types/compile/syntax/highlight.d.ts",
3185
+ "isReadonly": true,
3186
+ "releaseTag": "Public",
3187
+ "name": "DefaultHighlightClasses",
3188
+ "variableTypeTokenRange": {
3189
+ "startIndex": 1,
3190
+ "endIndex": 5
3191
+ }
3192
+ },
3193
+ {
3194
+ "kind": "Class",
3195
+ "canonicalReference": "@pacem/pacem-foundation!Compile.HighlightRenderer:class",
3196
+ "docComment": "/**\n * Renders a token stream (typically produced by the {@link Scanner}) as HTML: every token's `raw` text is HTML-encoded and, when its type has a mapped class, wrapped in a `<span class=\"…\">`.\n */\n",
3197
+ "excerptTokens": [
3198
+ {
3199
+ "kind": "Content",
3200
+ "text": "export declare class HighlightRenderer implements "
3201
+ },
3202
+ {
3203
+ "kind": "Reference",
3204
+ "text": "Renderer",
3205
+ "canonicalReference": "@pacem/pacem-foundation!Compile.Renderer:interface"
3206
+ },
3207
+ {
3208
+ "kind": "Content",
3209
+ "text": " "
3210
+ }
3211
+ ],
3212
+ "fileUrlPath": "dist/types/compile/syntax/highlight.d.ts",
3213
+ "releaseTag": "Public",
3214
+ "isAbstract": false,
3215
+ "name": "HighlightRenderer",
3117
3216
  "preserveMemberOrder": false,
3118
3217
  "members": [
3119
3218
  {
3120
- "kind": "TypeAlias",
3121
- "canonicalReference": "@pacem/pacem-foundation!Compile.Markdown.ExtraRule:type",
3122
- "docComment": "/**\n * A custom grammar rule that extends the built-in Markdown grammar. Plain {@link Compile.Rule} values are treated as `inline` rules. Otherwise, `type` selects where the rule is plugged in: `'block'` (top-level block grammar), `'inline'` (inline/span grammar, recursively applied inside block content) or `'code'` (fenced-code-block grammar, scoped to a specific `lang`).\n */\n",
3219
+ "kind": "Constructor",
3220
+ "canonicalReference": "@pacem/pacem-foundation!Compile.HighlightRenderer:constructor(1)",
3221
+ "docComment": "/**\n * Constructs a new instance of the `HighlightRenderer` class\n *\n * @param _classes - Token type → CSS class mapping (defaults to {@link DefaultHighlightClasses}).\n */\n",
3123
3222
  "excerptTokens": [
3124
3223
  {
3125
3224
  "kind": "Content",
3126
- "text": "export declare type ExtraRule = "
3127
- },
3128
- {
3129
- "kind": "Content",
3130
- "text": "("
3131
- },
3132
- {
3133
- "kind": "Reference",
3134
- "text": "Compile.Rule",
3135
- "canonicalReference": "@pacem/pacem-foundation!Compile.Rule:interface"
3136
- },
3137
- {
3138
- "kind": "Content",
3139
- "text": " | {\n rule: "
3225
+ "text": "constructor(_classes?: "
3140
3226
  },
3141
3227
  {
3142
3228
  "kind": "Reference",
3143
- "text": "Compile.Rule",
3144
- "canonicalReference": "@pacem/pacem-foundation!Compile.Rule:interface"
3229
+ "text": "Readonly",
3230
+ "canonicalReference": "!Readonly:type"
3145
3231
  },
3146
3232
  {
3147
3233
  "kind": "Content",
3148
- "text": ";\n type: 'block' | 'inline';\n} | {\n rule: "
3234
+ "text": "<"
3149
3235
  },
3150
3236
  {
3151
3237
  "kind": "Reference",
3152
- "text": "Compile.Rule",
3153
- "canonicalReference": "@pacem/pacem-foundation!Compile.Rule:interface"
3238
+ "text": "Record",
3239
+ "canonicalReference": "!Record:type"
3154
3240
  },
3155
3241
  {
3156
3242
  "kind": "Content",
3157
- "text": ";\n type: 'code';\n lang: string;\n})"
3243
+ "text": "<string, string>>"
3158
3244
  },
3159
3245
  {
3160
3246
  "kind": "Content",
3161
- "text": ";"
3247
+ "text": ");"
3162
3248
  }
3163
3249
  ],
3164
- "fileUrlPath": "dist/types/compile/markdown/parser.d.ts",
3165
3250
  "releaseTag": "Public",
3166
- "name": "ExtraRule",
3167
- "typeTokenRange": {
3168
- "startIndex": 1,
3169
- "endIndex": 8
3170
- }
3251
+ "isProtected": false,
3252
+ "overloadIndex": 1,
3253
+ "parameters": [
3254
+ {
3255
+ "parameterName": "_classes",
3256
+ "parameterTypeTokenRange": {
3257
+ "startIndex": 1,
3258
+ "endIndex": 5
3259
+ },
3260
+ "isOptional": true
3261
+ }
3262
+ ]
3171
3263
  },
3172
3264
  {
3173
- "kind": "Class",
3174
- "canonicalReference": "@pacem/pacem-foundation!Compile.Markdown.Parser:class",
3175
- "docComment": "/**\n * Markdown parser: tokenizes Markdown source and renders it to HTML (or another format via a custom {@link Compile.Renderer}).\n */\n",
3265
+ "kind": "Method",
3266
+ "canonicalReference": "@pacem/pacem-foundation!Compile.HighlightRenderer#render:member(1)",
3267
+ "docComment": "",
3176
3268
  "excerptTokens": [
3177
3269
  {
3178
3270
  "kind": "Content",
3179
- "text": "export declare class Parser extends "
3271
+ "text": "render(tree: "
3180
3272
  },
3181
3273
  {
3182
3274
  "kind": "Reference",
3183
- "text": "Compile.Parser",
3184
- "canonicalReference": "@pacem/pacem-foundation!Compile.Parser:class"
3275
+ "text": "Token",
3276
+ "canonicalReference": "@pacem/pacem-foundation!Compile.Token:interface"
3185
3277
  },
3186
3278
  {
3187
3279
  "kind": "Content",
3188
- "text": " "
3280
+ "text": "[]"
3281
+ },
3282
+ {
3283
+ "kind": "Content",
3284
+ "text": "): "
3285
+ },
3286
+ {
3287
+ "kind": "Content",
3288
+ "text": "string"
3289
+ },
3290
+ {
3291
+ "kind": "Content",
3292
+ "text": ";"
3189
3293
  }
3190
3294
  ],
3191
- "fileUrlPath": "dist/types/compile/markdown/parser.d.ts",
3295
+ "isStatic": false,
3296
+ "returnTypeTokenRange": {
3297
+ "startIndex": 4,
3298
+ "endIndex": 5
3299
+ },
3192
3300
  "releaseTag": "Public",
3193
- "isAbstract": false,
3194
- "name": "Parser",
3195
- "preserveMemberOrder": false,
3196
- "members": [
3301
+ "isProtected": false,
3302
+ "overloadIndex": 1,
3303
+ "parameters": [
3197
3304
  {
3198
- "kind": "Method",
3199
- "canonicalReference": "@pacem/pacem-foundation!Compile.Markdown.Parser#parse:member(1)",
3200
- "docComment": "/**\n * Parses Markdown `input` and renders it to HTML using the built-in grammar.\n */\n",
3201
- "excerptTokens": [
3202
- {
3203
- "kind": "Content",
3204
- "text": "parse(input: "
3205
- },
3206
- {
3207
- "kind": "Content",
3208
- "text": "string"
3209
- },
3210
- {
3211
- "kind": "Content",
3212
- "text": "): "
3213
- },
3214
- {
3215
- "kind": "Content",
3216
- "text": "string"
3217
- },
3218
- {
3219
- "kind": "Content",
3220
- "text": ";"
3221
- }
3222
- ],
3223
- "isStatic": false,
3224
- "returnTypeTokenRange": {
3225
- "startIndex": 3,
3226
- "endIndex": 4
3305
+ "parameterName": "tree",
3306
+ "parameterTypeTokenRange": {
3307
+ "startIndex": 1,
3308
+ "endIndex": 3
3227
3309
  },
3228
- "releaseTag": "Public",
3229
- "isProtected": false,
3230
- "overloadIndex": 1,
3231
- "parameters": [
3232
- {
3233
- "parameterName": "input",
3234
- "parameterTypeTokenRange": {
3235
- "startIndex": 1,
3236
- "endIndex": 2
3237
- },
3238
- "isOptional": false
3239
- }
3240
- ],
3241
- "isOptional": false,
3242
- "isAbstract": false,
3243
- "name": "parse"
3310
+ "isOptional": false
3311
+ }
3312
+ ],
3313
+ "isOptional": false,
3314
+ "isAbstract": false,
3315
+ "name": "render"
3316
+ }
3317
+ ],
3318
+ "implementsTokenRanges": [
3319
+ {
3320
+ "startIndex": 1,
3321
+ "endIndex": 2
3322
+ }
3323
+ ]
3324
+ },
3325
+ {
3326
+ "kind": "Variable",
3327
+ "canonicalReference": "@pacem/pacem-foundation!Compile.JavaScriptSyntax:var",
3328
+ "docComment": "/**\n * JavaScript vocabulary, TypeScript superset: comments (JSDoc as `doc-comment`), strings, template literals with nested `${…}` expressions, regular expression literals (told from divisions by the previous significant token), numbers (hex/binary/octal/BigInt/separators), identifiers (`#private` included), keywords (JS + TS, not after `.`/`?.`), brackets, punctuation and operators.\n */\n",
3329
+ "excerptTokens": [
3330
+ {
3331
+ "kind": "Content",
3332
+ "text": "JavaScriptSyntax: "
3333
+ },
3334
+ {
3335
+ "kind": "Reference",
3336
+ "text": "BuiltinSyntax",
3337
+ "canonicalReference": "@pacem/pacem-foundation!Compile.BuiltinSyntax:interface"
3338
+ }
3339
+ ],
3340
+ "fileUrlPath": "dist/types/compile/syntax/vocabularies/javascript.d.ts",
3341
+ "isReadonly": true,
3342
+ "releaseTag": "Public",
3343
+ "name": "JavaScriptSyntax",
3344
+ "variableTypeTokenRange": {
3345
+ "startIndex": 1,
3346
+ "endIndex": 2
3347
+ }
3348
+ },
3349
+ {
3350
+ "kind": "Variable",
3351
+ "canonicalReference": "@pacem/pacem-foundation!Compile.JsonSyntax:var",
3352
+ "docComment": "/**\n * JSON vocabulary (JSONC and JSON5-ish tolerant: comments, single quotes and trailing commas are recognized): object keys are `attribute`s, values `string`/`number`/`keyword` (`true`, `false`, `null`).\n */\n",
3353
+ "excerptTokens": [
3354
+ {
3355
+ "kind": "Content",
3356
+ "text": "JsonSyntax: "
3357
+ },
3358
+ {
3359
+ "kind": "Reference",
3360
+ "text": "BuiltinSyntax",
3361
+ "canonicalReference": "@pacem/pacem-foundation!Compile.BuiltinSyntax:interface"
3362
+ }
3363
+ ],
3364
+ "fileUrlPath": "dist/types/compile/syntax/vocabularies/json.d.ts",
3365
+ "isReadonly": true,
3366
+ "releaseTag": "Public",
3367
+ "name": "JsonSyntax",
3368
+ "variableTypeTokenRange": {
3369
+ "startIndex": 1,
3370
+ "endIndex": 2
3371
+ }
3372
+ },
3373
+ {
3374
+ "kind": "Interface",
3375
+ "canonicalReference": "@pacem/pacem-foundation!Compile.Lexer:interface",
3376
+ "docComment": "/**\n * Turns raw input into a stream of {@link Token}s given a grammar (list of {@link Rule}s).\n */\n",
3377
+ "excerptTokens": [
3378
+ {
3379
+ "kind": "Content",
3380
+ "text": "export interface Lexer "
3381
+ }
3382
+ ],
3383
+ "fileUrlPath": "dist/types/compile/parser.d.ts",
3384
+ "releaseTag": "Public",
3385
+ "name": "Lexer",
3386
+ "preserveMemberOrder": false,
3387
+ "members": [
3388
+ {
3389
+ "kind": "MethodSignature",
3390
+ "canonicalReference": "@pacem/pacem-foundation!Compile.Lexer#tokenize:member(1)",
3391
+ "docComment": "/**\n * Tokenizes the whole input string against a grammar.\n *\n * @param input - String to tokenize.\n *\n * @param grammar - Ordered list of rules; the first rule that matches at each position wins.\n *\n * @returns The resulting list of tokens.\n */\n",
3392
+ "excerptTokens": [
3393
+ {
3394
+ "kind": "Content",
3395
+ "text": "tokenize(input: "
3244
3396
  },
3245
3397
  {
3246
- "kind": "Method",
3247
- "canonicalReference": "@pacem/pacem-foundation!Compile.Markdown.Parser#parse:member(2)",
3248
- "docComment": "/**\n * Parses Markdown `input` using the built-in grammar and renders it with a custom `renderer`.\n */\n",
3249
- "excerptTokens": [
3250
- {
3251
- "kind": "Content",
3252
- "text": "parse(input: "
3253
- },
3254
- {
3255
- "kind": "Content",
3256
- "text": "string"
3257
- },
3258
- {
3259
- "kind": "Content",
3260
- "text": ", renderer: "
3261
- },
3262
- {
3263
- "kind": "Reference",
3264
- "text": "Compile.Renderer",
3265
- "canonicalReference": "@pacem/pacem-foundation!Compile.Renderer:interface"
3266
- },
3267
- {
3268
- "kind": "Content",
3269
- "text": "): "
3270
- },
3271
- {
3272
- "kind": "Content",
3273
- "text": "string"
3274
- },
3275
- {
3276
- "kind": "Content",
3277
- "text": ";"
3278
- }
3279
- ],
3280
- "isStatic": false,
3281
- "returnTypeTokenRange": {
3282
- "startIndex": 5,
3283
- "endIndex": 6
3284
- },
3285
- "releaseTag": "Public",
3286
- "isProtected": false,
3287
- "overloadIndex": 2,
3288
- "parameters": [
3289
- {
3290
- "parameterName": "input",
3291
- "parameterTypeTokenRange": {
3292
- "startIndex": 1,
3293
- "endIndex": 2
3294
- },
3295
- "isOptional": false
3296
- },
3297
- {
3298
- "parameterName": "renderer",
3299
- "parameterTypeTokenRange": {
3300
- "startIndex": 3,
3301
- "endIndex": 4
3302
- },
3303
- "isOptional": false
3304
- }
3305
- ],
3306
- "isOptional": false,
3307
- "isAbstract": false,
3308
- "name": "parse"
3398
+ "kind": "Content",
3399
+ "text": "string"
3309
3400
  },
3310
3401
  {
3311
- "kind": "Method",
3312
- "canonicalReference": "@pacem/pacem-foundation!Compile.Markdown.Parser#parse:member(3)",
3313
- "docComment": "/**\n * Parses Markdown `input` using a custom `grammar` and renders it to HTML.\n */\n",
3314
- "excerptTokens": [
3315
- {
3316
- "kind": "Content",
3317
- "text": "parse(input: "
3318
- },
3319
- {
3320
- "kind": "Content",
3321
- "text": "string"
3322
- },
3323
- {
3324
- "kind": "Content",
3325
- "text": ", grammar: "
3326
- },
3327
- {
3328
- "kind": "Reference",
3329
- "text": "Compile.Rule",
3330
- "canonicalReference": "@pacem/pacem-foundation!Compile.Rule:interface"
3331
- },
3332
- {
3333
- "kind": "Content",
3334
- "text": "[]"
3335
- },
3336
- {
3337
- "kind": "Content",
3338
- "text": "): "
3339
- },
3340
- {
3341
- "kind": "Content",
3342
- "text": "string"
3343
- },
3344
- {
3345
- "kind": "Content",
3346
- "text": ";"
3347
- }
3348
- ],
3349
- "isStatic": false,
3350
- "returnTypeTokenRange": {
3351
- "startIndex": 6,
3352
- "endIndex": 7
3353
- },
3354
- "releaseTag": "Public",
3355
- "isProtected": false,
3356
- "overloadIndex": 3,
3357
- "parameters": [
3358
- {
3359
- "parameterName": "input",
3360
- "parameterTypeTokenRange": {
3361
- "startIndex": 1,
3362
- "endIndex": 2
3363
- },
3364
- "isOptional": false
3365
- },
3366
- {
3367
- "parameterName": "grammar",
3368
- "parameterTypeTokenRange": {
3369
- "startIndex": 3,
3370
- "endIndex": 5
3371
- },
3372
- "isOptional": false
3373
- }
3374
- ],
3375
- "isOptional": false,
3376
- "isAbstract": false,
3377
- "name": "parse"
3402
+ "kind": "Content",
3403
+ "text": ", grammar: "
3378
3404
  },
3379
3405
  {
3380
- "kind": "Method",
3381
- "canonicalReference": "@pacem/pacem-foundation!Compile.Markdown.Parser#parse:member(4)",
3382
- "docComment": "/**\n * Parses Markdown `input` using a custom `grammar` and a custom `renderer`.\n */\n",
3383
- "excerptTokens": [
3384
- {
3385
- "kind": "Content",
3386
- "text": "parse(input: "
3387
- },
3388
- {
3389
- "kind": "Content",
3390
- "text": "string"
3391
- },
3392
- {
3393
- "kind": "Content",
3394
- "text": ", grammar: "
3395
- },
3396
- {
3397
- "kind": "Reference",
3398
- "text": "Compile.Rule",
3399
- "canonicalReference": "@pacem/pacem-foundation!Compile.Rule:interface"
3400
- },
3401
- {
3402
- "kind": "Content",
3403
- "text": "[]"
3404
- },
3405
- {
3406
- "kind": "Content",
3407
- "text": ", renderer: "
3408
- },
3409
- {
3410
- "kind": "Reference",
3411
- "text": "Compile.Renderer",
3412
- "canonicalReference": "@pacem/pacem-foundation!Compile.Renderer:interface"
3413
- },
3414
- {
3415
- "kind": "Content",
3416
- "text": "): "
3417
- },
3418
- {
3419
- "kind": "Content",
3420
- "text": "string"
3421
- },
3422
- {
3423
- "kind": "Content",
3424
- "text": ";"
3425
- }
3426
- ],
3427
- "isStatic": false,
3428
- "returnTypeTokenRange": {
3429
- "startIndex": 8,
3430
- "endIndex": 9
3406
+ "kind": "Reference",
3407
+ "text": "Rule",
3408
+ "canonicalReference": "@pacem/pacem-foundation!Compile.Rule:interface"
3409
+ },
3410
+ {
3411
+ "kind": "Content",
3412
+ "text": "[]"
3413
+ },
3414
+ {
3415
+ "kind": "Content",
3416
+ "text": "): "
3417
+ },
3418
+ {
3419
+ "kind": "Reference",
3420
+ "text": "Token",
3421
+ "canonicalReference": "@pacem/pacem-foundation!Compile.Token:interface"
3422
+ },
3423
+ {
3424
+ "kind": "Content",
3425
+ "text": "[]"
3426
+ },
3427
+ {
3428
+ "kind": "Content",
3429
+ "text": ";"
3430
+ }
3431
+ ],
3432
+ "isOptional": false,
3433
+ "returnTypeTokenRange": {
3434
+ "startIndex": 6,
3435
+ "endIndex": 8
3436
+ },
3437
+ "releaseTag": "Public",
3438
+ "overloadIndex": 1,
3439
+ "parameters": [
3440
+ {
3441
+ "parameterName": "input",
3442
+ "parameterTypeTokenRange": {
3443
+ "startIndex": 1,
3444
+ "endIndex": 2
3431
3445
  },
3432
- "releaseTag": "Public",
3433
- "isProtected": false,
3434
- "overloadIndex": 4,
3435
- "parameters": [
3436
- {
3437
- "parameterName": "input",
3438
- "parameterTypeTokenRange": {
3439
- "startIndex": 1,
3440
- "endIndex": 2
3441
- },
3442
- "isOptional": false
3443
- },
3444
- {
3445
- "parameterName": "grammar",
3446
- "parameterTypeTokenRange": {
3447
- "startIndex": 3,
3448
- "endIndex": 5
3449
- },
3450
- "isOptional": false
3451
- },
3452
- {
3453
- "parameterName": "renderer",
3454
- "parameterTypeTokenRange": {
3455
- "startIndex": 6,
3456
- "endIndex": 7
3457
- },
3458
- "isOptional": false
3459
- }
3460
- ],
3461
- "isOptional": false,
3462
- "isAbstract": false,
3463
- "name": "parse"
3446
+ "isOptional": false
3464
3447
  },
3465
3448
  {
3466
- "kind": "Method",
3467
- "canonicalReference": "@pacem/pacem-foundation!Compile.Markdown.Parser#toHtml:member(1)",
3468
- "docComment": "/**\n * Parses Markdown `input` and renders it to an HTML string.\n *\n * @param input - Markdown source.\n *\n * @param extraGrammar - Additional grammar rules to extend the built-in Markdown syntax.\n *\n * @param extraItemRenderer - Fallback renderer invoked for token types not natively handled (e.g. tokens produced by `extraGrammar`); defaults to returning the token's `text`.\n *\n * @returns The rendered HTML string.\n */\n",
3469
- "excerptTokens": [
3470
- {
3471
- "kind": "Content",
3472
- "text": "toHtml(input: "
3473
- },
3474
- {
3475
- "kind": "Content",
3476
- "text": "string"
3477
- },
3478
- {
3479
- "kind": "Content",
3480
- "text": ", extraGrammar?: "
3481
- },
3482
- {
3483
- "kind": "Reference",
3484
- "text": "ExtraRule",
3485
- "canonicalReference": "@pacem/pacem-foundation!Compile.Markdown.ExtraRule:type"
3486
- },
3487
- {
3488
- "kind": "Content",
3489
- "text": "[]"
3490
- },
3491
- {
3492
- "kind": "Content",
3493
- "text": ", extraItemRenderer?: "
3494
- },
3495
- {
3496
- "kind": "Content",
3497
- "text": "(token: "
3498
- },
3499
- {
3500
- "kind": "Reference",
3501
- "text": "Compile.Token",
3502
- "canonicalReference": "@pacem/pacem-foundation!Compile.Token:interface"
3503
- },
3504
- {
3505
- "kind": "Content",
3506
- "text": ", allTokens: "
3507
- },
3508
- {
3509
- "kind": "Reference",
3510
- "text": "Compile.Token",
3511
- "canonicalReference": "@pacem/pacem-foundation!Compile.Token:interface"
3512
- },
3513
- {
3514
- "kind": "Content",
3515
- "text": "[]) => string"
3516
- },
3517
- {
3518
- "kind": "Content",
3519
- "text": "): "
3520
- },
3521
- {
3522
- "kind": "Content",
3523
- "text": "string"
3524
- },
3525
- {
3526
- "kind": "Content",
3527
- "text": ";"
3528
- }
3529
- ],
3530
- "isStatic": false,
3531
- "returnTypeTokenRange": {
3532
- "startIndex": 12,
3533
- "endIndex": 13
3449
+ "parameterName": "grammar",
3450
+ "parameterTypeTokenRange": {
3451
+ "startIndex": 3,
3452
+ "endIndex": 5
3534
3453
  },
3535
- "releaseTag": "Public",
3536
- "isProtected": false,
3537
- "overloadIndex": 1,
3538
- "parameters": [
3539
- {
3540
- "parameterName": "input",
3541
- "parameterTypeTokenRange": {
3542
- "startIndex": 1,
3543
- "endIndex": 2
3544
- },
3545
- "isOptional": false
3546
- },
3547
- {
3548
- "parameterName": "extraGrammar",
3549
- "parameterTypeTokenRange": {
3550
- "startIndex": 3,
3551
- "endIndex": 5
3552
- },
3553
- "isOptional": true
3554
- },
3555
- {
3556
- "parameterName": "extraItemRenderer",
3557
- "parameterTypeTokenRange": {
3558
- "startIndex": 6,
3559
- "endIndex": 11
3560
- },
3561
- "isOptional": true
3562
- }
3563
- ],
3564
- "isOptional": false,
3565
- "isAbstract": false,
3566
- "name": "toHtml"
3454
+ "isOptional": false
3455
+ }
3456
+ ],
3457
+ "name": "tokenize"
3458
+ }
3459
+ ],
3460
+ "extendsTokenRanges": []
3461
+ },
3462
+ {
3463
+ "kind": "Interface",
3464
+ "canonicalReference": "@pacem/pacem-foundation!Compile.LexicalCondition:interface",
3465
+ "docComment": "/**\n * Predicate on the previous significant token, e.g. to tell a JavaScript regular expression literal from a division.\n */\n",
3466
+ "excerptTokens": [
3467
+ {
3468
+ "kind": "Content",
3469
+ "text": "export interface LexicalCondition "
3470
+ }
3471
+ ],
3472
+ "fileUrlPath": "dist/types/compile/syntax/types.d.ts",
3473
+ "releaseTag": "Public",
3474
+ "name": "LexicalCondition",
3475
+ "preserveMemberOrder": false,
3476
+ "members": [
3477
+ {
3478
+ "kind": "PropertySignature",
3479
+ "canonicalReference": "@pacem/pacem-foundation!Compile.LexicalCondition#previousNotTexts:member",
3480
+ "docComment": "/**\n * The previous token's raw text must not be any of these.\n */\n",
3481
+ "excerptTokens": [
3482
+ {
3483
+ "kind": "Content",
3484
+ "text": "previousNotTexts?: "
3485
+ },
3486
+ {
3487
+ "kind": "Content",
3488
+ "text": "string[]"
3489
+ },
3490
+ {
3491
+ "kind": "Content",
3492
+ "text": ";"
3493
+ }
3494
+ ],
3495
+ "isReadonly": false,
3496
+ "isOptional": true,
3497
+ "releaseTag": "Public",
3498
+ "name": "previousNotTexts",
3499
+ "propertyTypeTokenRange": {
3500
+ "startIndex": 1,
3501
+ "endIndex": 2
3502
+ }
3503
+ },
3504
+ {
3505
+ "kind": "PropertySignature",
3506
+ "canonicalReference": "@pacem/pacem-foundation!Compile.LexicalCondition#previousNotTypes:member",
3507
+ "docComment": "/**\n * The previous token must not have any of these types.\n */\n",
3508
+ "excerptTokens": [
3509
+ {
3510
+ "kind": "Content",
3511
+ "text": "previousNotTypes?: "
3512
+ },
3513
+ {
3514
+ "kind": "Content",
3515
+ "text": "string[]"
3516
+ },
3517
+ {
3518
+ "kind": "Content",
3519
+ "text": ";"
3520
+ }
3521
+ ],
3522
+ "isReadonly": false,
3523
+ "isOptional": true,
3524
+ "releaseTag": "Public",
3525
+ "name": "previousNotTypes",
3526
+ "propertyTypeTokenRange": {
3527
+ "startIndex": 1,
3528
+ "endIndex": 2
3529
+ }
3530
+ },
3531
+ {
3532
+ "kind": "PropertySignature",
3533
+ "canonicalReference": "@pacem/pacem-foundation!Compile.LexicalCondition#previousTexts:member",
3534
+ "docComment": "/**\n * The previous token's raw text must be one of these.\n */\n",
3535
+ "excerptTokens": [
3536
+ {
3537
+ "kind": "Content",
3538
+ "text": "previousTexts?: "
3539
+ },
3540
+ {
3541
+ "kind": "Content",
3542
+ "text": "string[]"
3543
+ },
3544
+ {
3545
+ "kind": "Content",
3546
+ "text": ";"
3547
+ }
3548
+ ],
3549
+ "isReadonly": false,
3550
+ "isOptional": true,
3551
+ "releaseTag": "Public",
3552
+ "name": "previousTexts",
3553
+ "propertyTypeTokenRange": {
3554
+ "startIndex": 1,
3555
+ "endIndex": 2
3556
+ }
3557
+ },
3558
+ {
3559
+ "kind": "PropertySignature",
3560
+ "canonicalReference": "@pacem/pacem-foundation!Compile.LexicalCondition#previousTypes:member",
3561
+ "docComment": "/**\n * The previous token must have one of these types.\n */\n",
3562
+ "excerptTokens": [
3563
+ {
3564
+ "kind": "Content",
3565
+ "text": "previousTypes?: "
3566
+ },
3567
+ {
3568
+ "kind": "Content",
3569
+ "text": "string[]"
3570
+ },
3571
+ {
3572
+ "kind": "Content",
3573
+ "text": ";"
3574
+ }
3575
+ ],
3576
+ "isReadonly": false,
3577
+ "isOptional": true,
3578
+ "releaseTag": "Public",
3579
+ "name": "previousTypes",
3580
+ "propertyTypeTokenRange": {
3581
+ "startIndex": 1,
3582
+ "endIndex": 2
3583
+ }
3584
+ }
3585
+ ],
3586
+ "extendsTokenRanges": []
3587
+ },
3588
+ {
3589
+ "kind": "Interface",
3590
+ "canonicalReference": "@pacem/pacem-foundation!Compile.LexicalIncludeRule:interface",
3591
+ "docComment": "/**\n * Includes (at compile time) the rules of another state of the same syntax, in place.\n */\n",
3592
+ "excerptTokens": [
3593
+ {
3594
+ "kind": "Content",
3595
+ "text": "export interface LexicalIncludeRule "
3596
+ }
3597
+ ],
3598
+ "fileUrlPath": "dist/types/compile/syntax/types.d.ts",
3599
+ "releaseTag": "Public",
3600
+ "name": "LexicalIncludeRule",
3601
+ "preserveMemberOrder": false,
3602
+ "members": [
3603
+ {
3604
+ "kind": "PropertySignature",
3605
+ "canonicalReference": "@pacem/pacem-foundation!Compile.LexicalIncludeRule#include:member",
3606
+ "docComment": "",
3607
+ "excerptTokens": [
3608
+ {
3609
+ "kind": "Content",
3610
+ "text": "include: "
3611
+ },
3612
+ {
3613
+ "kind": "Content",
3614
+ "text": "string"
3615
+ },
3616
+ {
3617
+ "kind": "Content",
3618
+ "text": ";"
3619
+ }
3620
+ ],
3621
+ "isReadonly": false,
3622
+ "isOptional": false,
3623
+ "releaseTag": "Public",
3624
+ "name": "include",
3625
+ "propertyTypeTokenRange": {
3626
+ "startIndex": 1,
3627
+ "endIndex": 2
3628
+ }
3629
+ }
3630
+ ],
3631
+ "extendsTokenRanges": []
3632
+ },
3633
+ {
3634
+ "kind": "Interface",
3635
+ "canonicalReference": "@pacem/pacem-foundation!Compile.LexicalMatchRule:interface",
3636
+ "docComment": "/**\n * A lexical rule of a {@link Syntax} state: a regular expression (source string, compiled *sticky*) recognizing a token at the current position, plus the state transitions to apply once matched. Transitions are applied in this order: `pop`, `next`, `push`, `embed`.\n */\n",
3637
+ "excerptTokens": [
3638
+ {
3639
+ "kind": "Content",
3640
+ "text": "export interface LexicalMatchRule "
3641
+ }
3642
+ ],
3643
+ "fileUrlPath": "dist/types/compile/syntax/types.d.ts",
3644
+ "releaseTag": "Public",
3645
+ "name": "LexicalMatchRule",
3646
+ "preserveMemberOrder": false,
3647
+ "members": [
3648
+ {
3649
+ "kind": "PropertySignature",
3650
+ "canonicalReference": "@pacem/pacem-foundation!Compile.LexicalMatchRule#embed:member",
3651
+ "docComment": "/**\n * Pushes the start state of another (registered) syntax.\n */\n",
3652
+ "excerptTokens": [
3653
+ {
3654
+ "kind": "Content",
3655
+ "text": "embed?: "
3656
+ },
3657
+ {
3658
+ "kind": "Reference",
3659
+ "text": "SyntaxNameOrAlias",
3660
+ "canonicalReference": "@pacem/pacem-foundation!Compile.SyntaxNameOrAlias:type"
3661
+ },
3662
+ {
3663
+ "kind": "Content",
3664
+ "text": ";"
3665
+ }
3666
+ ],
3667
+ "isReadonly": false,
3668
+ "isOptional": true,
3669
+ "releaseTag": "Public",
3670
+ "name": "embed",
3671
+ "propertyTypeTokenRange": {
3672
+ "startIndex": 1,
3673
+ "endIndex": 2
3674
+ }
3675
+ },
3676
+ {
3677
+ "kind": "PropertySignature",
3678
+ "canonicalReference": "@pacem/pacem-foundation!Compile.LexicalMatchRule#flags:member",
3679
+ "docComment": "/**\n * Extra regular expression flags (e.g. `'i'`); the sticky flag is implied.\n */\n",
3680
+ "excerptTokens": [
3681
+ {
3682
+ "kind": "Content",
3683
+ "text": "flags?: "
3684
+ },
3685
+ {
3686
+ "kind": "Content",
3687
+ "text": "string"
3688
+ },
3689
+ {
3690
+ "kind": "Content",
3691
+ "text": ";"
3692
+ }
3693
+ ],
3694
+ "isReadonly": false,
3695
+ "isOptional": true,
3696
+ "releaseTag": "Public",
3697
+ "name": "flags",
3698
+ "propertyTypeTokenRange": {
3699
+ "startIndex": 1,
3700
+ "endIndex": 2
3701
+ }
3702
+ },
3703
+ {
3704
+ "kind": "PropertySignature",
3705
+ "canonicalReference": "@pacem/pacem-foundation!Compile.LexicalMatchRule#match:member",
3706
+ "docComment": "/**\n * Regular expression source (no delimiters), matched at the current position.\n */\n",
3707
+ "excerptTokens": [
3708
+ {
3709
+ "kind": "Content",
3710
+ "text": "match: "
3711
+ },
3712
+ {
3713
+ "kind": "Content",
3714
+ "text": "string"
3715
+ },
3716
+ {
3717
+ "kind": "Content",
3718
+ "text": ";"
3719
+ }
3720
+ ],
3721
+ "isReadonly": false,
3722
+ "isOptional": false,
3723
+ "releaseTag": "Public",
3724
+ "name": "match",
3725
+ "propertyTypeTokenRange": {
3726
+ "startIndex": 1,
3727
+ "endIndex": 2
3728
+ }
3729
+ },
3730
+ {
3731
+ "kind": "PropertySignature",
3732
+ "canonicalReference": "@pacem/pacem-foundation!Compile.LexicalMatchRule#next:member",
3733
+ "docComment": "/**\n * Replaces the current state.\n */\n",
3734
+ "excerptTokens": [
3735
+ {
3736
+ "kind": "Content",
3737
+ "text": "next?: "
3738
+ },
3739
+ {
3740
+ "kind": "Content",
3741
+ "text": "string"
3742
+ },
3743
+ {
3744
+ "kind": "Content",
3745
+ "text": ";"
3746
+ }
3747
+ ],
3748
+ "isReadonly": false,
3749
+ "isOptional": true,
3750
+ "releaseTag": "Public",
3751
+ "name": "next",
3752
+ "propertyTypeTokenRange": {
3753
+ "startIndex": 1,
3754
+ "endIndex": 2
3755
+ }
3756
+ },
3757
+ {
3758
+ "kind": "PropertySignature",
3759
+ "canonicalReference": "@pacem/pacem-foundation!Compile.LexicalMatchRule#pop:member",
3760
+ "docComment": "/**\n * Pops the current state (`true` = 1, or the number of states to pop).\n */\n",
3761
+ "excerptTokens": [
3762
+ {
3763
+ "kind": "Content",
3764
+ "text": "pop?: "
3765
+ },
3766
+ {
3767
+ "kind": "Content",
3768
+ "text": "boolean | number"
3769
+ },
3770
+ {
3771
+ "kind": "Content",
3772
+ "text": ";"
3773
+ }
3774
+ ],
3775
+ "isReadonly": false,
3776
+ "isOptional": true,
3777
+ "releaseTag": "Public",
3778
+ "name": "pop",
3779
+ "propertyTypeTokenRange": {
3780
+ "startIndex": 1,
3781
+ "endIndex": 2
3782
+ }
3783
+ },
3784
+ {
3785
+ "kind": "PropertySignature",
3786
+ "canonicalReference": "@pacem/pacem-foundation!Compile.LexicalMatchRule#push:member",
3787
+ "docComment": "/**\n * Pushes a state of the same syntax.\n */\n",
3788
+ "excerptTokens": [
3789
+ {
3790
+ "kind": "Content",
3791
+ "text": "push?: "
3792
+ },
3793
+ {
3794
+ "kind": "Content",
3795
+ "text": "string"
3796
+ },
3797
+ {
3798
+ "kind": "Content",
3799
+ "text": ";"
3800
+ }
3801
+ ],
3802
+ "isReadonly": false,
3803
+ "isOptional": true,
3804
+ "releaseTag": "Public",
3805
+ "name": "push",
3806
+ "propertyTypeTokenRange": {
3807
+ "startIndex": 1,
3808
+ "endIndex": 2
3809
+ }
3810
+ },
3811
+ {
3812
+ "kind": "PropertySignature",
3813
+ "canonicalReference": "@pacem/pacem-foundation!Compile.LexicalMatchRule#type:member",
3814
+ "docComment": "/**\n * Type of the produced token or, when an array, one type per capture group (groups are expected to cover the whole match: uncovered characters become `text` tokens).\n */\n",
3815
+ "excerptTokens": [
3816
+ {
3817
+ "kind": "Content",
3818
+ "text": "type: "
3819
+ },
3820
+ {
3821
+ "kind": "Content",
3822
+ "text": "string | string[]"
3823
+ },
3824
+ {
3825
+ "kind": "Content",
3826
+ "text": ";"
3827
+ }
3828
+ ],
3829
+ "isReadonly": false,
3830
+ "isOptional": false,
3831
+ "releaseTag": "Public",
3832
+ "name": "type",
3833
+ "propertyTypeTokenRange": {
3834
+ "startIndex": 1,
3835
+ "endIndex": 2
3836
+ }
3837
+ },
3838
+ {
3839
+ "kind": "PropertySignature",
3840
+ "canonicalReference": "@pacem/pacem-foundation!Compile.LexicalMatchRule#until:member",
3841
+ "docComment": "/**\n * With `embed`: regular expression source that, as soon as it matches, pops the embedded syntax (without consuming input).\n */\n",
3842
+ "excerptTokens": [
3843
+ {
3844
+ "kind": "Content",
3845
+ "text": "until?: "
3846
+ },
3847
+ {
3848
+ "kind": "Content",
3849
+ "text": "string"
3850
+ },
3851
+ {
3852
+ "kind": "Content",
3853
+ "text": ";"
3854
+ }
3855
+ ],
3856
+ "isReadonly": false,
3857
+ "isOptional": true,
3858
+ "releaseTag": "Public",
3859
+ "name": "until",
3860
+ "propertyTypeTokenRange": {
3861
+ "startIndex": 1,
3862
+ "endIndex": 2
3863
+ }
3864
+ },
3865
+ {
3866
+ "kind": "PropertySignature",
3867
+ "canonicalReference": "@pacem/pacem-foundation!Compile.LexicalMatchRule#when:member",
3868
+ "docComment": "/**\n * Condition on the previous *significant* token (see {@link LexicalSyntax.insignificant}) for the rule to apply.\n */\n",
3869
+ "excerptTokens": [
3870
+ {
3871
+ "kind": "Content",
3872
+ "text": "when?: "
3873
+ },
3874
+ {
3875
+ "kind": "Reference",
3876
+ "text": "LexicalCondition",
3877
+ "canonicalReference": "@pacem/pacem-foundation!Compile.LexicalCondition:interface"
3878
+ },
3879
+ {
3880
+ "kind": "Content",
3881
+ "text": ";"
3882
+ }
3883
+ ],
3884
+ "isReadonly": false,
3885
+ "isOptional": true,
3886
+ "releaseTag": "Public",
3887
+ "name": "when",
3888
+ "propertyTypeTokenRange": {
3889
+ "startIndex": 1,
3890
+ "endIndex": 2
3891
+ }
3892
+ }
3893
+ ],
3894
+ "extendsTokenRanges": []
3895
+ },
3896
+ {
3897
+ "kind": "TypeAlias",
3898
+ "canonicalReference": "@pacem/pacem-foundation!Compile.LexicalRule:type",
3899
+ "docComment": "/**\n * A rule of a {@link LexicalSyntax} state.\n */\n",
3900
+ "excerptTokens": [
3901
+ {
3902
+ "kind": "Content",
3903
+ "text": "export declare type LexicalRule = "
3904
+ },
3905
+ {
3906
+ "kind": "Reference",
3907
+ "text": "LexicalMatchRule",
3908
+ "canonicalReference": "@pacem/pacem-foundation!Compile.LexicalMatchRule:interface"
3909
+ },
3910
+ {
3911
+ "kind": "Content",
3912
+ "text": " | "
3913
+ },
3914
+ {
3915
+ "kind": "Reference",
3916
+ "text": "LexicalIncludeRule",
3917
+ "canonicalReference": "@pacem/pacem-foundation!Compile.LexicalIncludeRule:interface"
3918
+ },
3919
+ {
3920
+ "kind": "Content",
3921
+ "text": ";"
3922
+ }
3923
+ ],
3924
+ "fileUrlPath": "dist/types/compile/syntax/types.d.ts",
3925
+ "releaseTag": "Public",
3926
+ "name": "LexicalRule",
3927
+ "typeTokenRange": {
3928
+ "startIndex": 1,
3929
+ "endIndex": 4
3930
+ }
3931
+ },
3932
+ {
3933
+ "kind": "Interface",
3934
+ "canonicalReference": "@pacem/pacem-foundation!Compile.LexicalSyntax:interface",
3935
+ "docComment": "/**\n * Lexical part of a {@link Syntax}: a state machine of ordered rules, Monarch/TextMate-like.\n */\n",
3936
+ "excerptTokens": [
3937
+ {
3938
+ "kind": "Content",
3939
+ "text": "export interface LexicalSyntax "
3940
+ }
3941
+ ],
3942
+ "fileUrlPath": "dist/types/compile/syntax/types.d.ts",
3943
+ "releaseTag": "Public",
3944
+ "name": "LexicalSyntax",
3945
+ "preserveMemberOrder": false,
3946
+ "members": [
3947
+ {
3948
+ "kind": "PropertySignature",
3949
+ "canonicalReference": "@pacem/pacem-foundation!Compile.LexicalSyntax#insignificant:member",
3950
+ "docComment": "/**\n * Token types ignored when evaluating {@link LexicalCondition}s (defaults to spaces, newlines and comments).\n */\n",
3951
+ "excerptTokens": [
3952
+ {
3953
+ "kind": "Content",
3954
+ "text": "insignificant?: "
3955
+ },
3956
+ {
3957
+ "kind": "Content",
3958
+ "text": "string[]"
3959
+ },
3960
+ {
3961
+ "kind": "Content",
3962
+ "text": ";"
3963
+ }
3964
+ ],
3965
+ "isReadonly": false,
3966
+ "isOptional": true,
3967
+ "releaseTag": "Public",
3968
+ "name": "insignificant",
3969
+ "propertyTypeTokenRange": {
3970
+ "startIndex": 1,
3971
+ "endIndex": 2
3972
+ }
3973
+ },
3974
+ {
3975
+ "kind": "PropertySignature",
3976
+ "canonicalReference": "@pacem/pacem-foundation!Compile.LexicalSyntax#keywordExceptAfter:member",
3977
+ "docComment": "/**\n * Previous significant token texts preventing the keyword lookup (e.g. `'.'`, so that `obj.type` stays an identifier).\n */\n",
3978
+ "excerptTokens": [
3979
+ {
3980
+ "kind": "Content",
3981
+ "text": "keywordExceptAfter?: "
3982
+ },
3983
+ {
3984
+ "kind": "Content",
3985
+ "text": "string[]"
3986
+ },
3987
+ {
3988
+ "kind": "Content",
3989
+ "text": ";"
3990
+ }
3991
+ ],
3992
+ "isReadonly": false,
3993
+ "isOptional": true,
3994
+ "releaseTag": "Public",
3995
+ "name": "keywordExceptAfter",
3996
+ "propertyTypeTokenRange": {
3997
+ "startIndex": 1,
3998
+ "endIndex": 2
3999
+ }
4000
+ },
4001
+ {
4002
+ "kind": "PropertySignature",
4003
+ "canonicalReference": "@pacem/pacem-foundation!Compile.LexicalSyntax#keywords:member",
4004
+ "docComment": "/**\n * Keyword lists, by token type: tokens of a {@link keywordSources} type whose text is listed get that type instead.\n */\n",
4005
+ "excerptTokens": [
4006
+ {
4007
+ "kind": "Content",
4008
+ "text": "keywords?: "
4009
+ },
4010
+ {
4011
+ "kind": "Reference",
4012
+ "text": "Record",
4013
+ "canonicalReference": "!Record:type"
4014
+ },
4015
+ {
4016
+ "kind": "Content",
4017
+ "text": "<string, string[]>"
4018
+ },
4019
+ {
4020
+ "kind": "Content",
4021
+ "text": ";"
4022
+ }
4023
+ ],
4024
+ "isReadonly": false,
4025
+ "isOptional": true,
4026
+ "releaseTag": "Public",
4027
+ "name": "keywords",
4028
+ "propertyTypeTokenRange": {
4029
+ "startIndex": 1,
4030
+ "endIndex": 3
4031
+ }
4032
+ },
4033
+ {
4034
+ "kind": "PropertySignature",
4035
+ "canonicalReference": "@pacem/pacem-foundation!Compile.LexicalSyntax#keywordSources:member",
4036
+ "docComment": "/**\n * Token types keywords are looked up for (defaults to `['identifier']`).\n */\n",
4037
+ "excerptTokens": [
4038
+ {
4039
+ "kind": "Content",
4040
+ "text": "keywordSources?: "
4041
+ },
4042
+ {
4043
+ "kind": "Content",
4044
+ "text": "string[]"
4045
+ },
4046
+ {
4047
+ "kind": "Content",
4048
+ "text": ";"
4049
+ }
4050
+ ],
4051
+ "isReadonly": false,
4052
+ "isOptional": true,
4053
+ "releaseTag": "Public",
4054
+ "name": "keywordSources",
4055
+ "propertyTypeTokenRange": {
4056
+ "startIndex": 1,
4057
+ "endIndex": 2
4058
+ }
4059
+ },
4060
+ {
4061
+ "kind": "PropertySignature",
4062
+ "canonicalReference": "@pacem/pacem-foundation!Compile.LexicalSyntax#start:member",
4063
+ "docComment": "/**\n * Initial state (defaults to `'root'`).\n */\n",
4064
+ "excerptTokens": [
4065
+ {
4066
+ "kind": "Content",
4067
+ "text": "start?: "
4068
+ },
4069
+ {
4070
+ "kind": "Content",
4071
+ "text": "string"
4072
+ },
4073
+ {
4074
+ "kind": "Content",
4075
+ "text": ";"
4076
+ }
4077
+ ],
4078
+ "isReadonly": false,
4079
+ "isOptional": true,
4080
+ "releaseTag": "Public",
4081
+ "name": "start",
4082
+ "propertyTypeTokenRange": {
4083
+ "startIndex": 1,
4084
+ "endIndex": 2
4085
+ }
4086
+ },
4087
+ {
4088
+ "kind": "PropertySignature",
4089
+ "canonicalReference": "@pacem/pacem-foundation!Compile.LexicalSyntax#states:member",
4090
+ "docComment": "/**\n * Ordered rules per state: the first rule matching at the current position wins.\n */\n",
4091
+ "excerptTokens": [
4092
+ {
4093
+ "kind": "Content",
4094
+ "text": "states: "
4095
+ },
4096
+ {
4097
+ "kind": "Reference",
4098
+ "text": "Record",
4099
+ "canonicalReference": "!Record:type"
4100
+ },
4101
+ {
4102
+ "kind": "Content",
4103
+ "text": "<string, "
4104
+ },
4105
+ {
4106
+ "kind": "Reference",
4107
+ "text": "LexicalRule",
4108
+ "canonicalReference": "@pacem/pacem-foundation!Compile.LexicalRule:type"
4109
+ },
4110
+ {
4111
+ "kind": "Content",
4112
+ "text": "[]>"
4113
+ },
4114
+ {
4115
+ "kind": "Content",
4116
+ "text": ";"
4117
+ }
4118
+ ],
4119
+ "isReadonly": false,
4120
+ "isOptional": false,
4121
+ "releaseTag": "Public",
4122
+ "name": "states",
4123
+ "propertyTypeTokenRange": {
4124
+ "startIndex": 1,
4125
+ "endIndex": 5
4126
+ }
4127
+ }
4128
+ ],
4129
+ "extendsTokenRanges": []
4130
+ },
4131
+ {
4132
+ "kind": "Namespace",
4133
+ "canonicalReference": "@pacem/pacem-foundation!Compile.Markdown:namespace",
4134
+ "docComment": "",
4135
+ "excerptTokens": [],
4136
+ "fileUrlPath": "dist/types/index-compile.d.ts",
4137
+ "releaseTag": "None",
4138
+ "name": "Markdown",
4139
+ "preserveMemberOrder": false,
4140
+ "members": [
4141
+ {
4142
+ "kind": "TypeAlias",
4143
+ "canonicalReference": "@pacem/pacem-foundation!Compile.Markdown.ExtraRule:type",
4144
+ "docComment": "/**\n * A custom grammar rule that extends the built-in Markdown grammar. Plain {@link Compile.Rule} values are treated as `inline` rules. Otherwise, `type` selects where the rule is plugged in: `'block'` (top-level block grammar), `'inline'` (inline/span grammar, recursively applied inside block content) or `'code'` (fenced-code-block grammar, scoped to a specific `lang`).\n */\n",
4145
+ "excerptTokens": [
4146
+ {
4147
+ "kind": "Content",
4148
+ "text": "export declare type ExtraRule = "
4149
+ },
4150
+ {
4151
+ "kind": "Content",
4152
+ "text": "("
4153
+ },
4154
+ {
4155
+ "kind": "Reference",
4156
+ "text": "Compile.Rule",
4157
+ "canonicalReference": "@pacem/pacem-foundation!Compile.Rule:interface"
4158
+ },
4159
+ {
4160
+ "kind": "Content",
4161
+ "text": " | {\n rule: "
4162
+ },
4163
+ {
4164
+ "kind": "Reference",
4165
+ "text": "Compile.Rule",
4166
+ "canonicalReference": "@pacem/pacem-foundation!Compile.Rule:interface"
4167
+ },
4168
+ {
4169
+ "kind": "Content",
4170
+ "text": ";\n type: 'block' | 'inline';\n} | {\n rule: "
4171
+ },
4172
+ {
4173
+ "kind": "Reference",
4174
+ "text": "Compile.Rule",
4175
+ "canonicalReference": "@pacem/pacem-foundation!Compile.Rule:interface"
4176
+ },
4177
+ {
4178
+ "kind": "Content",
4179
+ "text": ";\n type: 'code';\n lang: string;\n})"
4180
+ },
4181
+ {
4182
+ "kind": "Content",
4183
+ "text": ";"
4184
+ }
4185
+ ],
4186
+ "fileUrlPath": "dist/types/compile/markdown/parser.d.ts",
4187
+ "releaseTag": "Public",
4188
+ "name": "ExtraRule",
4189
+ "typeTokenRange": {
4190
+ "startIndex": 1,
4191
+ "endIndex": 8
4192
+ }
4193
+ },
4194
+ {
4195
+ "kind": "Class",
4196
+ "canonicalReference": "@pacem/pacem-foundation!Compile.Markdown.Parser:class",
4197
+ "docComment": "/**\n * Markdown parser: tokenizes Markdown source and renders it to HTML (or another format via a custom {@link Compile.Renderer}).\n */\n",
4198
+ "excerptTokens": [
4199
+ {
4200
+ "kind": "Content",
4201
+ "text": "export declare class Parser extends "
4202
+ },
4203
+ {
4204
+ "kind": "Reference",
4205
+ "text": "Compile.Parser",
4206
+ "canonicalReference": "@pacem/pacem-foundation!Compile.Parser:class"
4207
+ },
4208
+ {
4209
+ "kind": "Content",
4210
+ "text": " "
4211
+ }
4212
+ ],
4213
+ "fileUrlPath": "dist/types/compile/markdown/parser.d.ts",
4214
+ "releaseTag": "Public",
4215
+ "isAbstract": false,
4216
+ "name": "Parser",
4217
+ "preserveMemberOrder": false,
4218
+ "members": [
4219
+ {
4220
+ "kind": "Method",
4221
+ "canonicalReference": "@pacem/pacem-foundation!Compile.Markdown.Parser#parse:member(1)",
4222
+ "docComment": "/**\n * Parses Markdown `input` and renders it to HTML using the built-in grammar.\n */\n",
4223
+ "excerptTokens": [
4224
+ {
4225
+ "kind": "Content",
4226
+ "text": "parse(input: "
4227
+ },
4228
+ {
4229
+ "kind": "Content",
4230
+ "text": "string"
4231
+ },
4232
+ {
4233
+ "kind": "Content",
4234
+ "text": "): "
4235
+ },
4236
+ {
4237
+ "kind": "Content",
4238
+ "text": "string"
4239
+ },
4240
+ {
4241
+ "kind": "Content",
4242
+ "text": ";"
4243
+ }
4244
+ ],
4245
+ "isStatic": false,
4246
+ "returnTypeTokenRange": {
4247
+ "startIndex": 3,
4248
+ "endIndex": 4
4249
+ },
4250
+ "releaseTag": "Public",
4251
+ "isProtected": false,
4252
+ "overloadIndex": 1,
4253
+ "parameters": [
4254
+ {
4255
+ "parameterName": "input",
4256
+ "parameterTypeTokenRange": {
4257
+ "startIndex": 1,
4258
+ "endIndex": 2
4259
+ },
4260
+ "isOptional": false
4261
+ }
4262
+ ],
4263
+ "isOptional": false,
4264
+ "isAbstract": false,
4265
+ "name": "parse"
4266
+ },
4267
+ {
4268
+ "kind": "Method",
4269
+ "canonicalReference": "@pacem/pacem-foundation!Compile.Markdown.Parser#parse:member(2)",
4270
+ "docComment": "/**\n * Parses Markdown `input` using the built-in grammar and renders it with a custom `renderer`.\n */\n",
4271
+ "excerptTokens": [
4272
+ {
4273
+ "kind": "Content",
4274
+ "text": "parse(input: "
4275
+ },
4276
+ {
4277
+ "kind": "Content",
4278
+ "text": "string"
4279
+ },
4280
+ {
4281
+ "kind": "Content",
4282
+ "text": ", renderer: "
4283
+ },
4284
+ {
4285
+ "kind": "Reference",
4286
+ "text": "Compile.Renderer",
4287
+ "canonicalReference": "@pacem/pacem-foundation!Compile.Renderer:interface"
4288
+ },
4289
+ {
4290
+ "kind": "Content",
4291
+ "text": "): "
4292
+ },
4293
+ {
4294
+ "kind": "Content",
4295
+ "text": "string"
4296
+ },
4297
+ {
4298
+ "kind": "Content",
4299
+ "text": ";"
4300
+ }
4301
+ ],
4302
+ "isStatic": false,
4303
+ "returnTypeTokenRange": {
4304
+ "startIndex": 5,
4305
+ "endIndex": 6
4306
+ },
4307
+ "releaseTag": "Public",
4308
+ "isProtected": false,
4309
+ "overloadIndex": 2,
4310
+ "parameters": [
4311
+ {
4312
+ "parameterName": "input",
4313
+ "parameterTypeTokenRange": {
4314
+ "startIndex": 1,
4315
+ "endIndex": 2
4316
+ },
4317
+ "isOptional": false
4318
+ },
4319
+ {
4320
+ "parameterName": "renderer",
4321
+ "parameterTypeTokenRange": {
4322
+ "startIndex": 3,
4323
+ "endIndex": 4
4324
+ },
4325
+ "isOptional": false
4326
+ }
4327
+ ],
4328
+ "isOptional": false,
4329
+ "isAbstract": false,
4330
+ "name": "parse"
4331
+ },
4332
+ {
4333
+ "kind": "Method",
4334
+ "canonicalReference": "@pacem/pacem-foundation!Compile.Markdown.Parser#parse:member(3)",
4335
+ "docComment": "/**\n * Parses Markdown `input` using a custom `grammar` and renders it to HTML.\n */\n",
4336
+ "excerptTokens": [
4337
+ {
4338
+ "kind": "Content",
4339
+ "text": "parse(input: "
4340
+ },
4341
+ {
4342
+ "kind": "Content",
4343
+ "text": "string"
4344
+ },
4345
+ {
4346
+ "kind": "Content",
4347
+ "text": ", grammar: "
4348
+ },
4349
+ {
4350
+ "kind": "Reference",
4351
+ "text": "Compile.Rule",
4352
+ "canonicalReference": "@pacem/pacem-foundation!Compile.Rule:interface"
4353
+ },
4354
+ {
4355
+ "kind": "Content",
4356
+ "text": "[]"
4357
+ },
4358
+ {
4359
+ "kind": "Content",
4360
+ "text": "): "
4361
+ },
4362
+ {
4363
+ "kind": "Content",
4364
+ "text": "string"
4365
+ },
4366
+ {
4367
+ "kind": "Content",
4368
+ "text": ";"
4369
+ }
4370
+ ],
4371
+ "isStatic": false,
4372
+ "returnTypeTokenRange": {
4373
+ "startIndex": 6,
4374
+ "endIndex": 7
4375
+ },
4376
+ "releaseTag": "Public",
4377
+ "isProtected": false,
4378
+ "overloadIndex": 3,
4379
+ "parameters": [
4380
+ {
4381
+ "parameterName": "input",
4382
+ "parameterTypeTokenRange": {
4383
+ "startIndex": 1,
4384
+ "endIndex": 2
4385
+ },
4386
+ "isOptional": false
4387
+ },
4388
+ {
4389
+ "parameterName": "grammar",
4390
+ "parameterTypeTokenRange": {
4391
+ "startIndex": 3,
4392
+ "endIndex": 5
4393
+ },
4394
+ "isOptional": false
4395
+ }
4396
+ ],
4397
+ "isOptional": false,
4398
+ "isAbstract": false,
4399
+ "name": "parse"
4400
+ },
4401
+ {
4402
+ "kind": "Method",
4403
+ "canonicalReference": "@pacem/pacem-foundation!Compile.Markdown.Parser#parse:member(4)",
4404
+ "docComment": "/**\n * Parses Markdown `input` using a custom `grammar` and a custom `renderer`.\n */\n",
4405
+ "excerptTokens": [
4406
+ {
4407
+ "kind": "Content",
4408
+ "text": "parse(input: "
4409
+ },
4410
+ {
4411
+ "kind": "Content",
4412
+ "text": "string"
4413
+ },
4414
+ {
4415
+ "kind": "Content",
4416
+ "text": ", grammar: "
4417
+ },
4418
+ {
4419
+ "kind": "Reference",
4420
+ "text": "Compile.Rule",
4421
+ "canonicalReference": "@pacem/pacem-foundation!Compile.Rule:interface"
4422
+ },
4423
+ {
4424
+ "kind": "Content",
4425
+ "text": "[]"
4426
+ },
4427
+ {
4428
+ "kind": "Content",
4429
+ "text": ", renderer: "
4430
+ },
4431
+ {
4432
+ "kind": "Reference",
4433
+ "text": "Compile.Renderer",
4434
+ "canonicalReference": "@pacem/pacem-foundation!Compile.Renderer:interface"
4435
+ },
4436
+ {
4437
+ "kind": "Content",
4438
+ "text": "): "
4439
+ },
4440
+ {
4441
+ "kind": "Content",
4442
+ "text": "string"
4443
+ },
4444
+ {
4445
+ "kind": "Content",
4446
+ "text": ";"
4447
+ }
4448
+ ],
4449
+ "isStatic": false,
4450
+ "returnTypeTokenRange": {
4451
+ "startIndex": 8,
4452
+ "endIndex": 9
4453
+ },
4454
+ "releaseTag": "Public",
4455
+ "isProtected": false,
4456
+ "overloadIndex": 4,
4457
+ "parameters": [
4458
+ {
4459
+ "parameterName": "input",
4460
+ "parameterTypeTokenRange": {
4461
+ "startIndex": 1,
4462
+ "endIndex": 2
4463
+ },
4464
+ "isOptional": false
4465
+ },
4466
+ {
4467
+ "parameterName": "grammar",
4468
+ "parameterTypeTokenRange": {
4469
+ "startIndex": 3,
4470
+ "endIndex": 5
4471
+ },
4472
+ "isOptional": false
4473
+ },
4474
+ {
4475
+ "parameterName": "renderer",
4476
+ "parameterTypeTokenRange": {
4477
+ "startIndex": 6,
4478
+ "endIndex": 7
4479
+ },
4480
+ "isOptional": false
4481
+ }
4482
+ ],
4483
+ "isOptional": false,
4484
+ "isAbstract": false,
4485
+ "name": "parse"
4486
+ },
4487
+ {
4488
+ "kind": "Method",
4489
+ "canonicalReference": "@pacem/pacem-foundation!Compile.Markdown.Parser#toHtml:member(1)",
4490
+ "docComment": "/**\n * Parses Markdown `input` and renders it to an HTML string.\n *\n * @param input - Markdown source.\n *\n * @param extraGrammar - Additional grammar rules to extend the built-in Markdown syntax.\n *\n * @param extraItemRenderer - Fallback renderer invoked for token types not natively handled (e.g. tokens produced by `extraGrammar`); defaults to returning the token's `text`.\n *\n * @returns The rendered HTML string.\n */\n",
4491
+ "excerptTokens": [
4492
+ {
4493
+ "kind": "Content",
4494
+ "text": "toHtml(input: "
4495
+ },
4496
+ {
4497
+ "kind": "Content",
4498
+ "text": "string"
4499
+ },
4500
+ {
4501
+ "kind": "Content",
4502
+ "text": ", extraGrammar?: "
4503
+ },
4504
+ {
4505
+ "kind": "Reference",
4506
+ "text": "ExtraRule",
4507
+ "canonicalReference": "@pacem/pacem-foundation!Compile.Markdown.ExtraRule:type"
4508
+ },
4509
+ {
4510
+ "kind": "Content",
4511
+ "text": "[]"
4512
+ },
4513
+ {
4514
+ "kind": "Content",
4515
+ "text": ", extraItemRenderer?: "
4516
+ },
4517
+ {
4518
+ "kind": "Content",
4519
+ "text": "(token: "
4520
+ },
4521
+ {
4522
+ "kind": "Reference",
4523
+ "text": "Compile.Token",
4524
+ "canonicalReference": "@pacem/pacem-foundation!Compile.Token:interface"
4525
+ },
4526
+ {
4527
+ "kind": "Content",
4528
+ "text": ", allTokens: "
4529
+ },
4530
+ {
4531
+ "kind": "Reference",
4532
+ "text": "Compile.Token",
4533
+ "canonicalReference": "@pacem/pacem-foundation!Compile.Token:interface"
4534
+ },
4535
+ {
4536
+ "kind": "Content",
4537
+ "text": "[]) => string"
4538
+ },
4539
+ {
4540
+ "kind": "Content",
4541
+ "text": "): "
4542
+ },
4543
+ {
4544
+ "kind": "Content",
4545
+ "text": "string"
4546
+ },
4547
+ {
4548
+ "kind": "Content",
4549
+ "text": ";"
4550
+ }
4551
+ ],
4552
+ "isStatic": false,
4553
+ "returnTypeTokenRange": {
4554
+ "startIndex": 12,
4555
+ "endIndex": 13
4556
+ },
4557
+ "releaseTag": "Public",
4558
+ "isProtected": false,
4559
+ "overloadIndex": 1,
4560
+ "parameters": [
4561
+ {
4562
+ "parameterName": "input",
4563
+ "parameterTypeTokenRange": {
4564
+ "startIndex": 1,
4565
+ "endIndex": 2
4566
+ },
4567
+ "isOptional": false
4568
+ },
4569
+ {
4570
+ "parameterName": "extraGrammar",
4571
+ "parameterTypeTokenRange": {
4572
+ "startIndex": 3,
4573
+ "endIndex": 5
4574
+ },
4575
+ "isOptional": true
4576
+ },
4577
+ {
4578
+ "parameterName": "extraItemRenderer",
4579
+ "parameterTypeTokenRange": {
4580
+ "startIndex": 6,
4581
+ "endIndex": 11
4582
+ },
4583
+ "isOptional": true
4584
+ }
4585
+ ],
4586
+ "isOptional": false,
4587
+ "isAbstract": false,
4588
+ "name": "toHtml"
4589
+ },
4590
+ {
4591
+ "kind": "Method",
4592
+ "canonicalReference": "@pacem/pacem-foundation!Compile.Markdown.Parser#tokenize:member(1)",
4593
+ "docComment": "/**\n * Parses Markdown `input` and returns its token tree as a plain (JSON-serializable) array, useful for inspection/debugging.\n *\n * @param input - Markdown source.\n *\n * @param extraGrammar - Additional grammar rules to extend the built-in Markdown syntax.\n *\n * @returns The parsed token tree.\n */\n",
4594
+ "excerptTokens": [
4595
+ {
4596
+ "kind": "Content",
4597
+ "text": "tokenize(input: "
4598
+ },
4599
+ {
4600
+ "kind": "Content",
4601
+ "text": "string"
4602
+ },
4603
+ {
4604
+ "kind": "Content",
4605
+ "text": ", extraGrammar?: "
4606
+ },
4607
+ {
4608
+ "kind": "Reference",
4609
+ "text": "ExtraRule",
4610
+ "canonicalReference": "@pacem/pacem-foundation!Compile.Markdown.ExtraRule:type"
4611
+ },
4612
+ {
4613
+ "kind": "Content",
4614
+ "text": "[]"
4615
+ },
4616
+ {
4617
+ "kind": "Content",
4618
+ "text": "): "
4619
+ },
4620
+ {
4621
+ "kind": "Content",
4622
+ "text": "any[]"
4623
+ },
4624
+ {
4625
+ "kind": "Content",
4626
+ "text": ";"
4627
+ }
4628
+ ],
4629
+ "isStatic": false,
4630
+ "returnTypeTokenRange": {
4631
+ "startIndex": 6,
4632
+ "endIndex": 7
4633
+ },
4634
+ "releaseTag": "Public",
4635
+ "isProtected": false,
4636
+ "overloadIndex": 1,
4637
+ "parameters": [
4638
+ {
4639
+ "parameterName": "input",
4640
+ "parameterTypeTokenRange": {
4641
+ "startIndex": 1,
4642
+ "endIndex": 2
4643
+ },
4644
+ "isOptional": false
4645
+ },
4646
+ {
4647
+ "parameterName": "extraGrammar",
4648
+ "parameterTypeTokenRange": {
4649
+ "startIndex": 3,
4650
+ "endIndex": 5
4651
+ },
4652
+ "isOptional": true
4653
+ }
4654
+ ],
4655
+ "isOptional": false,
4656
+ "isAbstract": false,
4657
+ "name": "tokenize"
4658
+ }
4659
+ ],
4660
+ "extendsTokenRange": {
4661
+ "startIndex": 1,
4662
+ "endIndex": 2
4663
+ },
4664
+ "implementsTokenRanges": []
4665
+ }
4666
+ ]
4667
+ },
4668
+ {
4669
+ "kind": "Variable",
4670
+ "canonicalReference": "@pacem/pacem-foundation!Compile.MarkupSyntax:var",
4671
+ "docComment": "/**\n * Markup (HTML/XML) vocabulary: comments, doctypes/CDATA, tags (`tag`/`tagname`), attributes, quoted values (Pacem `{{ … }}` bindings tokenized with `pacem-binding`), entities, text, and `<script>` bodies tokenized with `javascript`.\n */\n",
4672
+ "excerptTokens": [
4673
+ {
4674
+ "kind": "Content",
4675
+ "text": "MarkupSyntax: "
4676
+ },
4677
+ {
4678
+ "kind": "Reference",
4679
+ "text": "BuiltinSyntax",
4680
+ "canonicalReference": "@pacem/pacem-foundation!Compile.BuiltinSyntax:interface"
4681
+ }
4682
+ ],
4683
+ "fileUrlPath": "dist/types/compile/syntax/vocabularies/markup.d.ts",
4684
+ "isReadonly": true,
4685
+ "releaseTag": "Public",
4686
+ "name": "MarkupSyntax",
4687
+ "variableTypeTokenRange": {
4688
+ "startIndex": 1,
4689
+ "endIndex": 2
4690
+ }
4691
+ },
4692
+ {
4693
+ "kind": "Variable",
4694
+ "canonicalReference": "@pacem/pacem-foundation!Compile.PacemBindingSyntax:var",
4695
+ "docComment": "/**\n * Pacem binding-expression vocabulary (the content of `{{ … }}` attributes): JavaScript plus the special tokens resolved by core's `Expression`: - `binding-host`: `:host` (followed by `.`); - `binding-host-property`: `::name`; - `binding-item`: `^item`, `^^item`, … (repeater item, n levels up); - `binding-index`: `^index`, `^^index`, …; - `binding-element`: `#id` (element reference); - `binding-this`: `$this` / `this` (the bound element).\n */\n",
4696
+ "excerptTokens": [
4697
+ {
4698
+ "kind": "Content",
4699
+ "text": "PacemBindingSyntax: "
4700
+ },
4701
+ {
4702
+ "kind": "Reference",
4703
+ "text": "BuiltinSyntax",
4704
+ "canonicalReference": "@pacem/pacem-foundation!Compile.BuiltinSyntax:interface"
4705
+ }
4706
+ ],
4707
+ "fileUrlPath": "dist/types/compile/syntax/vocabularies/pacem-binding.d.ts",
4708
+ "isReadonly": true,
4709
+ "releaseTag": "Public",
4710
+ "name": "PacemBindingSyntax",
4711
+ "variableTypeTokenRange": {
4712
+ "startIndex": 1,
4713
+ "endIndex": 2
4714
+ }
4715
+ },
4716
+ {
4717
+ "kind": "Class",
4718
+ "canonicalReference": "@pacem/pacem-foundation!Compile.Parser:class",
4719
+ "docComment": "/**\n * Generic tokenize-then-render text parser: lexes input against a grammar, then renders the resulting token tree.\n */\n",
4720
+ "excerptTokens": [
4721
+ {
4722
+ "kind": "Content",
4723
+ "text": "export declare class Parser "
4724
+ }
4725
+ ],
4726
+ "fileUrlPath": "dist/types/compile/parser.d.ts",
4727
+ "releaseTag": "Public",
4728
+ "isAbstract": false,
4729
+ "name": "Parser",
4730
+ "preserveMemberOrder": false,
4731
+ "members": [
4732
+ {
4733
+ "kind": "Constructor",
4734
+ "canonicalReference": "@pacem/pacem-foundation!Compile.Parser:constructor(1)",
4735
+ "docComment": "/**\n * Constructs a new instance of the `Parser` class\n *\n * @param _lexer - Lexer implementation to use (defaults to a built-in greedy, rule-ordered lexer).\n */\n",
4736
+ "excerptTokens": [
4737
+ {
4738
+ "kind": "Content",
4739
+ "text": "constructor(_lexer?: "
4740
+ },
4741
+ {
4742
+ "kind": "Reference",
4743
+ "text": "Lexer",
4744
+ "canonicalReference": "@pacem/pacem-foundation!Compile.Lexer:interface"
4745
+ },
4746
+ {
4747
+ "kind": "Content",
4748
+ "text": ");"
4749
+ }
4750
+ ],
4751
+ "releaseTag": "Public",
4752
+ "isProtected": false,
4753
+ "overloadIndex": 1,
4754
+ "parameters": [
4755
+ {
4756
+ "parameterName": "_lexer",
4757
+ "parameterTypeTokenRange": {
4758
+ "startIndex": 1,
4759
+ "endIndex": 2
4760
+ },
4761
+ "isOptional": true
4762
+ }
4763
+ ]
4764
+ },
4765
+ {
4766
+ "kind": "Method",
4767
+ "canonicalReference": "@pacem/pacem-foundation!Compile.Parser#parse:member(1)",
4768
+ "docComment": "/**\n * Tokenizes `input` against `grammar` and renders the resulting token tree.\n *\n * @param input - String to parse.\n *\n * @param grammar - Ordered list of rules describing the grammar.\n *\n * @param renderer - Renderer used to turn the token tree into the output string.\n *\n * @returns The rendered output.\n */\n",
4769
+ "excerptTokens": [
4770
+ {
4771
+ "kind": "Content",
4772
+ "text": "parse(input: "
4773
+ },
4774
+ {
4775
+ "kind": "Content",
4776
+ "text": "string"
4777
+ },
4778
+ {
4779
+ "kind": "Content",
4780
+ "text": ", grammar: "
4781
+ },
4782
+ {
4783
+ "kind": "Reference",
4784
+ "text": "Rule",
4785
+ "canonicalReference": "@pacem/pacem-foundation!Compile.Rule:interface"
4786
+ },
4787
+ {
4788
+ "kind": "Content",
4789
+ "text": "[]"
4790
+ },
4791
+ {
4792
+ "kind": "Content",
4793
+ "text": ", renderer: "
4794
+ },
4795
+ {
4796
+ "kind": "Reference",
4797
+ "text": "Renderer",
4798
+ "canonicalReference": "@pacem/pacem-foundation!Compile.Renderer:interface"
4799
+ },
4800
+ {
4801
+ "kind": "Content",
4802
+ "text": "): "
4803
+ },
4804
+ {
4805
+ "kind": "Content",
4806
+ "text": "string"
4807
+ },
4808
+ {
4809
+ "kind": "Content",
4810
+ "text": ";"
4811
+ }
4812
+ ],
4813
+ "isStatic": false,
4814
+ "returnTypeTokenRange": {
4815
+ "startIndex": 8,
4816
+ "endIndex": 9
4817
+ },
4818
+ "releaseTag": "Public",
4819
+ "isProtected": false,
4820
+ "overloadIndex": 1,
4821
+ "parameters": [
4822
+ {
4823
+ "parameterName": "input",
4824
+ "parameterTypeTokenRange": {
4825
+ "startIndex": 1,
4826
+ "endIndex": 2
4827
+ },
4828
+ "isOptional": false
4829
+ },
4830
+ {
4831
+ "parameterName": "grammar",
4832
+ "parameterTypeTokenRange": {
4833
+ "startIndex": 3,
4834
+ "endIndex": 5
4835
+ },
4836
+ "isOptional": false
4837
+ },
4838
+ {
4839
+ "parameterName": "renderer",
4840
+ "parameterTypeTokenRange": {
4841
+ "startIndex": 6,
4842
+ "endIndex": 7
4843
+ },
4844
+ "isOptional": false
4845
+ }
4846
+ ],
4847
+ "isOptional": false,
4848
+ "isAbstract": false,
4849
+ "name": "parse"
4850
+ }
4851
+ ],
4852
+ "implementsTokenRanges": []
4853
+ },
4854
+ {
4855
+ "kind": "Interface",
4856
+ "canonicalReference": "@pacem/pacem-foundation!Compile.Renderer:interface",
4857
+ "docComment": "/**\n * Turns a token tree, as produced by a {@link Lexer}, into an output string (e.g. HTML, JSON, ...).\n */\n",
4858
+ "excerptTokens": [
4859
+ {
4860
+ "kind": "Content",
4861
+ "text": "export interface Renderer "
4862
+ }
4863
+ ],
4864
+ "fileUrlPath": "dist/types/compile/parser.d.ts",
4865
+ "releaseTag": "Public",
4866
+ "name": "Renderer",
4867
+ "preserveMemberOrder": false,
4868
+ "members": [
4869
+ {
4870
+ "kind": "PropertySignature",
4871
+ "canonicalReference": "@pacem/pacem-foundation!Compile.Renderer#render:member",
4872
+ "docComment": "",
4873
+ "excerptTokens": [
4874
+ {
4875
+ "kind": "Content",
4876
+ "text": "render: "
4877
+ },
4878
+ {
4879
+ "kind": "Content",
4880
+ "text": "(tree: "
4881
+ },
4882
+ {
4883
+ "kind": "Reference",
4884
+ "text": "Token",
4885
+ "canonicalReference": "@pacem/pacem-foundation!Compile.Token:interface"
4886
+ },
4887
+ {
4888
+ "kind": "Content",
4889
+ "text": "[]) => string"
4890
+ },
4891
+ {
4892
+ "kind": "Content",
4893
+ "text": ";"
4894
+ }
4895
+ ],
4896
+ "isReadonly": false,
4897
+ "isOptional": false,
4898
+ "releaseTag": "Public",
4899
+ "name": "render",
4900
+ "propertyTypeTokenRange": {
4901
+ "startIndex": 1,
4902
+ "endIndex": 4
4903
+ }
4904
+ }
4905
+ ],
4906
+ "extendsTokenRanges": []
4907
+ },
4908
+ {
4909
+ "kind": "Interface",
4910
+ "canonicalReference": "@pacem/pacem-foundation!Compile.Rule:interface",
4911
+ "docComment": "/**\n * A single grammar rule: attempts to recognize a token (or sequence of tokens) at the start of the input string.\n */\n",
4912
+ "excerptTokens": [
4913
+ {
4914
+ "kind": "Content",
4915
+ "text": "export interface Rule "
4916
+ }
4917
+ ],
4918
+ "fileUrlPath": "dist/types/compile/parser.d.ts",
4919
+ "releaseTag": "Public",
4920
+ "name": "Rule",
4921
+ "preserveMemberOrder": false,
4922
+ "members": [
4923
+ {
4924
+ "kind": "PropertySignature",
4925
+ "canonicalReference": "@pacem/pacem-foundation!Compile.Rule#exec:member",
4926
+ "docComment": "/**\n * Attempts to match this rule against the beginning of `input`.\n *\n * @param input - String to match against.\n *\n * @param lexer - Lexer instance, provided to allow recursive tokenization (e.g. for nested/inline content).\n *\n * @returns The matched tokens, or a falsy value when the rule does not match.\n */\n",
4927
+ "excerptTokens": [
4928
+ {
4929
+ "kind": "Content",
4930
+ "text": "exec: "
4931
+ },
4932
+ {
4933
+ "kind": "Content",
4934
+ "text": "(input: string, lexer?: "
4935
+ },
4936
+ {
4937
+ "kind": "Reference",
4938
+ "text": "Lexer",
4939
+ "canonicalReference": "@pacem/pacem-foundation!Compile.Lexer:interface"
4940
+ },
4941
+ {
4942
+ "kind": "Content",
4943
+ "text": ") => "
4944
+ },
4945
+ {
4946
+ "kind": "Reference",
4947
+ "text": "Token",
4948
+ "canonicalReference": "@pacem/pacem-foundation!Compile.Token:interface"
4949
+ },
4950
+ {
4951
+ "kind": "Content",
4952
+ "text": "[]"
4953
+ },
4954
+ {
4955
+ "kind": "Content",
4956
+ "text": ";"
4957
+ }
4958
+ ],
4959
+ "isReadonly": false,
4960
+ "isOptional": false,
4961
+ "releaseTag": "Public",
4962
+ "name": "exec",
4963
+ "propertyTypeTokenRange": {
4964
+ "startIndex": 1,
4965
+ "endIndex": 6
4966
+ }
4967
+ }
4968
+ ],
4969
+ "extendsTokenRanges": []
4970
+ },
4971
+ {
4972
+ "kind": "Class",
4973
+ "canonicalReference": "@pacem/pacem-foundation!Compile.Scanner:class",
4974
+ "docComment": "/**\n * Language-agnostic lexical engine: tokenizes a source text according to a {@link Syntax} vocabulary. - lossless: concatenating the tokens' `raw` reproduces the source exactly; - linear: a single cursor and sticky regular expressions (compiled once per syntax); - error tolerant: unrecognized characters become `text` tokens, it never throws.\n */\n",
4975
+ "excerptTokens": [
4976
+ {
4977
+ "kind": "Content",
4978
+ "text": "export declare class Scanner "
4979
+ }
4980
+ ],
4981
+ "fileUrlPath": "dist/types/compile/syntax/scanner.d.ts",
4982
+ "releaseTag": "Public",
4983
+ "isAbstract": false,
4984
+ "name": "Scanner",
4985
+ "preserveMemberOrder": false,
4986
+ "members": [
4987
+ {
4988
+ "kind": "Method",
4989
+ "canonicalReference": "@pacem/pacem-foundation!Compile.Scanner#tokenize:member(1)",
4990
+ "docComment": "/**\n * Tokenizes `source`.\n *\n * @param source - Source text.\n *\n * @param syntax - A {@link Syntax} or the name/alias of a registered one (see {@link Syntaxes}); an unknown one yields a single `text` token.\n *\n * @returns The lossless, positioned token stream.\n */\n",
4991
+ "excerptTokens": [
4992
+ {
4993
+ "kind": "Content",
4994
+ "text": "tokenize(source: "
4995
+ },
4996
+ {
4997
+ "kind": "Content",
4998
+ "text": "string"
4999
+ },
5000
+ {
5001
+ "kind": "Content",
5002
+ "text": ", syntax: "
5003
+ },
5004
+ {
5005
+ "kind": "Reference",
5006
+ "text": "Syntax",
5007
+ "canonicalReference": "@pacem/pacem-foundation!Compile.Syntax:interface"
5008
+ },
5009
+ {
5010
+ "kind": "Content",
5011
+ "text": " | "
5012
+ },
5013
+ {
5014
+ "kind": "Reference",
5015
+ "text": "SyntaxNameOrAlias",
5016
+ "canonicalReference": "@pacem/pacem-foundation!Compile.SyntaxNameOrAlias:type"
5017
+ },
5018
+ {
5019
+ "kind": "Content",
5020
+ "text": "): "
5021
+ },
5022
+ {
5023
+ "kind": "Reference",
5024
+ "text": "SyntaxToken",
5025
+ "canonicalReference": "@pacem/pacem-foundation!Compile.SyntaxToken:interface"
5026
+ },
5027
+ {
5028
+ "kind": "Content",
5029
+ "text": "[]"
5030
+ },
5031
+ {
5032
+ "kind": "Content",
5033
+ "text": ";"
5034
+ }
5035
+ ],
5036
+ "isStatic": false,
5037
+ "returnTypeTokenRange": {
5038
+ "startIndex": 7,
5039
+ "endIndex": 9
5040
+ },
5041
+ "releaseTag": "Public",
5042
+ "isProtected": false,
5043
+ "overloadIndex": 1,
5044
+ "parameters": [
5045
+ {
5046
+ "parameterName": "source",
5047
+ "parameterTypeTokenRange": {
5048
+ "startIndex": 1,
5049
+ "endIndex": 2
5050
+ },
5051
+ "isOptional": false
5052
+ },
5053
+ {
5054
+ "parameterName": "syntax",
5055
+ "parameterTypeTokenRange": {
5056
+ "startIndex": 3,
5057
+ "endIndex": 6
5058
+ },
5059
+ "isOptional": false
5060
+ }
5061
+ ],
5062
+ "isOptional": false,
5063
+ "isAbstract": false,
5064
+ "name": "tokenize"
5065
+ }
5066
+ ],
5067
+ "implementsTokenRanges": []
5068
+ },
5069
+ {
5070
+ "kind": "Interface",
5071
+ "canonicalReference": "@pacem/pacem-foundation!Compile.Syntax:interface",
5072
+ "docComment": "/**\n * A language vocabulary: everything the language-agnostic {@link Scanner} needs to tokenize a source text. It is plain, JSON-serializable data (regular expressions are strings), so vocabularies can be shipped or fetched as data and registered at runtime (see {@link Syntaxes}).\n */\n",
5073
+ "excerptTokens": [
5074
+ {
5075
+ "kind": "Content",
5076
+ "text": "export interface Syntax "
5077
+ }
5078
+ ],
5079
+ "fileUrlPath": "dist/types/compile/syntax/types.d.ts",
5080
+ "releaseTag": "Public",
5081
+ "name": "Syntax",
5082
+ "preserveMemberOrder": false,
5083
+ "members": [
5084
+ {
5085
+ "kind": "PropertySignature",
5086
+ "canonicalReference": "@pacem/pacem-foundation!Compile.Syntax#aliases:member",
5087
+ "docComment": "/**\n * Alternative names, e.g. `['js', 'ts', 'typescript']`.\n */\n",
5088
+ "excerptTokens": [
5089
+ {
5090
+ "kind": "Content",
5091
+ "text": "aliases?: "
5092
+ },
5093
+ {
5094
+ "kind": "Content",
5095
+ "text": "string[]"
5096
+ },
5097
+ {
5098
+ "kind": "Content",
5099
+ "text": ";"
5100
+ }
5101
+ ],
5102
+ "isReadonly": false,
5103
+ "isOptional": true,
5104
+ "releaseTag": "Public",
5105
+ "name": "aliases",
5106
+ "propertyTypeTokenRange": {
5107
+ "startIndex": 1,
5108
+ "endIndex": 2
5109
+ }
5110
+ },
5111
+ {
5112
+ "kind": "PropertySignature",
5113
+ "canonicalReference": "@pacem/pacem-foundation!Compile.Syntax#extends:member",
5114
+ "docComment": "/**\n * Name of a base syntax: states are merged (this syntax's rules come first), keywords are merged too, and `include`s are resolved against the merged states.\n */\n",
5115
+ "excerptTokens": [
5116
+ {
5117
+ "kind": "Content",
5118
+ "text": "extends?: "
5119
+ },
5120
+ {
5121
+ "kind": "Reference",
5122
+ "text": "SyntaxNameOrAlias",
5123
+ "canonicalReference": "@pacem/pacem-foundation!Compile.SyntaxNameOrAlias:type"
5124
+ },
5125
+ {
5126
+ "kind": "Content",
5127
+ "text": ";"
5128
+ }
5129
+ ],
5130
+ "isReadonly": false,
5131
+ "isOptional": true,
5132
+ "releaseTag": "Public",
5133
+ "name": "extends",
5134
+ "propertyTypeTokenRange": {
5135
+ "startIndex": 1,
5136
+ "endIndex": 2
5137
+ }
5138
+ },
5139
+ {
5140
+ "kind": "PropertySignature",
5141
+ "canonicalReference": "@pacem/pacem-foundation!Compile.Syntax#lexical:member",
5142
+ "docComment": "",
5143
+ "excerptTokens": [
5144
+ {
5145
+ "kind": "Content",
5146
+ "text": "lexical: "
5147
+ },
5148
+ {
5149
+ "kind": "Reference",
5150
+ "text": "LexicalSyntax",
5151
+ "canonicalReference": "@pacem/pacem-foundation!Compile.LexicalSyntax:interface"
5152
+ },
5153
+ {
5154
+ "kind": "Content",
5155
+ "text": ";"
5156
+ }
5157
+ ],
5158
+ "isReadonly": false,
5159
+ "isOptional": false,
5160
+ "releaseTag": "Public",
5161
+ "name": "lexical",
5162
+ "propertyTypeTokenRange": {
5163
+ "startIndex": 1,
5164
+ "endIndex": 2
5165
+ }
5166
+ },
5167
+ {
5168
+ "kind": "PropertySignature",
5169
+ "canonicalReference": "@pacem/pacem-foundation!Compile.Syntax#name:member",
5170
+ "docComment": "/**\n * Unique (case-insensitive) name, e.g. `'javascript'`.\n */\n",
5171
+ "excerptTokens": [
5172
+ {
5173
+ "kind": "Content",
5174
+ "text": "name: "
5175
+ },
5176
+ {
5177
+ "kind": "Content",
5178
+ "text": "string"
5179
+ },
5180
+ {
5181
+ "kind": "Content",
5182
+ "text": ";"
5183
+ }
5184
+ ],
5185
+ "isReadonly": false,
5186
+ "isOptional": false,
5187
+ "releaseTag": "Public",
5188
+ "name": "name",
5189
+ "propertyTypeTokenRange": {
5190
+ "startIndex": 1,
5191
+ "endIndex": 2
5192
+ }
5193
+ }
5194
+ ],
5195
+ "extendsTokenRanges": []
5196
+ },
5197
+ {
5198
+ "kind": "Class",
5199
+ "canonicalReference": "@pacem/pacem-foundation!Compile.Syntaxes:class",
5200
+ "docComment": "/**\n * Registry of the {@link Syntax} vocabularies known to the {@link Scanner}, by (case-insensitive) name and aliases. The built-in vocabularies (see {@link SyntaxName}) are registered upfront; more can be registered at runtime, e.g. after fetching them as JSON.\n */\n",
5201
+ "excerptTokens": [
5202
+ {
5203
+ "kind": "Content",
5204
+ "text": "export declare class Syntaxes "
5205
+ }
5206
+ ],
5207
+ "fileUrlPath": "dist/types/compile/syntax/registry.d.ts",
5208
+ "releaseTag": "Public",
5209
+ "isAbstract": false,
5210
+ "name": "Syntaxes",
5211
+ "preserveMemberOrder": false,
5212
+ "members": [
5213
+ {
5214
+ "kind": "Method",
5215
+ "canonicalReference": "@pacem/pacem-foundation!Compile.Syntaxes.get:member(1)",
5216
+ "docComment": "/**\n * Gets a registered syntax by name or alias.\n *\n * @param nameOrAlias - Case-insensitive name or alias (e.g. `'ts'`).\n *\n * @returns The syntax, or `null` when unknown.\n */\n",
5217
+ "excerptTokens": [
5218
+ {
5219
+ "kind": "Content",
5220
+ "text": "static get(nameOrAlias: "
5221
+ },
5222
+ {
5223
+ "kind": "Reference",
5224
+ "text": "SyntaxNameOrAlias",
5225
+ "canonicalReference": "@pacem/pacem-foundation!Compile.SyntaxNameOrAlias:type"
5226
+ },
5227
+ {
5228
+ "kind": "Content",
5229
+ "text": "): "
5230
+ },
5231
+ {
5232
+ "kind": "Reference",
5233
+ "text": "Syntax",
5234
+ "canonicalReference": "@pacem/pacem-foundation!Compile.Syntax:interface"
5235
+ },
5236
+ {
5237
+ "kind": "Content",
5238
+ "text": " | null"
5239
+ },
5240
+ {
5241
+ "kind": "Content",
5242
+ "text": ";"
5243
+ }
5244
+ ],
5245
+ "isStatic": true,
5246
+ "returnTypeTokenRange": {
5247
+ "startIndex": 3,
5248
+ "endIndex": 5
5249
+ },
5250
+ "releaseTag": "Public",
5251
+ "isProtected": false,
5252
+ "overloadIndex": 1,
5253
+ "parameters": [
5254
+ {
5255
+ "parameterName": "nameOrAlias",
5256
+ "parameterTypeTokenRange": {
5257
+ "startIndex": 1,
5258
+ "endIndex": 2
5259
+ },
5260
+ "isOptional": false
5261
+ }
5262
+ ],
5263
+ "isOptional": false,
5264
+ "isAbstract": false,
5265
+ "name": "get"
5266
+ },
5267
+ {
5268
+ "kind": "Method",
5269
+ "canonicalReference": "@pacem/pacem-foundation!Compile.Syntaxes.names:member(1)",
5270
+ "docComment": "/**\n * Names (and aliases) of every registered syntax.\n */\n",
5271
+ "excerptTokens": [
5272
+ {
5273
+ "kind": "Content",
5274
+ "text": "static names(): "
5275
+ },
5276
+ {
5277
+ "kind": "Content",
5278
+ "text": "string[]"
5279
+ },
5280
+ {
5281
+ "kind": "Content",
5282
+ "text": ";"
5283
+ }
5284
+ ],
5285
+ "isStatic": true,
5286
+ "returnTypeTokenRange": {
5287
+ "startIndex": 1,
5288
+ "endIndex": 2
5289
+ },
5290
+ "releaseTag": "Public",
5291
+ "isProtected": false,
5292
+ "overloadIndex": 1,
5293
+ "parameters": [],
5294
+ "isOptional": false,
5295
+ "isAbstract": false,
5296
+ "name": "names"
5297
+ },
5298
+ {
5299
+ "kind": "Method",
5300
+ "canonicalReference": "@pacem/pacem-foundation!Compile.Syntaxes.register:member(1)",
5301
+ "docComment": "/**\n * Registers (or replaces) a syntax under its name and aliases.\n *\n * @param syntax - The vocabulary to register.\n */\n",
5302
+ "excerptTokens": [
5303
+ {
5304
+ "kind": "Content",
5305
+ "text": "static register(syntax: "
5306
+ },
5307
+ {
5308
+ "kind": "Reference",
5309
+ "text": "Syntax",
5310
+ "canonicalReference": "@pacem/pacem-foundation!Compile.Syntax:interface"
5311
+ },
5312
+ {
5313
+ "kind": "Content",
5314
+ "text": "): "
5315
+ },
5316
+ {
5317
+ "kind": "Content",
5318
+ "text": "void"
5319
+ },
5320
+ {
5321
+ "kind": "Content",
5322
+ "text": ";"
5323
+ }
5324
+ ],
5325
+ "isStatic": true,
5326
+ "returnTypeTokenRange": {
5327
+ "startIndex": 3,
5328
+ "endIndex": 4
5329
+ },
5330
+ "releaseTag": "Public",
5331
+ "isProtected": false,
5332
+ "overloadIndex": 1,
5333
+ "parameters": [
5334
+ {
5335
+ "parameterName": "syntax",
5336
+ "parameterTypeTokenRange": {
5337
+ "startIndex": 1,
5338
+ "endIndex": 2
5339
+ },
5340
+ "isOptional": false
5341
+ }
5342
+ ],
5343
+ "isOptional": false,
5344
+ "isAbstract": false,
5345
+ "name": "register"
5346
+ }
5347
+ ],
5348
+ "implementsTokenRanges": []
5349
+ },
5350
+ {
5351
+ "kind": "TypeAlias",
5352
+ "canonicalReference": "@pacem/pacem-foundation!Compile.SyntaxName:type",
5353
+ "docComment": "/**\n * Names of the built-in vocabularies, registered as soon as the compile module loads (see {@link Syntaxes}).\n */\n",
5354
+ "excerptTokens": [
5355
+ {
5356
+ "kind": "Content",
5357
+ "text": "export declare type SyntaxName = "
5358
+ },
5359
+ {
5360
+ "kind": "Content",
5361
+ "text": "'javascript' | 'pacem-binding' | 'markup' | 'csharp' | 'c' | 'json'"
5362
+ },
5363
+ {
5364
+ "kind": "Content",
5365
+ "text": ";"
5366
+ }
5367
+ ],
5368
+ "fileUrlPath": "dist/types/compile/syntax/types.d.ts",
5369
+ "releaseTag": "Public",
5370
+ "name": "SyntaxName",
5371
+ "typeTokenRange": {
5372
+ "startIndex": 1,
5373
+ "endIndex": 2
5374
+ }
5375
+ },
5376
+ {
5377
+ "kind": "TypeAlias",
5378
+ "canonicalReference": "@pacem/pacem-foundation!Compile.SyntaxNameOrAlias:type",
5379
+ "docComment": "/**\n * Name or alias of a registered syntax: a built-in {@link SyntaxName} (autocompleted), or any other name/alias registered at runtime (`string & {}` keeps the literals from collapsing into `string`).\n */\n",
5380
+ "excerptTokens": [
5381
+ {
5382
+ "kind": "Content",
5383
+ "text": "export declare type SyntaxNameOrAlias = "
5384
+ },
5385
+ {
5386
+ "kind": "Reference",
5387
+ "text": "SyntaxName",
5388
+ "canonicalReference": "@pacem/pacem-foundation!Compile.SyntaxName:type"
5389
+ },
5390
+ {
5391
+ "kind": "Content",
5392
+ "text": " | (string & {})"
5393
+ },
5394
+ {
5395
+ "kind": "Content",
5396
+ "text": ";"
5397
+ }
5398
+ ],
5399
+ "fileUrlPath": "dist/types/compile/syntax/types.d.ts",
5400
+ "releaseTag": "Public",
5401
+ "name": "SyntaxNameOrAlias",
5402
+ "typeTokenRange": {
5403
+ "startIndex": 1,
5404
+ "endIndex": 3
5405
+ }
5406
+ },
5407
+ {
5408
+ "kind": "Interface",
5409
+ "canonicalReference": "@pacem/pacem-foundation!Compile.SyntaxToken:interface",
5410
+ "docComment": "/**\n * A {@link Token} produced by the {@link Scanner}: lossless (`raw` is the exact source slice) and positioned.\n */\n",
5411
+ "excerptTokens": [
5412
+ {
5413
+ "kind": "Content",
5414
+ "text": "export interface SyntaxToken extends "
5415
+ },
5416
+ {
5417
+ "kind": "Reference",
5418
+ "text": "Token",
5419
+ "canonicalReference": "@pacem/pacem-foundation!Compile.Token:interface"
5420
+ },
5421
+ {
5422
+ "kind": "Content",
5423
+ "text": " "
5424
+ }
5425
+ ],
5426
+ "fileUrlPath": "dist/types/compile/syntax/types.d.ts",
5427
+ "releaseTag": "Public",
5428
+ "name": "SyntaxToken",
5429
+ "preserveMemberOrder": false,
5430
+ "members": [
5431
+ {
5432
+ "kind": "PropertySignature",
5433
+ "canonicalReference": "@pacem/pacem-foundation!Compile.SyntaxToken#column:member",
5434
+ "docComment": "/**\n * 1-based column.\n */\n",
5435
+ "excerptTokens": [
5436
+ {
5437
+ "kind": "Content",
5438
+ "text": "readonly column: "
5439
+ },
5440
+ {
5441
+ "kind": "Content",
5442
+ "text": "number"
5443
+ },
5444
+ {
5445
+ "kind": "Content",
5446
+ "text": ";"
5447
+ }
5448
+ ],
5449
+ "isReadonly": true,
5450
+ "isOptional": false,
5451
+ "releaseTag": "Public",
5452
+ "name": "column",
5453
+ "propertyTypeTokenRange": {
5454
+ "startIndex": 1,
5455
+ "endIndex": 2
5456
+ }
5457
+ },
5458
+ {
5459
+ "kind": "PropertySignature",
5460
+ "canonicalReference": "@pacem/pacem-foundation!Compile.SyntaxToken#depth:member",
5461
+ "docComment": "/**\n * Nesting depth of the lexical state stack (0 = start state of the outermost syntax).\n */\n",
5462
+ "excerptTokens": [
5463
+ {
5464
+ "kind": "Content",
5465
+ "text": "readonly depth: "
3567
5466
  },
3568
5467
  {
3569
- "kind": "Method",
3570
- "canonicalReference": "@pacem/pacem-foundation!Compile.Markdown.Parser#tokenize:member(1)",
3571
- "docComment": "/**\n * Parses Markdown `input` and returns its token tree as a plain (JSON-serializable) array, useful for inspection/debugging.\n *\n * @param input - Markdown source.\n *\n * @param extraGrammar - Additional grammar rules to extend the built-in Markdown syntax.\n *\n * @returns The parsed token tree.\n */\n",
3572
- "excerptTokens": [
3573
- {
3574
- "kind": "Content",
3575
- "text": "tokenize(input: "
3576
- },
3577
- {
3578
- "kind": "Content",
3579
- "text": "string"
3580
- },
3581
- {
3582
- "kind": "Content",
3583
- "text": ", extraGrammar?: "
3584
- },
3585
- {
3586
- "kind": "Reference",
3587
- "text": "ExtraRule",
3588
- "canonicalReference": "@pacem/pacem-foundation!Compile.Markdown.ExtraRule:type"
3589
- },
3590
- {
3591
- "kind": "Content",
3592
- "text": "[]"
3593
- },
3594
- {
3595
- "kind": "Content",
3596
- "text": "): "
3597
- },
3598
- {
3599
- "kind": "Content",
3600
- "text": "any[]"
3601
- },
3602
- {
3603
- "kind": "Content",
3604
- "text": ";"
3605
- }
3606
- ],
3607
- "isStatic": false,
3608
- "returnTypeTokenRange": {
3609
- "startIndex": 6,
3610
- "endIndex": 7
3611
- },
3612
- "releaseTag": "Public",
3613
- "isProtected": false,
3614
- "overloadIndex": 1,
3615
- "parameters": [
3616
- {
3617
- "parameterName": "input",
3618
- "parameterTypeTokenRange": {
3619
- "startIndex": 1,
3620
- "endIndex": 2
3621
- },
3622
- "isOptional": false
3623
- },
3624
- {
3625
- "parameterName": "extraGrammar",
3626
- "parameterTypeTokenRange": {
3627
- "startIndex": 3,
3628
- "endIndex": 5
3629
- },
3630
- "isOptional": true
3631
- }
3632
- ],
3633
- "isOptional": false,
3634
- "isAbstract": false,
3635
- "name": "tokenize"
5468
+ "kind": "Content",
5469
+ "text": "number"
5470
+ },
5471
+ {
5472
+ "kind": "Content",
5473
+ "text": ";"
3636
5474
  }
3637
5475
  ],
3638
- "extendsTokenRange": {
5476
+ "isReadonly": true,
5477
+ "isOptional": false,
5478
+ "releaseTag": "Public",
5479
+ "name": "depth",
5480
+ "propertyTypeTokenRange": {
3639
5481
  "startIndex": 1,
3640
5482
  "endIndex": 2
3641
- },
3642
- "implementsTokenRanges": []
5483
+ }
5484
+ },
5485
+ {
5486
+ "kind": "PropertySignature",
5487
+ "canonicalReference": "@pacem/pacem-foundation!Compile.SyntaxToken#index:member",
5488
+ "docComment": "/**\n * Character offset in the source.\n */\n",
5489
+ "excerptTokens": [
5490
+ {
5491
+ "kind": "Content",
5492
+ "text": "readonly index: "
5493
+ },
5494
+ {
5495
+ "kind": "Content",
5496
+ "text": "number"
5497
+ },
5498
+ {
5499
+ "kind": "Content",
5500
+ "text": ";"
5501
+ }
5502
+ ],
5503
+ "isReadonly": true,
5504
+ "isOptional": false,
5505
+ "releaseTag": "Public",
5506
+ "name": "index",
5507
+ "propertyTypeTokenRange": {
5508
+ "startIndex": 1,
5509
+ "endIndex": 2
5510
+ }
5511
+ },
5512
+ {
5513
+ "kind": "PropertySignature",
5514
+ "canonicalReference": "@pacem/pacem-foundation!Compile.SyntaxToken#line:member",
5515
+ "docComment": "/**\n * 1-based line.\n */\n",
5516
+ "excerptTokens": [
5517
+ {
5518
+ "kind": "Content",
5519
+ "text": "readonly line: "
5520
+ },
5521
+ {
5522
+ "kind": "Content",
5523
+ "text": "number"
5524
+ },
5525
+ {
5526
+ "kind": "Content",
5527
+ "text": ";"
5528
+ }
5529
+ ],
5530
+ "isReadonly": true,
5531
+ "isOptional": false,
5532
+ "releaseTag": "Public",
5533
+ "name": "line",
5534
+ "propertyTypeTokenRange": {
5535
+ "startIndex": 1,
5536
+ "endIndex": 2
5537
+ }
5538
+ },
5539
+ {
5540
+ "kind": "PropertySignature",
5541
+ "canonicalReference": "@pacem/pacem-foundation!Compile.SyntaxToken#syntax:member",
5542
+ "docComment": "/**\n * Name of the syntax that produced the token (differs from the outermost one inside embedded syntaxes).\n */\n",
5543
+ "excerptTokens": [
5544
+ {
5545
+ "kind": "Content",
5546
+ "text": "readonly syntax: "
5547
+ },
5548
+ {
5549
+ "kind": "Reference",
5550
+ "text": "SyntaxNameOrAlias",
5551
+ "canonicalReference": "@pacem/pacem-foundation!Compile.SyntaxNameOrAlias:type"
5552
+ },
5553
+ {
5554
+ "kind": "Content",
5555
+ "text": ";"
5556
+ }
5557
+ ],
5558
+ "isReadonly": true,
5559
+ "isOptional": false,
5560
+ "releaseTag": "Public",
5561
+ "name": "syntax",
5562
+ "propertyTypeTokenRange": {
5563
+ "startIndex": 1,
5564
+ "endIndex": 2
5565
+ }
5566
+ }
5567
+ ],
5568
+ "extendsTokenRanges": [
5569
+ {
5570
+ "startIndex": 1,
5571
+ "endIndex": 2
3643
5572
  }
3644
5573
  ]
3645
5574
  },
3646
5575
  {
3647
- "kind": "Class",
3648
- "canonicalReference": "@pacem/pacem-foundation!Compile.Parser:class",
3649
- "docComment": "/**\n * Generic tokenize-then-render text parser: lexes input against a grammar, then renders the resulting token tree.\n */\n",
5576
+ "kind": "Enum",
5577
+ "canonicalReference": "@pacem/pacem-foundation!Compile.SyntaxTokenType:enum",
5578
+ "docComment": "/**\n * Token types shared by the built-in vocabularies (vocabularies may add their own).\n */\n",
3650
5579
  "excerptTokens": [
3651
5580
  {
3652
5581
  "kind": "Content",
3653
- "text": "export declare class Parser "
5582
+ "text": "export declare enum SyntaxTokenType "
3654
5583
  }
3655
5584
  ],
3656
- "fileUrlPath": "dist/types/compile/parser.d.ts",
5585
+ "fileUrlPath": "dist/types/compile/syntax/types.d.ts",
3657
5586
  "releaseTag": "Public",
3658
- "isAbstract": false,
3659
- "name": "Parser",
5587
+ "name": "SyntaxTokenType",
3660
5588
  "preserveMemberOrder": false,
3661
5589
  "members": [
3662
5590
  {
3663
- "kind": "Constructor",
3664
- "canonicalReference": "@pacem/pacem-foundation!Compile.Parser:constructor(1)",
3665
- "docComment": "/**\n * Constructs a new instance of the `Parser` class\n *\n * @param _lexer - Lexer implementation to use (defaults to a built-in greedy, rule-ordered lexer).\n */\n",
5591
+ "kind": "EnumMember",
5592
+ "canonicalReference": "@pacem/pacem-foundation!Compile.SyntaxTokenType.Attribute:member",
5593
+ "docComment": "",
5594
+ "excerptTokens": [
5595
+ {
5596
+ "kind": "Content",
5597
+ "text": "Attribute = "
5598
+ },
5599
+ {
5600
+ "kind": "Content",
5601
+ "text": "\"attribute\""
5602
+ }
5603
+ ],
5604
+ "initializerTokenRange": {
5605
+ "startIndex": 1,
5606
+ "endIndex": 2
5607
+ },
5608
+ "releaseTag": "Public",
5609
+ "name": "Attribute"
5610
+ },
5611
+ {
5612
+ "kind": "EnumMember",
5613
+ "canonicalReference": "@pacem/pacem-foundation!Compile.SyntaxTokenType.Bracket:member",
5614
+ "docComment": "",
5615
+ "excerptTokens": [
5616
+ {
5617
+ "kind": "Content",
5618
+ "text": "Bracket = "
5619
+ },
5620
+ {
5621
+ "kind": "Content",
5622
+ "text": "\"bracket\""
5623
+ }
5624
+ ],
5625
+ "initializerTokenRange": {
5626
+ "startIndex": 1,
5627
+ "endIndex": 2
5628
+ },
5629
+ "releaseTag": "Public",
5630
+ "name": "Bracket"
5631
+ },
5632
+ {
5633
+ "kind": "EnumMember",
5634
+ "canonicalReference": "@pacem/pacem-foundation!Compile.SyntaxTokenType.Comment:member",
5635
+ "docComment": "",
5636
+ "excerptTokens": [
5637
+ {
5638
+ "kind": "Content",
5639
+ "text": "Comment = "
5640
+ },
5641
+ {
5642
+ "kind": "Content",
5643
+ "text": "\"comment\""
5644
+ }
5645
+ ],
5646
+ "initializerTokenRange": {
5647
+ "startIndex": 1,
5648
+ "endIndex": 2
5649
+ },
5650
+ "releaseTag": "Public",
5651
+ "name": "Comment"
5652
+ },
5653
+ {
5654
+ "kind": "EnumMember",
5655
+ "canonicalReference": "@pacem/pacem-foundation!Compile.SyntaxTokenType.DocComment:member",
5656
+ "docComment": "",
5657
+ "excerptTokens": [
5658
+ {
5659
+ "kind": "Content",
5660
+ "text": "DocComment = "
5661
+ },
5662
+ {
5663
+ "kind": "Content",
5664
+ "text": "\"doc-comment\""
5665
+ }
5666
+ ],
5667
+ "initializerTokenRange": {
5668
+ "startIndex": 1,
5669
+ "endIndex": 2
5670
+ },
5671
+ "releaseTag": "Public",
5672
+ "name": "DocComment"
5673
+ },
5674
+ {
5675
+ "kind": "EnumMember",
5676
+ "canonicalReference": "@pacem/pacem-foundation!Compile.SyntaxTokenType.Entity:member",
5677
+ "docComment": "",
5678
+ "excerptTokens": [
5679
+ {
5680
+ "kind": "Content",
5681
+ "text": "Entity = "
5682
+ },
5683
+ {
5684
+ "kind": "Content",
5685
+ "text": "\"entity\""
5686
+ }
5687
+ ],
5688
+ "initializerTokenRange": {
5689
+ "startIndex": 1,
5690
+ "endIndex": 2
5691
+ },
5692
+ "releaseTag": "Public",
5693
+ "name": "Entity"
5694
+ },
5695
+ {
5696
+ "kind": "EnumMember",
5697
+ "canonicalReference": "@pacem/pacem-foundation!Compile.SyntaxTokenType.Identifier:member",
5698
+ "docComment": "",
5699
+ "excerptTokens": [
5700
+ {
5701
+ "kind": "Content",
5702
+ "text": "Identifier = "
5703
+ },
5704
+ {
5705
+ "kind": "Content",
5706
+ "text": "\"identifier\""
5707
+ }
5708
+ ],
5709
+ "initializerTokenRange": {
5710
+ "startIndex": 1,
5711
+ "endIndex": 2
5712
+ },
5713
+ "releaseTag": "Public",
5714
+ "name": "Identifier"
5715
+ },
5716
+ {
5717
+ "kind": "EnumMember",
5718
+ "canonicalReference": "@pacem/pacem-foundation!Compile.SyntaxTokenType.Keyword:member",
5719
+ "docComment": "",
3666
5720
  "excerptTokens": [
3667
5721
  {
3668
5722
  "kind": "Content",
3669
- "text": "constructor(_lexer?: "
3670
- },
3671
- {
3672
- "kind": "Reference",
3673
- "text": "Lexer",
3674
- "canonicalReference": "@pacem/pacem-foundation!Compile.Lexer:interface"
5723
+ "text": "Keyword = "
3675
5724
  },
3676
5725
  {
3677
5726
  "kind": "Content",
3678
- "text": ");"
5727
+ "text": "\"keyword\""
3679
5728
  }
3680
5729
  ],
5730
+ "initializerTokenRange": {
5731
+ "startIndex": 1,
5732
+ "endIndex": 2
5733
+ },
3681
5734
  "releaseTag": "Public",
3682
- "isProtected": false,
3683
- "overloadIndex": 1,
3684
- "parameters": [
3685
- {
3686
- "parameterName": "_lexer",
3687
- "parameterTypeTokenRange": {
3688
- "startIndex": 1,
3689
- "endIndex": 2
3690
- },
3691
- "isOptional": true
3692
- }
3693
- ]
5735
+ "name": "Keyword"
3694
5736
  },
3695
5737
  {
3696
- "kind": "Method",
3697
- "canonicalReference": "@pacem/pacem-foundation!Compile.Parser#parse:member(1)",
3698
- "docComment": "/**\n * Tokenizes `input` against `grammar` and renders the resulting token tree.\n *\n * @param input - String to parse.\n *\n * @param grammar - Ordered list of rules describing the grammar.\n *\n * @param renderer - Renderer used to turn the token tree into the output string.\n *\n * @returns The rendered output.\n */\n",
5738
+ "kind": "EnumMember",
5739
+ "canonicalReference": "@pacem/pacem-foundation!Compile.SyntaxTokenType.Newline:member",
5740
+ "docComment": "",
3699
5741
  "excerptTokens": [
3700
5742
  {
3701
5743
  "kind": "Content",
3702
- "text": "parse(input: "
5744
+ "text": "Newline = "
3703
5745
  },
3704
5746
  {
3705
5747
  "kind": "Content",
3706
- "text": "string"
3707
- },
5748
+ "text": "\"newline\""
5749
+ }
5750
+ ],
5751
+ "initializerTokenRange": {
5752
+ "startIndex": 1,
5753
+ "endIndex": 2
5754
+ },
5755
+ "releaseTag": "Public",
5756
+ "name": "Newline"
5757
+ },
5758
+ {
5759
+ "kind": "EnumMember",
5760
+ "canonicalReference": "@pacem/pacem-foundation!Compile.SyntaxTokenType.Number:member",
5761
+ "docComment": "",
5762
+ "excerptTokens": [
3708
5763
  {
3709
5764
  "kind": "Content",
3710
- "text": ", grammar: "
5765
+ "text": "Number = "
3711
5766
  },
3712
5767
  {
3713
- "kind": "Reference",
3714
- "text": "Rule",
3715
- "canonicalReference": "@pacem/pacem-foundation!Compile.Rule:interface"
3716
- },
5768
+ "kind": "Content",
5769
+ "text": "\"number\""
5770
+ }
5771
+ ],
5772
+ "initializerTokenRange": {
5773
+ "startIndex": 1,
5774
+ "endIndex": 2
5775
+ },
5776
+ "releaseTag": "Public",
5777
+ "name": "Number"
5778
+ },
5779
+ {
5780
+ "kind": "EnumMember",
5781
+ "canonicalReference": "@pacem/pacem-foundation!Compile.SyntaxTokenType.Operator:member",
5782
+ "docComment": "",
5783
+ "excerptTokens": [
3717
5784
  {
3718
5785
  "kind": "Content",
3719
- "text": "[]"
5786
+ "text": "Operator = "
3720
5787
  },
3721
5788
  {
3722
5789
  "kind": "Content",
3723
- "text": ", renderer: "
3724
- },
5790
+ "text": "\"operator\""
5791
+ }
5792
+ ],
5793
+ "initializerTokenRange": {
5794
+ "startIndex": 1,
5795
+ "endIndex": 2
5796
+ },
5797
+ "releaseTag": "Public",
5798
+ "name": "Operator"
5799
+ },
5800
+ {
5801
+ "kind": "EnumMember",
5802
+ "canonicalReference": "@pacem/pacem-foundation!Compile.SyntaxTokenType.Preprocessor:member",
5803
+ "docComment": "",
5804
+ "excerptTokens": [
3725
5805
  {
3726
- "kind": "Reference",
3727
- "text": "Renderer",
3728
- "canonicalReference": "@pacem/pacem-foundation!Compile.Renderer:interface"
5806
+ "kind": "Content",
5807
+ "text": "Preprocessor = "
3729
5808
  },
3730
5809
  {
3731
5810
  "kind": "Content",
3732
- "text": "): "
3733
- },
5811
+ "text": "\"preprocessor\""
5812
+ }
5813
+ ],
5814
+ "initializerTokenRange": {
5815
+ "startIndex": 1,
5816
+ "endIndex": 2
5817
+ },
5818
+ "releaseTag": "Public",
5819
+ "name": "Preprocessor"
5820
+ },
5821
+ {
5822
+ "kind": "EnumMember",
5823
+ "canonicalReference": "@pacem/pacem-foundation!Compile.SyntaxTokenType.Punctuation:member",
5824
+ "docComment": "",
5825
+ "excerptTokens": [
3734
5826
  {
3735
5827
  "kind": "Content",
3736
- "text": "string"
5828
+ "text": "Punctuation = "
3737
5829
  },
3738
5830
  {
3739
5831
  "kind": "Content",
3740
- "text": ";"
5832
+ "text": "\"punctuation\""
3741
5833
  }
3742
5834
  ],
3743
- "isStatic": false,
3744
- "returnTypeTokenRange": {
3745
- "startIndex": 8,
3746
- "endIndex": 9
5835
+ "initializerTokenRange": {
5836
+ "startIndex": 1,
5837
+ "endIndex": 2
3747
5838
  },
3748
5839
  "releaseTag": "Public",
3749
- "isProtected": false,
3750
- "overloadIndex": 1,
3751
- "parameters": [
3752
- {
3753
- "parameterName": "input",
3754
- "parameterTypeTokenRange": {
3755
- "startIndex": 1,
3756
- "endIndex": 2
3757
- },
3758
- "isOptional": false
3759
- },
5840
+ "name": "Punctuation"
5841
+ },
5842
+ {
5843
+ "kind": "EnumMember",
5844
+ "canonicalReference": "@pacem/pacem-foundation!Compile.SyntaxTokenType.Regex:member",
5845
+ "docComment": "",
5846
+ "excerptTokens": [
3760
5847
  {
3761
- "parameterName": "grammar",
3762
- "parameterTypeTokenRange": {
3763
- "startIndex": 3,
3764
- "endIndex": 5
3765
- },
3766
- "isOptional": false
5848
+ "kind": "Content",
5849
+ "text": "Regex = "
3767
5850
  },
3768
5851
  {
3769
- "parameterName": "renderer",
3770
- "parameterTypeTokenRange": {
3771
- "startIndex": 6,
3772
- "endIndex": 7
3773
- },
3774
- "isOptional": false
5852
+ "kind": "Content",
5853
+ "text": "\"regex\""
3775
5854
  }
3776
5855
  ],
3777
- "isOptional": false,
3778
- "isAbstract": false,
3779
- "name": "parse"
3780
- }
3781
- ],
3782
- "implementsTokenRanges": []
3783
- },
3784
- {
3785
- "kind": "Interface",
3786
- "canonicalReference": "@pacem/pacem-foundation!Compile.Renderer:interface",
3787
- "docComment": "/**\n * Turns a token tree, as produced by a {@link Lexer}, into an output string (e.g. HTML, JSON, ...).\n */\n",
3788
- "excerptTokens": [
3789
- {
3790
- "kind": "Content",
3791
- "text": "export interface Renderer "
3792
- }
3793
- ],
3794
- "fileUrlPath": "dist/types/compile/parser.d.ts",
3795
- "releaseTag": "Public",
3796
- "name": "Renderer",
3797
- "preserveMemberOrder": false,
3798
- "members": [
5856
+ "initializerTokenRange": {
5857
+ "startIndex": 1,
5858
+ "endIndex": 2
5859
+ },
5860
+ "releaseTag": "Public",
5861
+ "name": "Regex"
5862
+ },
3799
5863
  {
3800
- "kind": "PropertySignature",
3801
- "canonicalReference": "@pacem/pacem-foundation!Compile.Renderer#render:member",
5864
+ "kind": "EnumMember",
5865
+ "canonicalReference": "@pacem/pacem-foundation!Compile.SyntaxTokenType.Space:member",
3802
5866
  "docComment": "",
3803
5867
  "excerptTokens": [
3804
5868
  {
3805
5869
  "kind": "Content",
3806
- "text": "render: "
5870
+ "text": "Space = "
3807
5871
  },
3808
5872
  {
3809
5873
  "kind": "Content",
3810
- "text": "(tree: "
3811
- },
3812
- {
3813
- "kind": "Reference",
3814
- "text": "Token",
3815
- "canonicalReference": "@pacem/pacem-foundation!Compile.Token:interface"
3816
- },
5874
+ "text": "\"space\""
5875
+ }
5876
+ ],
5877
+ "initializerTokenRange": {
5878
+ "startIndex": 1,
5879
+ "endIndex": 2
5880
+ },
5881
+ "releaseTag": "Public",
5882
+ "name": "Space"
5883
+ },
5884
+ {
5885
+ "kind": "EnumMember",
5886
+ "canonicalReference": "@pacem/pacem-foundation!Compile.SyntaxTokenType.String:member",
5887
+ "docComment": "",
5888
+ "excerptTokens": [
3817
5889
  {
3818
5890
  "kind": "Content",
3819
- "text": "[]) => string"
5891
+ "text": "String = "
3820
5892
  },
3821
5893
  {
3822
5894
  "kind": "Content",
3823
- "text": ";"
5895
+ "text": "\"string\""
3824
5896
  }
3825
5897
  ],
3826
- "isReadonly": false,
3827
- "isOptional": false,
3828
- "releaseTag": "Public",
3829
- "name": "render",
3830
- "propertyTypeTokenRange": {
5898
+ "initializerTokenRange": {
3831
5899
  "startIndex": 1,
3832
- "endIndex": 4
3833
- }
3834
- }
3835
- ],
3836
- "extendsTokenRanges": []
3837
- },
3838
- {
3839
- "kind": "Interface",
3840
- "canonicalReference": "@pacem/pacem-foundation!Compile.Rule:interface",
3841
- "docComment": "/**\n * A single grammar rule: attempts to recognize a token (or sequence of tokens) at the start of the input string.\n */\n",
3842
- "excerptTokens": [
3843
- {
3844
- "kind": "Content",
3845
- "text": "export interface Rule "
3846
- }
3847
- ],
3848
- "fileUrlPath": "dist/types/compile/parser.d.ts",
3849
- "releaseTag": "Public",
3850
- "name": "Rule",
3851
- "preserveMemberOrder": false,
3852
- "members": [
5900
+ "endIndex": 2
5901
+ },
5902
+ "releaseTag": "Public",
5903
+ "name": "String"
5904
+ },
3853
5905
  {
3854
- "kind": "PropertySignature",
3855
- "canonicalReference": "@pacem/pacem-foundation!Compile.Rule#exec:member",
3856
- "docComment": "/**\n * Attempts to match this rule against the beginning of `input`.\n *\n * @param input - String to match against.\n *\n * @param lexer - Lexer instance, provided to allow recursive tokenization (e.g. for nested/inline content).\n *\n * @returns The matched tokens, or a falsy value when the rule does not match.\n */\n",
5906
+ "kind": "EnumMember",
5907
+ "canonicalReference": "@pacem/pacem-foundation!Compile.SyntaxTokenType.Tag:member",
5908
+ "docComment": "",
3857
5909
  "excerptTokens": [
3858
5910
  {
3859
5911
  "kind": "Content",
3860
- "text": "exec: "
5912
+ "text": "Tag = "
3861
5913
  },
3862
5914
  {
3863
5915
  "kind": "Content",
3864
- "text": "(input: string, lexer?: "
3865
- },
3866
- {
3867
- "kind": "Reference",
3868
- "text": "Lexer",
3869
- "canonicalReference": "@pacem/pacem-foundation!Compile.Lexer:interface"
3870
- },
5916
+ "text": "\"tag\""
5917
+ }
5918
+ ],
5919
+ "initializerTokenRange": {
5920
+ "startIndex": 1,
5921
+ "endIndex": 2
5922
+ },
5923
+ "releaseTag": "Public",
5924
+ "name": "Tag"
5925
+ },
5926
+ {
5927
+ "kind": "EnumMember",
5928
+ "canonicalReference": "@pacem/pacem-foundation!Compile.SyntaxTokenType.TagName:member",
5929
+ "docComment": "",
5930
+ "excerptTokens": [
3871
5931
  {
3872
5932
  "kind": "Content",
3873
- "text": ") => "
5933
+ "text": "TagName = "
3874
5934
  },
3875
5935
  {
3876
- "kind": "Reference",
3877
- "text": "Token",
3878
- "canonicalReference": "@pacem/pacem-foundation!Compile.Token:interface"
3879
- },
5936
+ "kind": "Content",
5937
+ "text": "\"tagname\""
5938
+ }
5939
+ ],
5940
+ "initializerTokenRange": {
5941
+ "startIndex": 1,
5942
+ "endIndex": 2
5943
+ },
5944
+ "releaseTag": "Public",
5945
+ "name": "TagName"
5946
+ },
5947
+ {
5948
+ "kind": "EnumMember",
5949
+ "canonicalReference": "@pacem/pacem-foundation!Compile.SyntaxTokenType.Text:member",
5950
+ "docComment": "",
5951
+ "excerptTokens": [
3880
5952
  {
3881
5953
  "kind": "Content",
3882
- "text": "[]"
5954
+ "text": "Text = "
3883
5955
  },
3884
5956
  {
3885
5957
  "kind": "Content",
3886
- "text": ";"
5958
+ "text": "\"text\""
3887
5959
  }
3888
5960
  ],
3889
- "isReadonly": false,
3890
- "isOptional": false,
3891
- "releaseTag": "Public",
3892
- "name": "exec",
3893
- "propertyTypeTokenRange": {
5961
+ "initializerTokenRange": {
3894
5962
  "startIndex": 1,
3895
- "endIndex": 6
3896
- }
5963
+ "endIndex": 2
5964
+ },
5965
+ "releaseTag": "Public",
5966
+ "name": "Text"
3897
5967
  }
3898
- ],
3899
- "extendsTokenRanges": []
5968
+ ]
3900
5969
  },
3901
5970
  {
3902
5971
  "kind": "Interface",