occam-grammars 1.3.306 → 1.3.309
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/example.js +76 -73
- package/index.html +1 -1
- package/lib/customGrammarVocabulary/bnf.js +14 -0
- package/lib/customGrammarVocabulary/entries.js +18 -0
- package/lib/customGrammarVocabulary/lexer.js +144 -0
- package/lib/{customGrammarPattern → customGrammarVocabulary}/parser.js +13 -13
- package/lib/example/view/{customGrammarPattern.js → customGrammarVocabulary.js} +14 -14
- package/lib/example.js +4 -4
- package/lib/index.js +5 -5
- package/lib/nominal/bnf.js +2 -2
- package/lib/nominal/entries.js +11 -8
- package/package.json +1 -1
- package/src/customGrammarVocabulary/bnf.js +19 -0
- package/src/{customGrammarPattern → customGrammarVocabulary}/lexer.js +4 -4
- package/src/{customGrammarPattern → customGrammarVocabulary}/parser.js +4 -4
- package/src/example/view/customGrammarVocabulary.js +22 -0
- package/src/example.js +2 -2
- package/src/index.js +2 -2
- package/src/nominal/bnf.js +3 -3
- package/src/nominal/entries.js +11 -7
- package/lib/customGrammarPattern/bnf.js +0 -14
- package/lib/customGrammarPattern/entries.js +0 -18
- package/lib/customGrammarPattern/lexer.js +0 -144
- package/src/customGrammarPattern/bnf.js +0 -16
- package/src/example/view/customGrammarPattern.js +0 -22
- /package/src/{customGrammarPattern → customGrammarVocabulary}/entries.js +0 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
const bnf = `
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
document ::= ( expression | verticalSpace | error )+ ;
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
expression ::= <NO_WHITESPACE>[unassigned]<NO_WHITESPACE><END_OF_LINE> ;
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
verticalSpace ::= <END_OF_LINE>+ ;
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
error. ::= . ;
|
|
16
|
+
|
|
17
|
+
`;
|
|
18
|
+
|
|
19
|
+
export default bnf;
|
|
@@ -4,7 +4,7 @@ import { CommonLexer, WhitespaceToken, EndOfLineSignificantToken } from "occam-l
|
|
|
4
4
|
|
|
5
5
|
import entries from "./entries";
|
|
6
6
|
|
|
7
|
-
export default class
|
|
7
|
+
export default class CustomGrammarVocabularyLexer extends CommonLexer {
|
|
8
8
|
static entries = entries;
|
|
9
9
|
|
|
10
10
|
static EndOfLineToken = EndOfLineSignificantToken;
|
|
@@ -27,9 +27,9 @@ export default class CustomGrammarPatternLexer extends CommonLexer {
|
|
|
27
27
|
|
|
28
28
|
static DoublyQuotedStringLiteralToken = null;
|
|
29
29
|
|
|
30
|
-
static fromNothing() { return CommonLexer.fromNothing(
|
|
30
|
+
static fromNothing() { return CommonLexer.fromNothing(CustomGrammarVocabularyLexer); }
|
|
31
31
|
|
|
32
|
-
static fromRules(rules) { return CommonLexer.fromRules(
|
|
32
|
+
static fromRules(rules) { return CommonLexer.fromRules(CustomGrammarVocabularyLexer, rules); }
|
|
33
33
|
|
|
34
|
-
static fromEntries(entries) { return CommonLexer.fromEntries(
|
|
34
|
+
static fromEntries(entries) { return CommonLexer.fromEntries(CustomGrammarVocabularyLexer, entries); }
|
|
35
35
|
}
|
|
@@ -4,12 +4,12 @@ import { CommonParser } from "occam-parsers";
|
|
|
4
4
|
|
|
5
5
|
import bnf from "./bnf";
|
|
6
6
|
|
|
7
|
-
export default class
|
|
7
|
+
export default class CustomGrammarVocabularyParser extends CommonParser {
|
|
8
8
|
static bnf = bnf;
|
|
9
9
|
|
|
10
|
-
static fromNothing() { return CommonParser.fromNothing(
|
|
10
|
+
static fromNothing() { return CommonParser.fromNothing(CustomGrammarVocabularyParser); }
|
|
11
11
|
|
|
12
|
-
static fromBNF(bnf) { return CommonParser.fromBNF(
|
|
12
|
+
static fromBNF(bnf) { return CommonParser.fromBNF(CustomGrammarVocabularyParser, bnf); }
|
|
13
13
|
|
|
14
|
-
static fromRules(rules) { return CommonParser.fromRules(
|
|
14
|
+
static fromRules(rules) { return CommonParser.fromRules(CustomGrammarVocabularyParser, rules); }
|
|
15
15
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { CustomGrammarVocabularyLexer, CustomGrammarVocabularyParser } from "../../index"; ///
|
|
4
|
+
|
|
5
|
+
import View from "../view";
|
|
6
|
+
|
|
7
|
+
export default class CustomGrammarVocabularyView extends View {
|
|
8
|
+
static Lexer = CustomGrammarVocabularyLexer;
|
|
9
|
+
|
|
10
|
+
static Parser = CustomGrammarVocabularyParser;
|
|
11
|
+
|
|
12
|
+
static readOnly = false;
|
|
13
|
+
|
|
14
|
+
static initialContent = `adsf
|
|
15
|
+
|
|
16
|
+
aadf
|
|
17
|
+
`;
|
|
18
|
+
|
|
19
|
+
static defaultProperties = {
|
|
20
|
+
className: "custom-grammar-vocabulary",
|
|
21
|
+
};
|
|
22
|
+
}
|
package/src/example.js
CHANGED
|
@@ -11,7 +11,7 @@ import JSONView from "./example/view/json";
|
|
|
11
11
|
import FurtleView from "./example/view/furtle";
|
|
12
12
|
import PlainTextView from "./example/view/plainText";
|
|
13
13
|
import CustomGrammarBNFView from "./example/view/customGrammarBNF";
|
|
14
|
-
import
|
|
14
|
+
import CustomGrammarVocabularyView from "./example/view/customGrammarVocabulary";
|
|
15
15
|
|
|
16
16
|
const { renderStyles } = withStyle;
|
|
17
17
|
|
|
@@ -26,7 +26,7 @@ switch (example) {
|
|
|
26
26
|
case "furtle" : View = FurtleView; break;
|
|
27
27
|
case "plain-text" : View = PlainTextView; break;
|
|
28
28
|
case "custom-grammar-bnf" : View = CustomGrammarBNFView; break;
|
|
29
|
-
case "custom-grammar-
|
|
29
|
+
case "custom-grammar-vocabulary" : View = CustomGrammarVocabularyView; break;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
renderStyles();
|
package/src/index.js
CHANGED
|
@@ -8,11 +8,11 @@ export { default as JSONLexer } from "./json/lexer";
|
|
|
8
8
|
export { default as NominalLexer } from "./nominal/lexer";
|
|
9
9
|
export { default as PlainTextLexer } from "./plainText/lexer";
|
|
10
10
|
export { default as CustomGrammarBNFLexer } from "./customGrammarBNF/lexer";
|
|
11
|
-
export { default as
|
|
11
|
+
export { default as CustomGrammarVocabularyLexer } from "./customGrammarVocabulary/lexer";
|
|
12
12
|
|
|
13
13
|
export { default as TeXParser } from "./teX/parser";
|
|
14
14
|
export { default as JSONParser } from "./json/parser";
|
|
15
15
|
export { default as NominalParser } from "./nominal/parser";
|
|
16
16
|
export { default as PlainTextParser } from "./plainText/parser";
|
|
17
17
|
export { default as CustomGrammarBNFParser } from "./customGrammarBNF/parser";
|
|
18
|
-
export { default as
|
|
18
|
+
export { default as CustomGrammarVocabularyParser } from "./customGrammarVocabulary/parser";
|
package/src/nominal/bnf.js
CHANGED
|
@@ -344,7 +344,7 @@ label. ::= metavariable ;
|
|
|
344
344
|
|
|
345
345
|
|
|
346
346
|
|
|
347
|
-
metavariable. ::= [
|
|
347
|
+
metavariable. ::= [name] ( <NO_WHITESPACE> "(" argument ")" )? ;
|
|
348
348
|
|
|
349
349
|
parameter. ::= [identifier] ;
|
|
350
350
|
|
|
@@ -358,8 +358,8 @@ type. ::= [type] ;
|
|
|
358
358
|
|
|
359
359
|
|
|
360
360
|
|
|
361
|
-
stuff. ::= ( [type] | [symbol] | [
|
|
361
|
+
stuff. ::= ( [type] | [symbol] | [name] | [identifier] | [bracket] | [reserved] | [unassigned] )+ ;
|
|
362
362
|
|
|
363
|
-
nonsense. ::= ( [special] | [meta-type] | [secondary-keyword] | [type] | [symbol] | [
|
|
363
|
+
nonsense. ::= ( [special] | [meta-type] | [secondary-keyword] | [type] | [symbol] | [name] | [identifier] | [bracket] | [reserved] | [unassigned] )+ ;`;
|
|
364
364
|
|
|
365
365
|
export default bnf;
|
package/src/nominal/entries.js
CHANGED
|
@@ -2,25 +2,28 @@
|
|
|
2
2
|
|
|
3
3
|
const entries = [
|
|
4
4
|
{
|
|
5
|
-
"
|
|
5
|
+
"primary-keyword": "^(?:Rule|Axiom|Theorem|Lemma|Conjecture|MetaLemma|Metatheorem|Premises|Premise|Conclusion|Proof|Therefore|Suppose|Hence|Then|Provisional|Type|Properties|Property|Variable|Constructor|Combinator|Metavariable|Given)\\b"
|
|
6
6
|
},
|
|
7
7
|
{
|
|
8
|
-
"
|
|
8
|
+
"secondary-keyword": "^(?:is|in|an|a|of|by|because|for|satisfies|provisionally|defined|undefined|missing|present)\\b"
|
|
9
9
|
},
|
|
10
10
|
{
|
|
11
|
-
"
|
|
11
|
+
"meta-type": "^(?:Statement|Reference|Frame)\\b"
|
|
12
12
|
},
|
|
13
13
|
{
|
|
14
|
-
"
|
|
14
|
+
"name": "^[A-Z][A-Za-z]*"
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
|
-
"
|
|
17
|
+
"identifier": "^[\\p{Script=Latin}\\p{Script=Greek}][\\p{Script=Latin}\\p{Script=Greek}_0-9']*"
|
|
18
18
|
},
|
|
19
19
|
{
|
|
20
|
-
"
|
|
20
|
+
"special": "^(?:\\.\\.\\.|\\|-|@|,|::|:|=)"
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
|
-
"
|
|
23
|
+
"bracket": "^(?:\\(|\\)|\\[|\\])"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"reserved": "^(?:\\|=|<|>|;|\\.|\\+|-|\\*|/|%|\\^|&|!|'|\"|#|\\$|\\?|~|`|\\\\|\\||\\{|\\})"
|
|
24
27
|
},
|
|
25
28
|
{
|
|
26
29
|
"unassigned": "^[^\\s\\(\\)\\[\\]:,]+"
|
|
@@ -28,3 +31,4 @@ const entries = [
|
|
|
28
31
|
];
|
|
29
32
|
|
|
30
33
|
export default entries;
|
|
34
|
+
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "default", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return _default;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
var bnf = "\n\n\n document ::= ( expression | error )+ ;\n\n\n expression ::= <NO_WHITESPACE>[unassigned]<NO_WHITESPACE><END_OF_LINE> ;\n\n\n error. ::= . ;\n\n";
|
|
12
|
-
var _default = bnf;
|
|
13
|
-
|
|
14
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jdXN0b21HcmFtbWFyUGF0dGVybi9ibmYuanMiXSwic291cmNlc0NvbnRlbnQiOlsiXCJ1c2Ugc3RyaWN0XCI7XG5cbmNvbnN0IGJuZiA9IGBcblxuXG4gICAgZG9jdW1lbnQgICAgOjo9ICAoIGV4cHJlc3Npb24gfCBlcnJvciApKyA7XG5cblxuICAgIGV4cHJlc3Npb24gIDo6PSAgPE5PX1dISVRFU1BBQ0U+W3VuYXNzaWduZWRdPE5PX1dISVRFU1BBQ0U+PEVORF9PRl9MSU5FPiA7XG5cblxuICAgIGVycm9yLiAgICAgIDo6PSAgLiA7XG5cbmA7XG5cbmV4cG9ydCBkZWZhdWx0IGJuZjtcbiJdLCJuYW1lcyI6WyJibmYiXSwibWFwcGluZ3MiOiJBQUFBOzs7OytCQWVBOzs7ZUFBQTs7O0FBYkEsSUFBTUEsTUFBTztJQWFiLFdBQWVBIn0=
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "default", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return _default;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
var entries = [
|
|
12
|
-
{
|
|
13
|
-
"unassigned": "^[^\\s]+"
|
|
14
|
-
}
|
|
15
|
-
];
|
|
16
|
-
var _default = entries;
|
|
17
|
-
|
|
18
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jdXN0b21HcmFtbWFyUGF0dGVybi9lbnRyaWVzLmpzIl0sInNvdXJjZXNDb250ZW50IjpbIlwidXNlIHN0cmljdFwiO1xyXG5cclxuY29uc3QgZW50cmllcyA9IFtcclxuICB7XHJcbiAgICBcInVuYXNzaWduZWRcIjogXCJeW15cXFxcc10rXCJcclxuICB9XHJcbl07XHJcblxyXG5leHBvcnQgZGVmYXVsdCBlbnRyaWVzO1xyXG4iXSwibmFtZXMiOlsiZW50cmllcyJdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7K0JBUUE7OztlQUFBOzs7QUFOQSxJQUFNQSxVQUFVO0lBQ2Q7UUFDRSxjQUFjO0lBQ2hCO0NBQ0Q7SUFFRCxXQUFlQSJ9
|
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "default", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return CustomGrammarPatternLexer;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
var _occamlexers = require("occam-lexers");
|
|
12
|
-
var _entries = /*#__PURE__*/ _interop_require_default(require("./entries"));
|
|
13
|
-
function _assert_this_initialized(self) {
|
|
14
|
-
if (self === void 0) {
|
|
15
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
16
|
-
}
|
|
17
|
-
return self;
|
|
18
|
-
}
|
|
19
|
-
function _call_super(_this, derived, args) {
|
|
20
|
-
derived = _get_prototype_of(derived);
|
|
21
|
-
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
22
|
-
}
|
|
23
|
-
function _class_call_check(instance, Constructor) {
|
|
24
|
-
if (!(instance instanceof Constructor)) {
|
|
25
|
-
throw new TypeError("Cannot call a class as a function");
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
function _defineProperties(target, props) {
|
|
29
|
-
for(var i = 0; i < props.length; i++){
|
|
30
|
-
var descriptor = props[i];
|
|
31
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
32
|
-
descriptor.configurable = true;
|
|
33
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
34
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
function _create_class(Constructor, protoProps, staticProps) {
|
|
38
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
39
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
40
|
-
return Constructor;
|
|
41
|
-
}
|
|
42
|
-
function _define_property(obj, key, value) {
|
|
43
|
-
if (key in obj) {
|
|
44
|
-
Object.defineProperty(obj, key, {
|
|
45
|
-
value: value,
|
|
46
|
-
enumerable: true,
|
|
47
|
-
configurable: true,
|
|
48
|
-
writable: true
|
|
49
|
-
});
|
|
50
|
-
} else {
|
|
51
|
-
obj[key] = value;
|
|
52
|
-
}
|
|
53
|
-
return obj;
|
|
54
|
-
}
|
|
55
|
-
function _get_prototype_of(o) {
|
|
56
|
-
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
57
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
58
|
-
};
|
|
59
|
-
return _get_prototype_of(o);
|
|
60
|
-
}
|
|
61
|
-
function _inherits(subClass, superClass) {
|
|
62
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
63
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
64
|
-
}
|
|
65
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
66
|
-
constructor: {
|
|
67
|
-
value: subClass,
|
|
68
|
-
writable: true,
|
|
69
|
-
configurable: true
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
if (superClass) _set_prototype_of(subClass, superClass);
|
|
73
|
-
}
|
|
74
|
-
function _interop_require_default(obj) {
|
|
75
|
-
return obj && obj.__esModule ? obj : {
|
|
76
|
-
default: obj
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
function _possible_constructor_return(self, call) {
|
|
80
|
-
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
81
|
-
return call;
|
|
82
|
-
}
|
|
83
|
-
return _assert_this_initialized(self);
|
|
84
|
-
}
|
|
85
|
-
function _set_prototype_of(o, p) {
|
|
86
|
-
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
87
|
-
o.__proto__ = p;
|
|
88
|
-
return o;
|
|
89
|
-
};
|
|
90
|
-
return _set_prototype_of(o, p);
|
|
91
|
-
}
|
|
92
|
-
function _type_of(obj) {
|
|
93
|
-
"@swc/helpers - typeof";
|
|
94
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
95
|
-
}
|
|
96
|
-
function _is_native_reflect_construct() {
|
|
97
|
-
try {
|
|
98
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
99
|
-
} catch (_) {}
|
|
100
|
-
return (_is_native_reflect_construct = function() {
|
|
101
|
-
return !!result;
|
|
102
|
-
})();
|
|
103
|
-
}
|
|
104
|
-
var CustomGrammarPatternLexer = /*#__PURE__*/ function(CommonLexer) {
|
|
105
|
-
_inherits(CustomGrammarPatternLexer, CommonLexer);
|
|
106
|
-
function CustomGrammarPatternLexer() {
|
|
107
|
-
_class_call_check(this, CustomGrammarPatternLexer);
|
|
108
|
-
return _call_super(this, CustomGrammarPatternLexer, arguments);
|
|
109
|
-
}
|
|
110
|
-
_create_class(CustomGrammarPatternLexer, null, [
|
|
111
|
-
{
|
|
112
|
-
key: "fromNothing",
|
|
113
|
-
value: function fromNothing() {
|
|
114
|
-
return _occamlexers.CommonLexer.fromNothing(CustomGrammarPatternLexer);
|
|
115
|
-
}
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
key: "fromRules",
|
|
119
|
-
value: function fromRules(rules) {
|
|
120
|
-
return _occamlexers.CommonLexer.fromRules(CustomGrammarPatternLexer, rules);
|
|
121
|
-
}
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
key: "fromEntries",
|
|
125
|
-
value: function fromEntries(entries) {
|
|
126
|
-
return _occamlexers.CommonLexer.fromEntries(CustomGrammarPatternLexer, entries);
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
]);
|
|
130
|
-
return CustomGrammarPatternLexer;
|
|
131
|
-
}(_occamlexers.CommonLexer);
|
|
132
|
-
_define_property(CustomGrammarPatternLexer, "entries", _entries.default);
|
|
133
|
-
_define_property(CustomGrammarPatternLexer, "EndOfLineToken", _occamlexers.EndOfLineSignificantToken);
|
|
134
|
-
_define_property(CustomGrammarPatternLexer, "WhitespaceToken", _occamlexers.WhitespaceToken);
|
|
135
|
-
_define_property(CustomGrammarPatternLexer, "EndOfLineCommentToken", null);
|
|
136
|
-
_define_property(CustomGrammarPatternLexer, "SingleLineCommentToken", null);
|
|
137
|
-
_define_property(CustomGrammarPatternLexer, "RegularExpressionToken", null);
|
|
138
|
-
_define_property(CustomGrammarPatternLexer, "EndOfMultiLineCommentToken", null);
|
|
139
|
-
_define_property(CustomGrammarPatternLexer, "StartOfMultiLineCommentToken", null);
|
|
140
|
-
_define_property(CustomGrammarPatternLexer, "MiddleOfMultiLineCommentToken", null);
|
|
141
|
-
_define_property(CustomGrammarPatternLexer, "SinglyQuotedStringLiteralToken", null);
|
|
142
|
-
_define_property(CustomGrammarPatternLexer, "DoublyQuotedStringLiteralToken", null);
|
|
143
|
-
|
|
144
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2V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rammarPatternParser } from "../../index"; ///
|
|
4
|
-
|
|
5
|
-
import View from "../view";
|
|
6
|
-
|
|
7
|
-
export default class CustomGrammarPatternView extends View {
|
|
8
|
-
static Lexer = CustomGrammarPatternLexer;
|
|
9
|
-
|
|
10
|
-
static Parser = CustomGrammarPatternParser;
|
|
11
|
-
|
|
12
|
-
static readOnly = false;
|
|
13
|
-
|
|
14
|
-
static initialContent = `adsf
|
|
15
|
-
|
|
16
|
-
aadf
|
|
17
|
-
`;
|
|
18
|
-
|
|
19
|
-
static defaultProperties = {
|
|
20
|
-
className: "custom-grammar-pattern"
|
|
21
|
-
};
|
|
22
|
-
}
|
|
File without changes
|