@smile-digital-health/crl 0.7.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.
Files changed (107) hide show
  1. package/README.md +502 -0
  2. package/dist/ast/builder.d.ts +45 -0
  3. package/dist/ast/builder.js +389 -0
  4. package/dist/ast/builder.js.map +1 -0
  5. package/dist/ast/types.d.ts +223 -0
  6. package/dist/ast/types.js +73 -0
  7. package/dist/ast/types.js.map +1 -0
  8. package/dist/ast/utils.d.ts +14 -0
  9. package/dist/ast/utils.js +65 -0
  10. package/dist/ast/utils.js.map +1 -0
  11. package/dist/cli/run-ast.d.ts +1 -0
  12. package/dist/cli/run-ast.js +24 -0
  13. package/dist/cli/run-ast.js.map +1 -0
  14. package/dist/cli/run-lexer.d.ts +1 -0
  15. package/dist/cli/run-lexer.js +41 -0
  16. package/dist/cli/run-lexer.js.map +1 -0
  17. package/dist/cli/run-parser.d.ts +1 -0
  18. package/dist/cli/run-parser.js +33 -0
  19. package/dist/cli/run-parser.js.map +1 -0
  20. package/dist/cli/run-transformer-fsh-to-crl.d.ts +1 -0
  21. package/dist/cli/run-transformer-fsh-to-crl.js +20 -0
  22. package/dist/cli/run-transformer-fsh-to-crl.js.map +1 -0
  23. package/dist/cli/run-validator.d.ts +1 -0
  24. package/dist/cli/run-validator.js +37 -0
  25. package/dist/cli/run-validator.js.map +1 -0
  26. package/dist/grammar/activityTypes.d.ts +2 -0
  27. package/dist/grammar/activityTypes.js +9 -0
  28. package/dist/grammar/activityTypes.js.map +1 -0
  29. package/dist/grammar/conceptTypes.d.ts +2 -0
  30. package/dist/grammar/conceptTypes.js +9 -0
  31. package/dist/grammar/conceptTypes.js.map +1 -0
  32. package/dist/grammar/conceptValueTypes.d.ts +2 -0
  33. package/dist/grammar/conceptValueTypes.js +9 -0
  34. package/dist/grammar/conceptValueTypes.js.map +1 -0
  35. package/dist/grammar/generated/antlr/CRLLexer.d.ts +84 -0
  36. package/dist/grammar/generated/antlr/CRLLexer.js +505 -0
  37. package/dist/grammar/generated/antlr/CRLLexer.js.map +1 -0
  38. package/dist/grammar/generated/antlr/CRLParser.d.ts +653 -0
  39. package/dist/grammar/generated/antlr/CRLParser.js +3466 -0
  40. package/dist/grammar/generated/antlr/CRLParser.js.map +1 -0
  41. package/dist/grammar/generated/antlr/CRLParserListener.d.ts +162 -0
  42. package/dist/grammar/generated/antlr/CRLParserListener.js +3 -0
  43. package/dist/grammar/generated/antlr/CRLParserListener.js.map +1 -0
  44. package/dist/grammar/generated/antlr/CRLParserVisitor.d.ts +109 -0
  45. package/dist/grammar/generated/antlr/CRLParserVisitor.js +3 -0
  46. package/dist/grammar/generated/antlr/CRLParserVisitor.js.map +1 -0
  47. package/dist/grammar/generated/types/activityTypes.json +16 -0
  48. package/dist/grammar/generated/types/conceptTypes.json +26 -0
  49. package/dist/grammar/generated/types/conceptValueTypes.json +14 -0
  50. package/dist/index.d.ts +18 -0
  51. package/dist/index.js +147 -0
  52. package/dist/index.js.map +1 -0
  53. package/dist/lexer/CRLLexerErrorListener.d.ts +16 -0
  54. package/dist/lexer/CRLLexerErrorListener.js +168 -0
  55. package/dist/lexer/CRLLexerErrorListener.js.map +1 -0
  56. package/dist/lexer/createLexer.d.ts +6 -0
  57. package/dist/lexer/createLexer.js +14 -0
  58. package/dist/lexer/createLexer.js.map +1 -0
  59. package/dist/lexer/index.d.ts +1 -0
  60. package/dist/lexer/index.js +6 -0
  61. package/dist/lexer/index.js.map +1 -0
  62. package/dist/parser/CustomParserErrorListener.d.ts +8 -0
  63. package/dist/parser/CustomParserErrorListener.js +37 -0
  64. package/dist/parser/CustomParserErrorListener.js.map +1 -0
  65. package/dist/parser/createParser.d.ts +7 -0
  66. package/dist/parser/createParser.js +17 -0
  67. package/dist/parser/createParser.js.map +1 -0
  68. package/dist/transformer/fsh-to-crl/mapping/activityDefinition.d.ts +41 -0
  69. package/dist/transformer/fsh-to-crl/mapping/activityDefinition.js +229 -0
  70. package/dist/transformer/fsh-to-crl/mapping/activityDefinition.js.map +1 -0
  71. package/dist/transformer/fsh-to-crl/mapping/concept.d.ts +1 -0
  72. package/dist/transformer/fsh-to-crl/mapping/concept.js +14 -0
  73. package/dist/transformer/fsh-to-crl/mapping/concept.js.map +1 -0
  74. package/dist/transformer/fsh-to-crl/mapping/planDefinition.d.ts +14 -0
  75. package/dist/transformer/fsh-to-crl/mapping/planDefinition.js +235 -0
  76. package/dist/transformer/fsh-to-crl/mapping/planDefinition.js.map +1 -0
  77. package/dist/transformer/fsh-to-crl/mapping/terminology.d.ts +1 -0
  78. package/dist/transformer/fsh-to-crl/mapping/terminology.js +10 -0
  79. package/dist/transformer/fsh-to-crl/mapping/terminology.js.map +1 -0
  80. package/dist/transformer/fsh-to-crl/transformer.d.ts +1 -0
  81. package/dist/transformer/fsh-to-crl/transformer.js +172 -0
  82. package/dist/transformer/fsh-to-crl/transformer.js.map +1 -0
  83. package/dist/transformer/fsh-to-crl/utils/activityDeduplication.d.ts +11 -0
  84. package/dist/transformer/fsh-to-crl/utils/activityDeduplication.js +23 -0
  85. package/dist/transformer/fsh-to-crl/utils/activityDeduplication.js.map +1 -0
  86. package/dist/transformer/fsh-to-crl/utils/fshPathFunctions.d.ts +12 -0
  87. package/dist/transformer/fsh-to-crl/utils/fshPathFunctions.js +73 -0
  88. package/dist/transformer/fsh-to-crl/utils/fshPathFunctions.js.map +1 -0
  89. package/dist/types/errors.d.ts +8 -0
  90. package/dist/types/errors.js +3 -0
  91. package/dist/types/errors.js.map +1 -0
  92. package/dist/validator/actionUniquenessValidator.d.ts +20 -0
  93. package/dist/validator/actionUniquenessValidator.js +280 -0
  94. package/dist/validator/actionUniquenessValidator.js.map +1 -0
  95. package/dist/validator/cycleDetector.d.ts +13 -0
  96. package/dist/validator/cycleDetector.js +79 -0
  97. package/dist/validator/cycleDetector.js.map +1 -0
  98. package/dist/validator/nameUniquenessValidator.d.ts +5 -0
  99. package/dist/validator/nameUniquenessValidator.js +87 -0
  100. package/dist/validator/nameUniquenessValidator.js.map +1 -0
  101. package/dist/validator/unusedDeclarationsValidator.d.ts +21 -0
  102. package/dist/validator/unusedDeclarationsValidator.js +190 -0
  103. package/dist/validator/unusedDeclarationsValidator.js.map +1 -0
  104. package/dist/validator/validator.d.ts +27 -0
  105. package/dist/validator/validator.js +30 -0
  106. package/dist/validator/validator.js.map +1 -0
  107. package/package.json +92 -0
