@gmb/bitmark-parser-generator 1.35.0 → 2.0.0
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.
- package/dist/browser/bitmark-parser-generator.min.js +1 -1
- package/dist/browser/bundle-report.html +2 -2
- package/dist/cjs/BitmarkParserGenerator.js +8 -3
- package/dist/cjs/BitmarkParserGenerator.js.map +1 -1
- package/dist/cjs/ast/Ast.js +1 -0
- package/dist/cjs/ast/Ast.js.map +1 -1
- package/dist/cjs/ast/BaseBuilder.js +91 -54
- package/dist/cjs/ast/BaseBuilder.js.map +1 -1
- package/dist/cjs/ast/Builder.js +776 -389
- package/dist/cjs/ast/Builder.js.map +1 -1
- package/dist/cjs/ast/ResourceBuilder.js +516 -252
- package/dist/cjs/ast/ResourceBuilder.js.map +1 -1
- package/dist/cjs/ast/rules/NodeValidator.js +61 -22
- package/dist/cjs/ast/rules/NodeValidator.js.map +1 -1
- package/dist/cjs/breakscaping/Breakscape.js +96 -71
- package/dist/cjs/breakscaping/Breakscape.js.map +1 -1
- package/dist/cjs/config/raw/bits.js +14 -5
- package/dist/cjs/config/raw/bits.js.map +1 -1
- package/dist/cjs/config/raw/properties.js +7 -2
- package/dist/cjs/config/raw/properties.js.map +1 -1
- package/dist/cjs/generated/build-info.js +1 -1
- package/dist/cjs/generated/build-info.js.map +1 -1
- package/dist/cjs/generated/parser/bitmark/bitmark-peggy-parser.js +1 -0
- package/dist/cjs/generated/parser/bitmark/bitmark-peggy-parser.js.map +1 -1
- package/dist/cjs/generator/AstWalkerGenerator.js +4 -1
- package/dist/cjs/generator/AstWalkerGenerator.js.map +1 -1
- package/dist/cjs/generator/bitmark/BitmarkGenerator.js +959 -338
- package/dist/cjs/generator/bitmark/BitmarkGenerator.js.map +1 -1
- package/dist/cjs/generator/json/JsonGenerator.js +308 -1982
- package/dist/cjs/generator/json/JsonGenerator.js.map +1 -1
- package/dist/cjs/generator/text/TextGenerator.js +26 -8
- package/dist/cjs/generator/text/TextGenerator.js.map +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/model/ast/NodeType.js +27 -8
- package/dist/cjs/model/ast/NodeType.js.map +1 -1
- package/dist/cjs/model/config/enum/PropertyConfigKey.js +1 -0
- package/dist/cjs/model/config/enum/PropertyConfigKey.js.map +1 -1
- package/dist/cjs/model/enum/BitType.js +1 -2
- package/dist/cjs/model/enum/BitType.js.map +1 -1
- package/dist/cjs/model/enum/PropertyFormat.js +3 -1
- package/dist/cjs/model/enum/PropertyFormat.js.map +1 -1
- package/dist/cjs/model/enum/TextFormat.js +1 -1
- package/dist/cjs/parser/bitmark/peg/BitmarkPegParserHelper.js +9 -3
- package/dist/cjs/parser/bitmark/peg/BitmarkPegParserHelper.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/BitmarkPegParserProcessor.js +49 -131
- package/dist/cjs/parser/bitmark/peg/BitmarkPegParserProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/BitmarkPegParserTypes.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/BitmarkPegParserValidator.js +7 -31
- package/dist/cjs/parser/bitmark/peg/BitmarkPegParserValidator.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/BodyContentProcessor.js +255 -0
- package/dist/cjs/parser/bitmark/peg/contentProcessors/BodyContentProcessor.js.map +1 -0
- package/dist/cjs/parser/bitmark/peg/contentProcessors/BookChainContentProcessor.js +2 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/BookChainContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/CardContentProcessor.js +175 -129
- package/dist/cjs/parser/bitmark/peg/contentProcessors/CardContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/ClozeTagContentProcessor.js +8 -2
- package/dist/cjs/parser/bitmark/peg/contentProcessors/ClozeTagContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/ContentProcessorUtils.js +61 -0
- package/dist/cjs/parser/bitmark/peg/contentProcessors/ContentProcessorUtils.js.map +1 -0
- package/dist/cjs/parser/bitmark/peg/contentProcessors/DefaultTagContentProcessor.js +11 -5
- package/dist/cjs/parser/bitmark/peg/contentProcessors/DefaultTagContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/ExampleTagContentProcessor.js +21 -17
- package/dist/cjs/parser/bitmark/peg/contentProcessors/ExampleTagContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/FooterContentProcessor.js +50 -0
- package/dist/cjs/parser/bitmark/peg/contentProcessors/FooterContentProcessor.js.map +1 -0
- package/dist/cjs/parser/bitmark/peg/contentProcessors/GapChainContentProcessor.js +2 -15
- package/dist/cjs/parser/bitmark/peg/contentProcessors/GapChainContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/ImageSourceChainContentProcessor.js +2 -4
- package/dist/cjs/parser/bitmark/peg/contentProcessors/ImageSourceChainContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/ItemLeadTagContentProcessor.js +4 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/ItemLeadTagContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/MarkChainContentProcessor.js +2 -4
- package/dist/cjs/parser/bitmark/peg/contentProcessors/MarkChainContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/MarkConfigChainContentProcessor.js +5 -5
- package/dist/cjs/parser/bitmark/peg/contentProcessors/MarkConfigChainContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/PersonChainContentProcessor.js +5 -6
- package/dist/cjs/parser/bitmark/peg/contentProcessors/PersonChainContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/PropertyContentProcessor.js +23 -7
- package/dist/cjs/parser/bitmark/peg/contentProcessors/PropertyContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/RatingLevelChainContentProcessor.js +5 -5
- package/dist/cjs/parser/bitmark/peg/contentProcessors/RatingLevelChainContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/ReferenceTagContentProcessor.js +3 -2
- package/dist/cjs/parser/bitmark/peg/contentProcessors/ReferenceTagContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/ResourceContentProcessor.js +19 -8
- package/dist/cjs/parser/bitmark/peg/contentProcessors/ResourceContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/ServingsChainContentProcessor.js +4 -6
- package/dist/cjs/parser/bitmark/peg/contentProcessors/ServingsChainContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/TechnicalTermChainContentProcessor.js +4 -5
- package/dist/cjs/parser/bitmark/peg/contentProcessors/TechnicalTermChainContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/TitleTagContentProcessor.js +14 -5
- package/dist/cjs/parser/bitmark/peg/contentProcessors/TitleTagContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/TrueFalseChainContentProcessor.js +37 -21
- package/dist/cjs/parser/bitmark/peg/contentProcessors/TrueFalseChainContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/TrueFalseTagContentProcessor.js +3 -2
- package/dist/cjs/parser/bitmark/peg/contentProcessors/TrueFalseTagContentProcessor.js.map +1 -1
- package/dist/cjs/parser/json/JsonParser.js +73 -765
- package/dist/cjs/parser/json/JsonParser.js.map +1 -1
- package/dist/cjs/parser/text/TextParser.js +61 -2
- package/dist/cjs/parser/text/TextParser.js.map +1 -1
- package/dist/cjs/utils/BitUtils.js +15 -13
- package/dist/cjs/utils/BitUtils.js.map +1 -1
- package/dist/esm/BitmarkParserGenerator.js +8 -3
- package/dist/esm/BitmarkParserGenerator.js.map +1 -1
- package/dist/esm/ast/Ast.js +1 -0
- package/dist/esm/ast/Ast.js.map +1 -1
- package/dist/esm/ast/BaseBuilder.js +91 -54
- package/dist/esm/ast/BaseBuilder.js.map +1 -1
- package/dist/esm/ast/Builder.js +776 -389
- package/dist/esm/ast/Builder.js.map +1 -1
- package/dist/esm/ast/ResourceBuilder.js +516 -252
- package/dist/esm/ast/ResourceBuilder.js.map +1 -1
- package/dist/esm/ast/rules/NodeValidator.js +61 -22
- package/dist/esm/ast/rules/NodeValidator.js.map +1 -1
- package/dist/esm/breakscaping/Breakscape.js +96 -71
- package/dist/esm/breakscaping/Breakscape.js.map +1 -1
- package/dist/esm/config/raw/bits.js +14 -5
- package/dist/esm/config/raw/bits.js.map +1 -1
- package/dist/esm/config/raw/properties.js +7 -2
- package/dist/esm/config/raw/properties.js.map +1 -1
- package/dist/esm/generated/build-info.js +1 -1
- package/dist/esm/generated/build-info.js.map +1 -1
- package/dist/esm/generated/parser/bitmark/bitmark-peggy-parser.js +1 -0
- package/dist/esm/generated/parser/bitmark/bitmark-peggy-parser.js.map +1 -1
- package/dist/esm/generator/AstWalkerGenerator.js +4 -1
- package/dist/esm/generator/AstWalkerGenerator.js.map +1 -1
- package/dist/esm/generator/bitmark/BitmarkGenerator.js +959 -338
- package/dist/esm/generator/bitmark/BitmarkGenerator.js.map +1 -1
- package/dist/esm/generator/json/JsonGenerator.js +308 -1982
- package/dist/esm/generator/json/JsonGenerator.js.map +1 -1
- package/dist/esm/generator/text/TextGenerator.js +26 -8
- package/dist/esm/generator/text/TextGenerator.js.map +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/model/ast/NodeType.js +27 -8
- package/dist/esm/model/ast/NodeType.js.map +1 -1
- package/dist/esm/model/config/enum/PropertyConfigKey.js +1 -0
- package/dist/esm/model/config/enum/PropertyConfigKey.js.map +1 -1
- package/dist/esm/model/enum/BitType.js +1 -2
- package/dist/esm/model/enum/BitType.js.map +1 -1
- package/dist/esm/model/enum/PropertyFormat.js +3 -1
- package/dist/esm/model/enum/PropertyFormat.js.map +1 -1
- package/dist/esm/model/enum/TextFormat.js +1 -1
- package/dist/esm/parser/bitmark/peg/BitmarkPegParserHelper.js +9 -3
- package/dist/esm/parser/bitmark/peg/BitmarkPegParserHelper.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/BitmarkPegParserProcessor.js +49 -131
- package/dist/esm/parser/bitmark/peg/BitmarkPegParserProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/BitmarkPegParserTypes.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/BitmarkPegParserValidator.js +7 -31
- package/dist/esm/parser/bitmark/peg/BitmarkPegParserValidator.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/BodyContentProcessor.js +252 -0
- package/dist/esm/parser/bitmark/peg/contentProcessors/BodyContentProcessor.js.map +1 -0
- package/dist/esm/parser/bitmark/peg/contentProcessors/BookChainContentProcessor.js +2 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/BookChainContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/CardContentProcessor.js +175 -129
- package/dist/esm/parser/bitmark/peg/contentProcessors/CardContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/ClozeTagContentProcessor.js +8 -2
- package/dist/esm/parser/bitmark/peg/contentProcessors/ClozeTagContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/ContentProcessorUtils.js +58 -0
- package/dist/esm/parser/bitmark/peg/contentProcessors/ContentProcessorUtils.js.map +1 -0
- package/dist/esm/parser/bitmark/peg/contentProcessors/DefaultTagContentProcessor.js +11 -5
- package/dist/esm/parser/bitmark/peg/contentProcessors/DefaultTagContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/ExampleTagContentProcessor.js +21 -17
- package/dist/esm/parser/bitmark/peg/contentProcessors/ExampleTagContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/FooterContentProcessor.js +47 -0
- package/dist/esm/parser/bitmark/peg/contentProcessors/FooterContentProcessor.js.map +1 -0
- package/dist/esm/parser/bitmark/peg/contentProcessors/GapChainContentProcessor.js +2 -15
- package/dist/esm/parser/bitmark/peg/contentProcessors/GapChainContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/ImageSourceChainContentProcessor.js +2 -4
- package/dist/esm/parser/bitmark/peg/contentProcessors/ImageSourceChainContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/ItemLeadTagContentProcessor.js +4 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/ItemLeadTagContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/MarkChainContentProcessor.js +2 -4
- package/dist/esm/parser/bitmark/peg/contentProcessors/MarkChainContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/MarkConfigChainContentProcessor.js +5 -5
- package/dist/esm/parser/bitmark/peg/contentProcessors/MarkConfigChainContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/PersonChainContentProcessor.js +5 -6
- package/dist/esm/parser/bitmark/peg/contentProcessors/PersonChainContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/PropertyContentProcessor.js +23 -7
- package/dist/esm/parser/bitmark/peg/contentProcessors/PropertyContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/RatingLevelChainContentProcessor.js +5 -5
- package/dist/esm/parser/bitmark/peg/contentProcessors/RatingLevelChainContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/ReferenceTagContentProcessor.js +3 -2
- package/dist/esm/parser/bitmark/peg/contentProcessors/ReferenceTagContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/ResourceContentProcessor.js +19 -8
- package/dist/esm/parser/bitmark/peg/contentProcessors/ResourceContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/ServingsChainContentProcessor.js +4 -6
- package/dist/esm/parser/bitmark/peg/contentProcessors/ServingsChainContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/TechnicalTermChainContentProcessor.js +4 -5
- package/dist/esm/parser/bitmark/peg/contentProcessors/TechnicalTermChainContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/TitleTagContentProcessor.js +14 -5
- package/dist/esm/parser/bitmark/peg/contentProcessors/TitleTagContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/TrueFalseChainContentProcessor.js +37 -21
- package/dist/esm/parser/bitmark/peg/contentProcessors/TrueFalseChainContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/TrueFalseTagContentProcessor.js +3 -2
- package/dist/esm/parser/bitmark/peg/contentProcessors/TrueFalseTagContentProcessor.js.map +1 -1
- package/dist/esm/parser/json/JsonParser.js +73 -765
- package/dist/esm/parser/json/JsonParser.js.map +1 -1
- package/dist/esm/parser/text/TextParser.js +61 -2
- package/dist/esm/parser/text/TextParser.js.map +1 -1
- package/dist/esm/utils/BitUtils.js +15 -13
- package/dist/esm/utils/BitUtils.js.map +1 -1
- package/dist/types/BitmarkParserGenerator.d.ts +8 -0
- package/dist/types/BitmarkParserGenerator.d.ts.map +1 -1
- package/dist/types/ast/Ast.d.ts.map +1 -1
- package/dist/types/ast/BaseBuilder.d.ts +31 -21
- package/dist/types/ast/BaseBuilder.d.ts.map +1 -1
- package/dist/types/ast/Builder.d.ts +279 -441
- package/dist/types/ast/Builder.d.ts.map +1 -1
- package/dist/types/ast/ResourceBuilder.d.ts +177 -164
- package/dist/types/ast/ResourceBuilder.d.ts.map +1 -1
- package/dist/types/ast/rules/NodeValidator.d.ts +3 -2
- package/dist/types/ast/rules/NodeValidator.d.ts.map +1 -1
- package/dist/types/breakscaping/Breakscape.d.ts +6 -5
- package/dist/types/breakscaping/Breakscape.d.ts.map +1 -1
- package/dist/types/config/raw/bits.d.ts.map +1 -1
- package/dist/types/config/raw/properties.d.ts.map +1 -1
- package/dist/types/generated/parser/bitmark/bitmark-peggy-parser.d.ts.map +1 -1
- package/dist/types/generator/AstWalkerGenerator.d.ts.map +1 -1
- package/dist/types/generator/bitmark/BitmarkGenerator.d.ts +89 -55
- package/dist/types/generator/bitmark/BitmarkGenerator.d.ts.map +1 -1
- package/dist/types/generator/json/JsonGenerator.d.ts +88 -108
- package/dist/types/generator/json/JsonGenerator.d.ts.map +1 -1
- package/dist/types/generator/text/TextGenerator.d.ts +14 -2
- package/dist/types/generator/text/TextGenerator.d.ts.map +1 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/model/ast/NodeType.d.ts +48 -16
- package/dist/types/model/ast/NodeType.d.ts.map +1 -1
- package/dist/types/model/ast/Nodes.d.ts +64 -440
- package/dist/types/model/ast/Nodes.d.ts.map +1 -1
- package/dist/types/model/config/enum/ConfigKey.d.ts +2 -0
- package/dist/types/model/config/enum/ConfigKey.d.ts.map +1 -1
- package/dist/types/model/config/enum/PropertyConfigKey.d.ts +3 -0
- package/dist/types/model/config/enum/PropertyConfigKey.d.ts.map +1 -1
- package/dist/types/model/enum/BitType.d.ts +2 -4
- package/dist/types/model/enum/BitType.d.ts.map +1 -1
- package/dist/types/model/enum/PropertyFormat.d.ts +4 -2
- package/dist/types/model/enum/PropertyFormat.d.ts.map +1 -1
- package/dist/types/model/enum/PropertyTag.d.ts +2 -0
- package/dist/types/model/enum/PropertyTag.d.ts.map +1 -1
- package/dist/types/model/json/BitJson.d.ts +32 -20
- package/dist/types/model/json/BitJson.d.ts.map +1 -1
- package/dist/types/model/json/BodyBitJson.d.ts +16 -12
- package/dist/types/model/json/BodyBitJson.d.ts.map +1 -1
- package/dist/types/model/json/ResourceJson.d.ts +2 -22
- package/dist/types/model/json/ResourceJson.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/BitmarkPegParserHelper.d.ts +3 -2
- package/dist/types/parser/bitmark/peg/BitmarkPegParserHelper.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/BitmarkPegParserProcessor.d.ts +2 -15
- package/dist/types/parser/bitmark/peg/BitmarkPegParserProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/BitmarkPegParserTypes.d.ts +83 -71
- package/dist/types/parser/bitmark/peg/BitmarkPegParserTypes.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/BitmarkPegParserValidator.d.ts +2 -2
- package/dist/types/parser/bitmark/peg/BitmarkPegParserValidator.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/BodyContentProcessor.d.ts +37 -0
- package/dist/types/parser/bitmark/peg/contentProcessors/BodyContentProcessor.d.ts.map +1 -0
- package/dist/types/parser/bitmark/peg/contentProcessors/BookChainContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/CardContentProcessor.d.ts +2 -2
- package/dist/types/parser/bitmark/peg/contentProcessors/CardContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/ClozeTagContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/ContentProcessorUtils.d.ts +15 -0
- package/dist/types/parser/bitmark/peg/contentProcessors/ContentProcessorUtils.d.ts.map +1 -0
- package/dist/types/parser/bitmark/peg/contentProcessors/DefaultTagContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/ExampleTagContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/FooterContentProcessor.d.ts +16 -0
- package/dist/types/parser/bitmark/peg/contentProcessors/FooterContentProcessor.d.ts.map +1 -0
- package/dist/types/parser/bitmark/peg/contentProcessors/GapChainContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/ImageSourceChainContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/ItemLeadTagContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/MarkChainContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/MarkConfigChainContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/PersonChainContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/PropertyContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/RatingLevelChainContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/ReferenceTagContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/ResourceContentProcessor.d.ts +2 -2
- package/dist/types/parser/bitmark/peg/contentProcessors/ResourceContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/ServingsChainContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/TechnicalTermChainContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/TitleTagContentProcessor.d.ts +5 -2
- package/dist/types/parser/bitmark/peg/contentProcessors/TitleTagContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/TrueFalseChainContentProcessor.d.ts +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/TrueFalseChainContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/TrueFalseTagContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/json/JsonParser.d.ts +9 -72
- package/dist/types/parser/json/JsonParser.d.ts.map +1 -1
- package/dist/types/parser/text/TextParser.d.ts +16 -1
- package/dist/types/parser/text/TextParser.d.ts.map +1 -1
- package/dist/types/utils/BitUtils.d.ts +8 -8
- package/dist/types/utils/BitUtils.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/types/parser/bitmark/peg/contentProcessors/TrueFalseChainContentProcessor.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TrueFalseChainContentProcessor.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/TrueFalseChainContentProcessor.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TrueFalseChainContentProcessor.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/TrueFalseChainContentProcessor.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACjE,OAAO,EAAW,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAEtE,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAMnE,OAAO,EACL,UAAU,EAEV,gBAAgB,EAChB,yBAAyB,EACzB,uBAAuB,EAIxB,MAAM,0BAA0B,CAAC;AAElC,iBAAS,8BAA8B,CACrC,OAAO,EAAE,uBAAuB,EAChC,YAAY,EAAE,gBAAgB,EAC9B,OAAO,EAAE,WAAW,EACpB,UAAU,EAAE,cAAc,EAC1B,UAAU,EAAE,UAAU,GAAG,SAAS,EAClC,OAAO,EAAE,UAAU,EACnB,MAAM,EAAE,yBAAyB,EACjC,SAAS,EAAE,QAAQ,EAAE,GACpB,IAAI,CAMN;AAwPD,OAAO,EAAE,8BAA8B,EAAE,CAAC"}
|
package/dist/types/parser/bitmark/peg/contentProcessors/TrueFalseTagContentProcessor.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TrueFalseTagContentProcessor.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/TrueFalseTagContentProcessor.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TrueFalseTagContentProcessor.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/TrueFalseTagContentProcessor.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAGnE,OAAO,EACL,UAAU,EACV,gBAAgB,EAChB,yBAAyB,EACzB,uBAAuB,EAGxB,MAAM,0BAA0B,CAAC;AAElC,iBAAS,4BAA4B,CACnC,QAAQ,EAAE,uBAAuB,EACjC,aAAa,EAAE,gBAAgB,EAC/B,QAAQ,EAAE,WAAW,EACrB,WAAW,EAAE,cAAc,EAC3B,OAAO,EAAE,UAAU,EACnB,MAAM,EAAE,yBAAyB,GAChC,IAAI,CAcN;AACD,OAAO,EAAE,4BAA4B,EAAE,CAAC"}
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import { BitWrapperJson } from '../../model/json/BitWrapperJson';
|
|
2
1
|
import { BitmarkAst } from '../../model/ast/Nodes';
|
|
2
|
+
import { BitWrapperJson } from '../../model/json/BitWrapperJson';
|
|
3
3
|
import { BitJson } from '../../model/json/BitJson';
|
|
4
4
|
/**
|
|
5
5
|
* A parser for parsing bitmark JSON to bitmark AST
|
|
6
6
|
*/
|
|
7
7
|
declare class JsonParser {
|
|
8
|
-
private textGenerator;
|
|
9
|
-
private textParser;
|
|
10
|
-
constructor();
|
|
11
8
|
/**
|
|
12
9
|
* Convert JSON to AST.
|
|
13
10
|
*
|
|
@@ -47,76 +44,16 @@ declare class JsonParser {
|
|
|
47
44
|
*/
|
|
48
45
|
bitToBitWrapper(bit: BitJson): BitWrapperJson;
|
|
49
46
|
private bitToAst;
|
|
50
|
-
private
|
|
51
|
-
private
|
|
52
|
-
private
|
|
53
|
-
private
|
|
54
|
-
private flashcardBitsToAst;
|
|
55
|
-
private definitionsBitsToAst;
|
|
56
|
-
private descriptionsBitsToAst;
|
|
57
|
-
private statementBitsToAst;
|
|
58
|
-
private choiceBitsToAst;
|
|
59
|
-
private responseBitsToAst;
|
|
60
|
-
private selectOptionBitsToAst;
|
|
61
|
-
private highlightTextBitsToAst;
|
|
62
|
-
private quizBitsToAst;
|
|
63
|
-
private headingBitToAst;
|
|
64
|
-
private pairBitsToAst;
|
|
65
|
-
private matrixBitsToAst;
|
|
66
|
-
private matrixCellsToAst;
|
|
67
|
-
private tableToAst;
|
|
68
|
-
private questionBitsToAst;
|
|
69
|
-
private botResponseBitsToAst;
|
|
70
|
-
private technicalTermToAst;
|
|
71
|
-
private servingsToAst;
|
|
72
|
-
private ingredientsBitsToAst;
|
|
73
|
-
private ratingLevelStartEndToAst;
|
|
74
|
-
private captionDefinitionListToAst;
|
|
75
|
-
private listItemsToAst;
|
|
47
|
+
private processStatements;
|
|
48
|
+
private processResponses;
|
|
49
|
+
private processBotResponse;
|
|
50
|
+
private processListItems;
|
|
76
51
|
private getResourceType;
|
|
77
|
-
private
|
|
78
|
-
private
|
|
79
|
-
private
|
|
80
|
-
private
|
|
81
|
-
private bodyBitToAst;
|
|
82
|
-
private footerToAst;
|
|
83
|
-
private referenceToAst;
|
|
84
|
-
private gapBitToAst;
|
|
85
|
-
private markBitToAst;
|
|
86
|
-
private selectBitToAst;
|
|
87
|
-
private highlightBitToAst;
|
|
88
|
-
private parseItemLeadHintInstruction;
|
|
89
|
-
private parseItemLeadHintInstructionPageNumberMarginNumber;
|
|
52
|
+
private processResources;
|
|
53
|
+
private processBody;
|
|
54
|
+
private processFooter;
|
|
55
|
+
private processReference;
|
|
90
56
|
private parseExample;
|
|
91
|
-
/**
|
|
92
|
-
* Convert the JsonText from the JSON to the AST format:
|
|
93
|
-
* Input:
|
|
94
|
-
* - Bitmark v2: breakscaped string
|
|
95
|
-
* - Bitmark v3: bitmark text JSON (TextAst)
|
|
96
|
-
* Output:
|
|
97
|
-
* - breakscaped string
|
|
98
|
-
*
|
|
99
|
-
* In the case of Bitmark v2 type texts, there is nothing to do but cast the type.
|
|
100
|
-
*
|
|
101
|
-
* @param breakscaped string or TextAst or breakscaped string[] or TextAst[]
|
|
102
|
-
* @param textFormat format of TextAst
|
|
103
|
-
* @returns Breakscaped string or breakscaped string[]
|
|
104
|
-
*/
|
|
105
|
-
private convertJsonTextToBreakscapedString;
|
|
106
|
-
/**
|
|
107
|
-
* Convert the string from the JSON to the AST format:
|
|
108
|
-
* Input:
|
|
109
|
-
* - Bitmark v2/v3: string
|
|
110
|
-
* Output:
|
|
111
|
-
* - breakscaped string
|
|
112
|
-
*
|
|
113
|
-
* In the case of Bitmark v2 type texts, there is nothing to do but cast the type.
|
|
114
|
-
*
|
|
115
|
-
* @param text string or TextAst or string[] or TextAst[]
|
|
116
|
-
* @param textFormat format of TextAst
|
|
117
|
-
* @returns Breakscaped string or breakscaped string[]
|
|
118
|
-
*/
|
|
119
|
-
private convertStringToBreakscapedString;
|
|
120
57
|
}
|
|
121
58
|
export { JsonParser };
|
|
122
59
|
//# sourceMappingURL=JsonParser.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JsonParser.d.ts","sourceRoot":"","sources":["../../../../src/parser/json/JsonParser.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"JsonParser.d.ts","sourceRoot":"","sources":["../../../../src/parser/json/JsonParser.ts"],"names":[],"mappings":"AAEA,OAAO,EAAO,UAAU,EAAyB,MAAM,uBAAuB,CAAC;AAK/E,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAKjE,OAAO,EACL,OAAO,EAMR,MAAM,0BAA0B,CAAC;AAalC;;GAEG;AACH,cAAM,UAAU;IACd;;;;;;;OAOG;IACH,KAAK,CAAC,IAAI,EAAE,OAAO,GAAG,UAAU;IAqBhC;;;;;;OAMG;IACH,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,GAAG,cAAc,EAAE;IAqCxD;;;;;OAKG;IACH,YAAY,CAAC,UAAU,EAAE,OAAO,GAAG,OAAO;IAQ1C;;;;;OAKG;IACH,KAAK,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO;IAQ5B;;;;;OAKG;IACH,eAAe,CAAC,GAAG,EAAE,OAAO,GAAG,cAAc;IAM7C,OAAO,CAAC,QAAQ;IA2ChB,OAAO,CAAC,iBAAiB;IA2BzB,OAAO,CAAC,gBAAgB;IAQxB,OAAO,CAAC,kBAAkB;IAO1B,OAAO,CAAC,gBAAgB;IAuBxB,OAAO,CAAC,eAAe;IASvB,OAAO,CAAC,gBAAgB;IA+BxB,OAAO,CAAC,WAAW;IAOnB,OAAO,CAAC,aAAa;IAOrB,OAAO,CAAC,gBAAgB;IAcxB,OAAO,CAAC,YAAY;CAUrB;AAED,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { TextAst } from '../../model/ast/TextNodes';
|
|
1
|
+
import { JsonText, TextAst } from '../../model/ast/TextNodes';
|
|
2
2
|
import { TextFormatType } from '../../model/enum/TextFormat';
|
|
3
|
+
import { BodyBitJson } from '../../model/json/BodyBitJson';
|
|
3
4
|
export interface BitmarkTextParserOptions {
|
|
4
5
|
textFormat?: TextFormatType;
|
|
5
6
|
}
|
|
@@ -33,6 +34,20 @@ declare class TextParser {
|
|
|
33
34
|
* @returns bitmark text AST as plain JS object
|
|
34
35
|
*/
|
|
35
36
|
toAst(text: string | TextAst | undefined, options?: BitmarkTextParserOptions): TextAst;
|
|
37
|
+
/**
|
|
38
|
+
* Extract all the body bits from the text AST
|
|
39
|
+
*
|
|
40
|
+
* @param text
|
|
41
|
+
* @returns
|
|
42
|
+
*/
|
|
43
|
+
extractBodyBits(text: JsonText): BodyBitJson[];
|
|
44
|
+
/**
|
|
45
|
+
* Walk all the body bits from the text AST
|
|
46
|
+
*
|
|
47
|
+
* @param text
|
|
48
|
+
* @returns
|
|
49
|
+
*/
|
|
50
|
+
walkBodyBits(text: JsonText, callback: (parent: TextAst, index: number, bodyBit: BodyBitJson) => void): void;
|
|
36
51
|
}
|
|
37
52
|
export { TextParser };
|
|
38
53
|
//# sourceMappingURL=TextParser.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextParser.d.ts","sourceRoot":"","sources":["../../../../src/parser/text/TextParser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"TextParser.d.ts","sourceRoot":"","sources":["../../../../src/parser/text/TextParser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAc,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAEzE,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAK3D,MAAM,WAAW,wBAAwB;IACvC,UAAU,CAAC,EAAE,cAAc,CAAC;CAC7B;AAMD,cAAM,UAAU;IACd;;OAEG;IACH,OAAO,IAAI,MAAM;IAMjB;;;;;;OAMG;IACH,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,SAAS;IAiBzD;;;;;OAKG;IACH,KAAK,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO;IAW5B;;;;;;;;OAQG;IACH,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,EAAE,OAAO,CAAC,EAAE,wBAAwB,GAAG,OAAO;IAsCtF;;;;;OAKG;IACI,eAAe,CAAC,IAAI,EAAE,QAAQ,GAAG,WAAW,EAAE;IA0BrD;;;;;OAKG;IACI,YAAY,CAAC,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,KAAK,IAAI,GAAG,IAAI;CAoBpH;AAED,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { WithExampleJson } from '../ast/BaseBuilder';
|
|
2
|
+
import { ExampleJson } from '../model/json/BitJson';
|
|
3
3
|
declare class BitUtils {
|
|
4
4
|
/**
|
|
5
|
-
* Helper function to fill in the example / isExample of a node based on the values of
|
|
5
|
+
* Helper function to fill in the example / isExample of a node based on the values of __isDefaultExample and example.
|
|
6
6
|
* This function if for 'string' examples.
|
|
7
7
|
*
|
|
8
8
|
* @param nodes
|
|
9
|
-
* @param
|
|
9
|
+
* @param __isDefaultExample
|
|
10
10
|
* @param example
|
|
11
11
|
* @param firstOnly
|
|
12
12
|
* @returns
|
|
13
13
|
*/
|
|
14
|
-
fillStringExample(nodes:
|
|
14
|
+
fillStringExample(nodes: WithExampleJson | WithExampleJson[], __isDefaultExample: boolean | undefined, example: ExampleJson | undefined, firstOnly: boolean): void;
|
|
15
15
|
/**
|
|
16
|
-
* Helper function to fill in the example / isExample of a node based on the values of
|
|
16
|
+
* Helper function to fill in the example / isExample of a node based on the values of __isDefaultExample and example.
|
|
17
17
|
* This function if for 'boolean' examples.
|
|
18
18
|
*
|
|
19
19
|
* @param nodes
|
|
20
|
-
* @param
|
|
20
|
+
* @param __isDefaultExample
|
|
21
21
|
* @param example
|
|
22
22
|
* @param firstCorrectOnly
|
|
23
23
|
* @returns
|
|
24
24
|
*/
|
|
25
|
-
fillBooleanExample(nodes:
|
|
25
|
+
fillBooleanExample(nodes: WithExampleJson | WithExampleJson[], __isDefaultExample: boolean | undefined, example: ExampleJson | undefined, firstCorrectOnly: boolean): void;
|
|
26
26
|
}
|
|
27
27
|
declare const instance: BitUtils;
|
|
28
28
|
export { instance as BitUtils };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BitUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/BitUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"BitUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/BitUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAOpD,cAAM,QAAQ;IACZ;;;;;;;;;OASG;IACH,iBAAiB,CACf,KAAK,EAAE,eAAe,GAAG,eAAe,EAAE,EAC1C,kBAAkB,EAAE,OAAO,GAAG,SAAS,EACvC,OAAO,EAAE,WAAW,GAAG,SAAS,EAChC,SAAS,EAAE,OAAO;IAmBpB;;;;;;;;;OASG;IACH,kBAAkB,CAChB,KAAK,EAAE,eAAe,GAAG,eAAe,EAAE,EAC1C,kBAAkB,EAAE,OAAO,GAAG,SAAS,EACvC,OAAO,EAAE,WAAW,GAAG,SAAS,EAChC,gBAAgB,EAAE,OAAO;CAmB5B;AAED,QAAA,MAAM,QAAQ,UAAiB,CAAC;AAEhC,OAAO,EAAE,QAAQ,IAAI,QAAQ,EAAE,CAAC"}
|