@@ -0,0 +1,73 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.conceptValueTypes = exports.conceptTypes = exports.activityTypes = exports.InferredFromDefinitionType = exports.InferredFromConceptType = exports.GroupExpressionType = exports.NotExpressionType = exports.InformalOrType = exports.InformalAndType = exports.ConceptReferenceType = exports.CodedFromDefinitionType = exports.TerminologySystemCodeType = exports.TerminologyFreeTextType = exports.TerminologyValuesetType = exports.TerminologyType = exports.UseDecisionType = exports.DoActivityType = exports.ActionStatementType = exports.SingleActionType = exports.BlockBodyType = exports.WhenBlockType = exports.DecisionBodyType = exports.DecisionType = exports.FileType = void 0;
4
+ exports.FileType = {
5
+ type: "CRL",
6
+ };
7
+ exports.DecisionType = {
8
+ type: "Decision",
9
+ };
10
+ exports.DecisionBodyType = {
11
+ type: "DecisionBody",
12
+ };
13
+ exports.WhenBlockType = {
14
+ type: "WhenBlock",
15
+ };
16
+ exports.BlockBodyType = {
17
+ type: "BlockBody",
18
+ };
19
+ exports.SingleActionType = {
20
+ type: "SingleAction",
21
+ };
22
+ exports.ActionStatementType = {
23
+ type: "ActionStatement",
24
+ };
25
+ exports.DoActivityType = {
26
+ type: "DoActivity",
27
+ };
28
+ exports.UseDecisionType = {
29
+ type: "UseDecision",
30
+ };
31
+ exports.TerminologyType = {
32
+ type: "Terminology",
33
+ };
34
+ exports.TerminologyValuesetType = {
35
+ type: "TerminologyValueset",
36
+ };
37
+ exports.TerminologyFreeTextType = {
38
+ type: "TerminologyFreeText",
39
+ };
40
+ exports.TerminologySystemCodeType = {
41
+ type: "TerminologySystemCode",
42
+ };
43
+ exports.CodedFromDefinitionType = {
44
+ type: "CodedFromDefinition",
45
+ };
46
+ exports.ConceptReferenceType = {
47
+ type: "ConceptReference",
48
+ };
49
+ exports.InformalAndType = {
50
+ type: "AndExpression",
51
+ };
52
+ exports.InformalOrType = {
53
+ type: "OrExpression",
54
+ };
55
+ exports.NotExpressionType = {
56
+ type: "NotExpression",
57
+ };
58
+ exports.GroupExpressionType = {
59
+ type: "GroupExpression",
60
+ };
61
+ exports.InferredFromConceptType = {
62
+ type: "InferredFromDefinitionConcept",
63
+ };
64
+ exports.InferredFromDefinitionType = {
65
+ type: "InferredFromDefinition",
66
+ };
67
+ var activityTypes_1 = require("../grammar/activityTypes");
68
+ Object.defineProperty(exports, "activityTypes", { enumerable: true, get: function () { return activityTypes_1.activityTypes; } });
69
+ var conceptTypes_1 = require("../grammar/conceptTypes");
70
+ Object.defineProperty(exports, "conceptTypes", { enumerable: true, get: function () { return conceptTypes_1.conceptTypes; } });
71
+ var conceptValueTypes_1 = require("../grammar/conceptValueTypes");
72
+ Object.defineProperty(exports, "conceptValueTypes", { enumerable: true, get: function () { return conceptValueTypes_1.conceptValueTypes; } });
73
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/ast/types.ts"],"names":[],"mappings":";;;AAmBa,QAAA,QAAQ,GAAG;IACtB,IAAI,EAAE,KAAc;CACrB,CAAC;AAcW,QAAA,YAAY,GAAG;IAC1B,IAAI,EAAE,UAAmB;CAC1B,CAAC;AAQW,QAAA,gBAAgB,GAAG;IAC9B,IAAI,EAAE,cAAuB;CAC9B,CAAC;AASW,QAAA,aAAa,GAAG;IAC3B,IAAI,EAAE,WAAoB;CAC3B,CAAC;AAYW,QAAA,aAAa,GAAG;IAC3B,IAAI,EAAE,WAAoB;CAC3B,CAAC;AAQW,QAAA,gBAAgB,GAAG;IAC9B,IAAI,EAAE,cAAuB;CAC9B,CAAC;AAQW,QAAA,mBAAmB,GAAG;IACjC,IAAI,EAAE,iBAA0B;CACjC,CAAC;AAQW,QAAA,cAAc,GAAG;IAC5B,IAAI,EAAE,YAAqB;CAC5B,CAAC;AAQW,QAAA,eAAe,GAAG;IAC7B,IAAI,EAAE,aAAsB;CAC7B,CAAC;AAWW,QAAA,eAAe,GAAG;IAC7B,IAAI,EAAE,aAAsB;CAC7B,CAAC;AAcW,QAAA,uBAAuB,GAAG;IACrC,IAAI,EAAE,qBAA8B;CACrC,CAAC;AAQW,QAAA,uBAAuB,GAAG;IACrC,IAAI,EAAE,qBAA8B;CACrC,CAAC;AASW,QAAA,yBAAyB,GAAG;IACvC,IAAI,EAAE,uBAAgC;CACvC,CAAC;AAqCW,QAAA,uBAAuB,GAAG;IACrC,IAAI,EAAE,qBAA8B;CACrC,CAAC;AAQW,QAAA,oBAAoB,GAAG;IAClC,IAAI,EAAE,kBAA2B;CAClC,CAAC;AAOW,QAAA,eAAe,GAAG;IAC7B,IAAI,EAAE,eAAwB;CAC/B,CAAC;AAMW,QAAA,cAAc,GAAG;IAC5B,IAAI,EAAE,cAAuB;CAC9B,CAAC;AAKW,QAAA,iBAAiB,GAAG;IAC/B,IAAI,EAAE,eAAwB;CAC/B,CAAC;AAeW,QAAA,mBAAmB,GAAG;IACjC,IAAI,EAAE,iBAA0B;CACjC,CAAC;AAQW,QAAA,uBAAuB,GAAG;IACrC,IAAI,EAAE,+BAAwC;CAC/C,CAAC;AAMW,QAAA,0BAA0B,GAAG;IACxC,IAAI,EAAE,wBAAiC;CACxC,CAAC;AAYF,0DAAyD;AAAhD,8GAAA,aAAa,OAAA;AACtB,wDAAuD;AAA9C,4GAAA,YAAY,OAAA;AACrB,kEAAiE;AAAxD,sHAAA,iBAAiB,OAAA"}
@@ -0,0 +1,14 @@
1
+ import { ASTNode } from "./types";
2
+ interface ASTComparison {
3
+ lineCountsMatch: boolean;
4
+ whitespaceNormalizedMatch: boolean;
5
+ structureMatch: boolean;
6
+ generatedLineCount: number;
7
+ expectedLineCount: number;
8
+ maxLines: number;
9
+ generatedLines: string[];
10
+ expectedLines: string[];
11
+ }
12
+ export declare function printAST(node: ASTNode, indent?: number): string;
13
+ export declare function compareASTs(generatedAST: string, expectedAST: string): ASTComparison;
14
+ export {};
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.printAST = printAST;
4
+ exports.compareASTs = compareASTs;
5
+ function printAST(node, indent = 0) {
6
+ const spaces = " ".repeat(indent);
7
+ let output = `${spaces}${node.type}\n`;
8
+ if ("name" in node) {
9
+ output += `${spaces} name: ${node.name}\n`;
10
+ }
11
+ if ("decisionName" in node) {
12
+ output += `${spaces} decisionName: "${node.decisionName}"\n`;
13
+ }
14
+ if ("activityName" in node) {
15
+ output += `${spaces} activityName: "${node.activityName}"\n`;
16
+ }
17
+ if ("conceptName" in node) {
18
+ output += `${spaces} conceptName: "${node.conceptName}"\n`;
19
+ }
20
+ if ("qualifier" in node && node.qualifier) {
21
+ output += `${spaces} qualifier: "${String(node.qualifier)}"\n`;
22
+ }
23
+ if ("activityTypeValue" in node && node.activityTypeValue) {
24
+ output += `${spaces} activityTypeValue: "${String(node.activityTypeValue)}"\n`;
25
+ }
26
+ if ("rationale" in node && node.rationale) {
27
+ output += `${spaces} rationale: "${String(node.rationale)}"\n`;
28
+ }
29
+ if ("statements" in node && Array.isArray(node.statements)) {
30
+ node.statements.forEach((statement) => {
31
+ output += printAST(statement, indent + 1);
32
+ });
33
+ }
34
+ if ("body" in node && node.body) {
35
+ const body = node.body;
36
+ output += printAST(body, indent + 1);
37
+ }
38
+ if ("action" in node && node.action) {
39
+ const action = node.action;
40
+ output += printAST(action, indent + 1);
41
+ }
42
+ return output;
43
+ }
44
+ function compareASTs(generatedAST, expectedAST) {
45
+ const normalizedGenerated = generatedAST.replace(/\r\n/g, "\n").trim();
46
+ const normalizedExpected = expectedAST.replace(/\r\n/g, "\n").trim();
47
+ const generatedLines = normalizedGenerated.split("\n");
48
+ const expectedLines = normalizedExpected.split("\n");
49
+ const generatedLineCount = generatedLines.length;
50
+ const expectedLineCount = expectedLines.length;
51
+ const maxLines = Math.max(generatedLineCount, expectedLineCount);
52
+ const noWhitespaceGenerated = normalizedGenerated.replace(/\s+/g, "");
53
+ const noWhitespaceExpected = normalizedExpected.replace(/\s+/g, "");
54
+ return {
55
+ lineCountsMatch: generatedLineCount === expectedLineCount,
56
+ whitespaceNormalizedMatch: normalizedGenerated === normalizedExpected,
57
+ structureMatch: noWhitespaceGenerated === noWhitespaceExpected,
58
+ generatedLineCount,
59
+ expectedLineCount,
60
+ maxLines,
61
+ generatedLines,
62
+ expectedLines,
63
+ };
64
+ }
65
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/ast/utils.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const fs_1 = require("fs");
4
+ const path_1 = require("path");
5
+ const builder_1 = require("../ast/builder");
6
+ const utils_1 = require("../ast/utils");
7
+ const createParser_1 = require("../parser/createParser");
8
+ const examplePath = (0, path_1.join)(__dirname, "../examples/crl/who/smart-example-immz/IMMZ_All_Decisions.crl");
9
+ const input = (0, fs_1.readFileSync)(examplePath, "utf-8");
10
+ const { parser } = (0, createParser_1.createParser)(input);
11
+ const tree = parser.crl();
12
+ const builder = new builder_1.CRLAstBuilder();
13
+ const ast = builder.visit(tree);
14
+ const prettyOutput = process.argv.includes("--pretty");
15
+ if (!prettyOutput) {
16
+ console.log(JSON.stringify(ast, null, 2));
17
+ }
18
+ else {
19
+ console.warn("[WARNING] Pretty mode is currently broken and may not display the AST correctly.");
20
+ console.log("AST Representation:");
21
+ console.log("==================");
22
+ console.log((0, utils_1.printAST)(ast));
23
+ }
24
+ //# sourceMappingURL=run-ast.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"run-ast.js","sourceRoot":"","sources":["../../src/cli/run-ast.ts"],"names":[],"mappings":";;AAAA,2BAAkC;AAClC,+BAA4B;AAE5B,4CAA+C;AAE/C,wCAAwC;AACxC,yDAAsD;AAGtD,MAAM,WAAW,GAAG,IAAA,WAAI,EACtB,SAAS,EACT,+DAA+D,CAChE,CAAC;AACF,MAAM,KAAK,GAAG,IAAA,iBAAY,EAAC,WAAW,EAAE,OAAO,CAAC,CAAC;AAGjD,MAAM,EAAE,MAAM,EAAE,GAAG,IAAA,2BAAY,EAAC,KAAK,CAAC,CAAC;AAGvC,MAAM,IAAI,GAAG,MAAM,CAAC,GAAG,EAAE,CAAC;AAG1B,MAAM,OAAO,GAAG,IAAI,uBAAa,EAAE,CAAC;AACpC,MAAM,GAAG,GAAG,OAAO,CAAC,KAAK,CAAC,IAAI,CAAQ,CAAC;AAGvC,MAAM,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;AAEvD,IAAI,CAAC,YAAY,EAAE,CAAC;IAElB,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;AAC5C,CAAC;KAAM,CAAC;IAEN,OAAO,CAAC,IAAI,CAAC,kFAAkF,CAAC,CAAC;IACjG,OAAO,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAC;IACnC,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IAClC,OAAO,CAAC,GAAG,CAAC,IAAA,gBAAQ,EAAC,GAAG,CAAC,CAAC,CAAC;AAC7B,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const fs_1 = require("fs");
4
+ const path_1 = require("path");
5
+ const CRLLexer_1 = require("../grammar/generated/antlr/CRLLexer");
6
+ const createLexer_1 = require("../lexer/createLexer");
7
+ const examplePath = (0, path_1.join)(__dirname, "../examples/crl/who/smart-example-immz/IMMZ_All_Decisions.crl");
8
+ const input = (0, fs_1.readFileSync)(examplePath, "utf8");
9
+ const { lexer } = (0, createLexer_1.createLexer)(input);
10
+ const tokens = [];
11
+ let token = lexer.nextToken();
12
+ while (token.type !== CRLLexer_1.CRLLexer.EOF) {
13
+ if (token.channel === 0) {
14
+ const typeName = lexer.vocabulary.getSymbolicName(token.type) ?? `Unknown (${token.type})`;
15
+ tokens.push({
16
+ line: token.line,
17
+ column: token.charPositionInLine,
18
+ type: typeName,
19
+ text: token.text ?? "",
20
+ });
21
+ }
22
+ token = lexer.nextToken();
23
+ }
24
+ const prettyOutput = process.argv.includes("--pretty");
25
+ if (!prettyOutput) {
26
+ console.log(JSON.stringify(tokens, null, 2));
27
+ }
28
+ else {
29
+ console.log("\nTokenizing grammar-example.crl:\n");
30
+ console.log("Line | Column | Type | Text");
31
+ console.log("-----|--------|------|------");
32
+ let lastLine = 0;
33
+ tokens.forEach((token) => {
34
+ if (token.line !== lastLine) {
35
+ console.log();
36
+ lastLine = token.line;
37
+ }
38
+ console.log(`${token.line.toString().padStart(4)} | ${token.column.toString().padStart(6)} | ${token.type.padEnd(20)} | "${token.text}"`);
39
+ });
40
+ }
41
+ //# sourceMappingURL=run-lexer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"run-lexer.js","sourceRoot":"","sources":["../../src/cli/run-lexer.ts"],"names":[],"mappings":";;AAAA,2BAAkC;AAClC,+BAA4B;AAE5B,kEAA+D;AAC/D,sDAAmD;AAGnD,MAAM,WAAW,GAAG,IAAA,WAAI,EACtB,SAAS,EACT,+DAA+D,CAChE,CAAC;AAGF,MAAM,KAAK,GAAG,IAAA,iBAAY,EAAC,WAAW,EAAE,MAAM,CAAC,CAAC;AAGhD,MAAM,EAAE,KAAK,EAAE,GAAG,IAAA,yBAAW,EAAC,KAAK,CAAC,CAAC;AAGrC,MAAM,MAAM,GAKP,EAAE,CAAC;AAER,IAAI,KAAK,GAAG,KAAK,CAAC,SAAS,EAAE,CAAC;AAC9B,OAAO,KAAK,CAAC,IAAI,KAAK,mBAAQ,CAAC,GAAG,EAAE,CAAC;IAEnC,IAAI,KAAK,CAAC,OAAO,KAAK,CAAC,EAAE,CAAC;QAExB,MAAM,QAAQ,GAAG,KAAK,CAAC,UAAU,CAAC,eAAe,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,YAAY,KAAK,CAAC,IAAI,GAAG,CAAC;QAE3F,MAAM,CAAC,IAAI,CAAC;YACV,IAAI,EAAE,KAAK,CAAC,IAAI;YAChB,MAAM,EAAE,KAAK,CAAC,kBAAkB;YAChC,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,KAAK,CAAC,IAAI,IAAI,EAAE;SACvB,CAAC,CAAC;IACL,CAAC;IAED,KAAK,GAAG,KAAK,CAAC,SAAS,EAAE,CAAC;AAC5B,CAAC;AAGD,MAAM,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;AAEvD,IAAI,CAAC,YAAY,EAAE,CAAC;IAElB,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;AAC/C,CAAC;KAAM,CAAC;IAEN,OAAO,CAAC,GAAG,CAAC,qCAAqC,CAAC,CAAC;IACnD,OAAO,CAAC,GAAG,CAAC,6BAA6B,CAAC,CAAC;IAC3C,OAAO,CAAC,GAAG,CAAC,8BAA8B,CAAC,CAAC;IAE5C,IAAI,QAAQ,GAAG,CAAC,CAAC;IACjB,MAAM,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;QAEvB,IAAI,KAAK,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;YAC5B,OAAO,CAAC,GAAG,EAAE,CAAC;YACd,QAAQ,GAAG,KAAK,CAAC,IAAI,CAAC;QACxB,CAAC;QAGD,OAAO,CAAC,GAAG,CACT,GAAG,KAAK,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,KAAK,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,OAAO,KAAK,CAAC,IAAI,GAAG,CAC7H,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const fs_1 = require("fs");
4
+ const path_1 = require("path");
5
+ const createParser_1 = require("../parser/createParser");
6
+ const examplePath = (0, path_1.join)(__dirname, "../examples/crl/who/smart-example-immz/IMMZ_All_Decisions.crl");
7
+ const input = (0, fs_1.readFileSync)(examplePath, "utf-8");
8
+ const { parser } = (0, createParser_1.createParser)(input);
9
+ const tree = parser.crl();
10
+ const prettyOutput = process.argv.includes("--pretty");
11
+ if (!prettyOutput) {
12
+ console.log(tree.toStringTree(parser.ruleNames));
13
+ }
14
+ else {
15
+ const serializableTree = {
16
+ type: parser.ruleNames[tree.ruleIndex],
17
+ text: tree.text,
18
+ children: tree.children?.map((child) => {
19
+ const childWithRuleIndex = child;
20
+ return {
21
+ type: child.constructor.name,
22
+ text: child.text,
23
+ ruleIndex: childWithRuleIndex.ruleIndex !== undefined
24
+ ? parser.ruleNames[childWithRuleIndex.ruleIndex]
25
+ : undefined,
26
+ };
27
+ }),
28
+ };
29
+ console.log("Parse Tree:");
30
+ console.log("===========");
31
+ console.log(JSON.stringify(serializableTree, null, 2));
32
+ }
33
+ //# sourceMappingURL=run-parser.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"run-parser.js","sourceRoot":"","sources":["../../src/cli/run-parser.ts"],"names":[],"mappings":";;AAAA,2BAAkC;AAClC,+BAA4B;AAE5B,yDAAsD;AAGtD,MAAM,WAAW,GAAG,IAAA,WAAI,EACtB,SAAS,EACT,+DAA+D,CAChE,CAAC;AACF,MAAM,KAAK,GAAG,IAAA,iBAAY,EAAC,WAAW,EAAE,OAAO,CAAC,CAAC;AAGjD,MAAM,EAAE,MAAM,EAAE,GAAG,IAAA,2BAAY,EAAC,KAAK,CAAC,CAAC;AAGvC,MAAM,IAAI,GAAG,MAAM,CAAC,GAAG,EAAE,CAAC;AAG1B,MAAM,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;AAEvD,IAAI,CAAC,YAAY,EAAE,CAAC;IAElB,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC;AACnD,CAAC;KAAM,CAAC;IAEN,MAAM,gBAAgB,GAAG;QACvB,IAAI,EAAE,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC;QACtC,IAAI,EAAE,IAAI,CAAC,IAAI;QACf,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;YACrC,MAAM,kBAAkB,GAAG,KAA+B,CAAC;YAC3D,OAAO;gBACL,IAAI,EAAE,KAAK,CAAC,WAAW,CAAC,IAAI;gBAC5B,IAAI,EAAE,KAAK,CAAC,IAAI;gBAChB,SAAS,EACP,kBAAkB,CAAC,SAAS,KAAK,SAAS;oBACxC,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,kBAAkB,CAAC,SAAS,CAAC;oBAChD,CAAC,CAAC,SAAS;aAChB,CAAC;QACJ,CAAC,CAAC;KACH,CAAC;IAEF,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;IAC3B,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;IAC3B,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,gBAAgB,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;AACzD,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const path_1 = __importDefault(require("path"));
7
+ const transformer_1 = require("../transformer/fsh-to-crl/transformer");
8
+ const inputPath = process.argv[2]
9
+ ? path_1.default.resolve(process.cwd(), process.argv[2])
10
+ : path_1.default.resolve(__dirname, "../examples/fsh/smart-example-immz");
11
+ (async () => {
12
+ try {
13
+ const crlOutput = (0, transformer_1.transformFSHToCRL)(inputPath);
14
+ process.stdout.write(crlOutput.replace(/\n+$/, "") + "\n");
15
+ }
16
+ catch {
17
+ process.exit(1);
18
+ }
19
+ })();
20
+ //# sourceMappingURL=run-transformer-fsh-to-crl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"run-transformer-fsh-to-crl.js","sourceRoot":"","sources":["../../src/cli/run-transformer-fsh-to-crl.ts"],"names":[],"mappings":";;;;;AAAA,gDAAwB;AAExB,uEAA0E;AAG1E,MAAM,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;IAC/B,CAAC,CAAC,cAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAC9C,CAAC,CAAC,cAAI,CAAC,OAAO,CAAC,SAAS,EAAE,oCAAoC,CAAC,CAAC;AAElE,CAAC,KAAK,IAAmB,EAAE;IACzB,IAAI,CAAC;QACH,MAAM,SAAS,GAAG,IAAA,+BAAiB,EAAC,SAAS,CAAC,CAAC;QAC/C,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC;IAC7D,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC,CAAC,EAAE,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const fs_1 = require("fs");
4
+ const path_1 = require("path");
5
+ const builder_1 = require("../ast/builder");
6
+ const createParser_1 = require("../parser/createParser");
7
+ const validator_1 = require("../validator/validator");
8
+ const examplePath = (0, path_1.join)(__dirname, "../examples/crl/who/smart-example-immz/IMMZ_All_Decisions.crl");
9
+ const input = (0, fs_1.readFileSync)(examplePath, "utf-8");
10
+ const { parser } = (0, createParser_1.createParser)(input);
11
+ const tree = parser.crl();
12
+ const builder = new builder_1.CRLAstBuilder();
13
+ const ast = builder.visit(tree);
14
+ const validator = new validator_1.Validator();
15
+ const result = validator.validate(ast);
16
+ const prettyOutput = process.argv.includes("--pretty");
17
+ if (!prettyOutput) {
18
+ console.log(JSON.stringify(result, null, 2));
19
+ }
20
+ else {
21
+ console.log("Validation Results:");
22
+ console.log("==================");
23
+ console.log(`Valid: ${result.isValid}`);
24
+ if (result.errors.length > 0) {
25
+ console.log("\nErrors:");
26
+ result.errors.forEach((error) => {
27
+ console.log(`- ${error.message} (${error.location.start.line}:${error.location.start.column})`);
28
+ });
29
+ }
30
+ if (result.warnings.length > 0) {
31
+ console.log("\nWarnings:");
32
+ result.warnings.forEach((warning) => {
33
+ console.log(`- ${warning.message} (${warning.location.start.line}:${warning.location.start.column})`);
34
+ });
35
+ }
36
+ }
37
+ //# sourceMappingURL=run-validator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"run-validator.js","sourceRoot":"","sources":["../../src/cli/run-validator.ts"],"names":[],"mappings":";;AAAA,2BAAkC;AAClC,+BAA4B;AAE5B,4CAA+C;AAE/C,yDAAsD;AACtD,sDAAmD;AAGnD,MAAM,WAAW,GAAG,IAAA,WAAI,EACtB,SAAS,EACT,+DAA+D,CAChE,CAAC;AACF,MAAM,KAAK,GAAG,IAAA,iBAAY,EAAC,WAAW,EAAE,OAAO,CAAC,CAAC;AAGjD,MAAM,EAAE,MAAM,EAAE,GAAG,IAAA,2BAAY,EAAC,KAAK,CAAC,CAAC;AAGvC,MAAM,IAAI,GAAG,MAAM,CAAC,GAAG,EAAE,CAAC;AAG1B,MAAM,OAAO,GAAG,IAAI,uBAAa,EAAE,CAAC;AACpC,MAAM,GAAG,GAAG,OAAO,CAAC,KAAK,CAAC,IAAI,CAAQ,CAAC;AAGvC,MAAM,SAAS,GAAG,IAAI,qBAAS,EAAE,CAAC;AAClC,MAAM,MAAM,GAAG,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;AAGvC,MAAM,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;AAEvD,IAAI,CAAC,YAAY,EAAE,CAAC;IAElB,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;AAC/C,CAAC;KAAM,CAAC;IAEN,OAAO,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAC;IACnC,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IAClC,OAAO,CAAC,GAAG,CAAC,UAAU,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC;IACxC,IAAI,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC7B,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;QACzB,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;YAC9B,OAAO,CAAC,GAAG,CACT,KAAK,KAAK,CAAC,OAAO,KAAK,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,GAAG,CACnF,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC;IACD,IAAI,MAAM,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC/B,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;QAC3B,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;YAClC,OAAO,CAAC,GAAG,CACT,KAAK,OAAO,CAAC,OAAO,KAAK,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,IAAI,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,GAAG,CACzF,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC;AACH,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const activityTypes: string[];
2
+ export type ActivityType = (typeof activityTypes)[number];
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.activityTypes = void 0;
7
+ const activityTypes_json_1 = __importDefault(require("./generated/types/activityTypes.json"));
8
+ exports.activityTypes = activityTypes_json_1.default;
9
+ //# sourceMappingURL=activityTypes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"activityTypes.js","sourceRoot":"","sources":["../../src/grammar/activityTypes.ts"],"names":[],"mappings":";;;;;;AAIA,8FAAqE;AACxD,QAAA,aAAa,GAAG,4BAA6B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const conceptTypes: string[];
2
+ export type ConceptType = (typeof conceptTypes)[number];
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.conceptTypes = void 0;
7
+ const conceptTypes_json_1 = __importDefault(require("./generated/types/conceptTypes.json"));
8
+ exports.conceptTypes = conceptTypes_json_1.default;
9
+ //# sourceMappingURL=conceptTypes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conceptTypes.js","sourceRoot":"","sources":["../../src/grammar/conceptTypes.ts"],"names":[],"mappings":";;;;;;AAAA,4FAAmE;AACtD,QAAA,YAAY,GAAG,2BAA4B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const conceptValueTypes: string[];
2
+ export type ConceptValueType = (typeof conceptValueTypes)[number];
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.conceptValueTypes = void 0;
7
+ const conceptValueTypes_json_1 = __importDefault(require("./generated/types/conceptValueTypes.json"));
8
+ exports.conceptValueTypes = conceptValueTypes_json_1.default;
9
+ //# sourceMappingURL=conceptValueTypes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conceptValueTypes.js","sourceRoot":"","sources":["../../src/grammar/conceptValueTypes.ts"],"names":[],"mappings":";;;;;;AAAA,sGAA6E;AAChE,QAAA,iBAAiB,GAAG,gCAAiC,CAAC"}
@@ -0,0 +1,84 @@
1
+ import { ATN } from "antlr4ts/atn/ATN";
2
+ import { CharStream } from "antlr4ts/CharStream";
3
+ import { Lexer } from "antlr4ts/Lexer";
4
+ import { RuleContext } from "antlr4ts/RuleContext";
5
+ import { Vocabulary } from "antlr4ts/Vocabulary";
6
+ export declare class CRLLexer extends Lexer {
7
+ static readonly ACTIVITY = 1;
8
+ static readonly ALL = 2;
9
+ static readonly AND = 3;
10
+ static readonly ANY = 4;
11
+ static readonly APPLY = 5;
12
+ static readonly BECAUSE = 6;
13
+ static readonly CODE = 7;
14
+ static readonly CODED = 8;
15
+ static readonly CONCEPT = 9;
16
+ static readonly DECISION = 10;
17
+ static readonly DONE = 11;
18
+ static readonly DO = 12;
19
+ static readonly EVIDENCE = 13;
20
+ static readonly FROM = 14;
21
+ static readonly INFERRED = 15;
22
+ static readonly IS = 16;
23
+ static readonly NOT = 17;
24
+ static readonly OR = 18;
25
+ static readonly PATTERN = 19;
26
+ static readonly PERFORM = 20;
27
+ static readonly SYSTEM = 21;
28
+ static readonly TERMINOLOGY = 22;
29
+ static readonly THEN = 23;
30
+ static readonly TYPE = 24;
31
+ static readonly USE = 25;
32
+ static readonly VALUETYPE = 26;
33
+ static readonly VALUESET = 27;
34
+ static readonly WHEN = 28;
35
+ static readonly WITH = 29;
36
+ static readonly ERROR = 30;
37
+ static readonly COLON = 31;
38
+ static readonly DOT = 32;
39
+ static readonly LPAREN = 33;
40
+ static readonly RPAREN = 34;
41
+ static readonly QUOTED_STRING = 35;
42
+ static readonly BACKTICK_STRING = 36;
43
+ static readonly WS = 37;
44
+ static readonly COMMENT = 38;
45
+ static readonly COMMENT_BLOCK = 39;
46
+ static readonly ACTIVITY_TYPE = 40;
47
+ static readonly ACTIVITY_WS = 41;
48
+ static readonly ACTIVITY_COMMENT_BLOCK = 42;
49
+ static readonly ACTIVITY_ErrorChar = 43;
50
+ static readonly CONCEPT_TYPE = 44;
51
+ static readonly CONCEPT_WS = 45;
52
+ static readonly CONCEPT_COMMENT_BLOCK = 46;
53
+ static readonly CONCEPT_ErrorChar = 47;
54
+ static readonly CONCEPT_VALUE_TYPE = 48;
55
+ static readonly VALUE_TYPE_WS = 49;
56
+ static readonly VALUE_TYPE_COMMENT_BLOCK = 50;
57
+ static readonly VALUE_TYPE_ErrorChar = 51;
58
+ static readonly ACTIVITY_MODE = 1;
59
+ static readonly CONCEPT_MODE = 2;
60
+ static readonly VALUE_TYPE_MODE = 3;
61
+ static readonly channelNames: string[];
62
+ static readonly modeNames: string[];
63
+ static readonly ruleNames: string[];
64
+ private static readonly _LITERAL_NAMES;
65
+ private static readonly _SYMBOLIC_NAMES;
66
+ static readonly VOCABULARY: Vocabulary;
67
+ get vocabulary(): Vocabulary;
68
+ constructor(input: CharStream);
69
+ get grammarFileName(): string;
70
+ get ruleNames(): string[];
71
+ get serializedATN(): string;
72
+ get channelNames(): string[];
73
+ get modeNames(): string[];
74
+ action(_localctx: RuleContext, ruleIndex: number, actionIndex: number): void;
75
+ private ACTIVITY_TYPE_action;
76
+ private ACTIVITY_ErrorChar_action;
77
+ private CONCEPT_TYPE_action;
78
+ private CONCEPT_ErrorChar_action;
79
+ private CONCEPT_VALUE_TYPE_action;
80
+ private VALUE_TYPE_ErrorChar_action;
81
+ static readonly _serializedATN: string;
82
+ static __ATN: ATN;
83
+ static get _ATN(): ATN;
84
+ }