simple-graph-query 1.1.2 → 1.2.1
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/README.md +2 -112
- package/dist/ForgeExprEvaluator.d.ts +2 -0
- package/dist/forge-antlr/ForgeLexer.d.ts +109 -104
- package/dist/forge-antlr/ForgeParser.d.ts +115 -104
- package/dist/simple-graph-query.bundle.js +1721 -1513
- package/dist/types.d.ts +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,118 +1,8 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Simple Graph Expression Evaluator
|
|
2
2
|
|
|
3
|
-
A TypeScript library for evaluating
|
|
4
|
-
|
|
5
|
-
## Installation
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
npm install forge-expr-evaluator
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Usage
|
|
12
|
-
|
|
13
|
-
### Browser (UMD Bundle)
|
|
14
|
-
```html
|
|
15
|
-
<script src="node_modules/forge-expr-evaluator/dist/forge-expr-evaluator.bundle.js"></script>
|
|
16
|
-
<script>
|
|
17
|
-
const evaluator = new ForgeExprEvaluator.ForgeExprEvaluatorUtil(datum, sourceCode);
|
|
18
|
-
const result = evaluator.evaluateExpression("some Board", 0);
|
|
19
|
-
console.log(result);
|
|
20
|
-
</script>
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
### Node.js
|
|
24
|
-
```javascript
|
|
25
|
-
const { ForgeExprEvaluatorUtil } = require('forge-expr-evaluator');
|
|
26
|
-
|
|
27
|
-
const evaluator = new ForgeExprEvaluatorUtil(datum, sourceCode);
|
|
28
|
-
const result = evaluator.evaluateExpression("some Board", 0);
|
|
29
|
-
console.log(result);
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
### TypeScript
|
|
33
|
-
```typescript
|
|
34
|
-
import { ForgeExprEvaluatorUtil, DatumParsed } from 'forge-expr-evaluator';
|
|
35
|
-
|
|
36
|
-
const datum: DatumParsed = {
|
|
37
|
-
parsed: {
|
|
38
|
-
instances: [/* your data */],
|
|
39
|
-
bitwidth: 4
|
|
40
|
-
},
|
|
41
|
-
data: "<alloy>...</alloy>"
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
const sourceCode = `
|
|
45
|
-
sig Board { ... }
|
|
46
|
-
// your Forge signatures and predicates
|
|
47
|
-
`;
|
|
48
|
-
|
|
49
|
-
const evaluator = new ForgeExprEvaluatorUtil(datum, sourceCode);
|
|
50
|
-
const result = evaluator.evaluateExpression("some Board", 0);
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
## API
|
|
54
|
-
|
|
55
|
-
### `ForgeExprEvaluatorUtil`
|
|
56
|
-
|
|
57
|
-
#### Constructor
|
|
58
|
-
```typescript
|
|
59
|
-
new ForgeExprEvaluatorUtil(datum: DatumParsed, sourceCode: string)
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
#### Methods
|
|
63
|
-
```typescript
|
|
64
|
-
evaluateExpression(expression: string, instanceIndex?: number): EvaluationResult
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
### Types
|
|
68
|
-
- `DatumParsed`: Data structure containing Forge model instances
|
|
69
|
-
- `EvaluationResult`: Result of expression evaluation (value or error)
|
|
70
|
-
- `EvalResult`: Successful evaluation result (string | number | boolean | Tuple[])
|
|
71
|
-
|
|
72
|
-
## Features
|
|
73
|
-
|
|
74
|
-
- ✅ Browser-compatible UMD bundle (~688 KiB)
|
|
75
|
-
- ✅ TypeScript support with full type definitions
|
|
76
|
-
- ✅ Evaluates Forge expressions against model data
|
|
77
|
-
- ✅ No external dependencies in the bundle
|
|
78
|
-
- ✅ Works with Sterling/Alloy data formats
|
|
79
|
-
|
|
80
|
-
## Development
|
|
81
|
-
|
|
82
|
-
```bash
|
|
83
|
-
# Install dependencies
|
|
84
|
-
npm install
|
|
85
|
-
|
|
86
|
-
# Build the bundle
|
|
87
|
-
npm run build
|
|
88
|
-
|
|
89
|
-
# Run tests
|
|
90
|
-
npm test
|
|
91
|
-
|
|
92
|
-
# Serve demo locally
|
|
93
|
-
npm run serve
|
|
94
|
-
```
|
|
3
|
+
A TypeScript library for evaluating relational + some more expressions with a browser-compatible UMD bundle.
|
|
95
4
|
|
|
96
5
|
## License
|
|
97
6
|
|
|
98
7
|
MIT
|
|
99
8
|
|
|
100
|
-
## Contributing
|
|
101
|
-
|
|
102
|
-
1. Fork the repository
|
|
103
|
-
2. Create a feature branch
|
|
104
|
-
3. Make your changes
|
|
105
|
-
4. Add tests if needed
|
|
106
|
-
5. Submit a pull request
|
|
107
|
-
|
|
108
|
-
## Credits
|
|
109
|
-
|
|
110
|
-
_Note_: The evaluator makes use of a Forge parser built using ANTLR; this is largely taken from
|
|
111
|
-
the [parser developed by Siddhartha Prasad](https://github.com/sidprasad/forge-antlr/)
|
|
112
|
-
with some minor modifications to the grammar.
|
|
113
|
-
|
|
114
|
-
## Related
|
|
115
|
-
|
|
116
|
-
- [Forge Language](https://forge.binghamton.edu/)
|
|
117
|
-
- [Alloy](https://alloytools.org/)
|
|
118
|
-
- [Sterling Visualizer](https://sterling-js.github.io/)
|
|
@@ -20,6 +20,8 @@ export declare class ForgeExprEvaluator extends AbstractParseTreeVisitor<EvalRes
|
|
|
20
20
|
constructor(datum: IDataInstance);
|
|
21
21
|
private updateFreeVariables;
|
|
22
22
|
private constructFreeVariableKey;
|
|
23
|
+
private tryVisitWithUnknownAsLabel;
|
|
24
|
+
private getLabelForValue;
|
|
23
25
|
private cacheResult;
|
|
24
26
|
private getIden;
|
|
25
27
|
protected aggregateResult(aggregate: EvalResult, nextResult: EvalResult): EvalResult;
|
|
@@ -8,110 +8,115 @@ export declare class ForgeLexer extends Lexer {
|
|
|
8
8
|
static readonly RIGHT_SQUARE_TOK = 3;
|
|
9
9
|
static readonly AS_TOK = 4;
|
|
10
10
|
static readonly FILE_PATH_TOK = 5;
|
|
11
|
-
static readonly
|
|
12
|
-
static readonly
|
|
13
|
-
static readonly
|
|
14
|
-
static readonly
|
|
15
|
-
static readonly
|
|
16
|
-
static readonly
|
|
17
|
-
static readonly
|
|
18
|
-
static readonly
|
|
19
|
-
static readonly
|
|
20
|
-
static readonly
|
|
21
|
-
static readonly
|
|
22
|
-
static readonly
|
|
23
|
-
static readonly
|
|
24
|
-
static readonly
|
|
25
|
-
static readonly
|
|
26
|
-
static readonly
|
|
27
|
-
static readonly
|
|
28
|
-
static readonly
|
|
29
|
-
static readonly
|
|
30
|
-
static readonly
|
|
31
|
-
static readonly
|
|
32
|
-
static readonly
|
|
33
|
-
static readonly
|
|
34
|
-
static readonly
|
|
35
|
-
static readonly
|
|
36
|
-
static readonly
|
|
37
|
-
static readonly
|
|
38
|
-
static readonly
|
|
39
|
-
static readonly
|
|
40
|
-
static readonly
|
|
41
|
-
static readonly
|
|
42
|
-
static readonly
|
|
43
|
-
static readonly
|
|
44
|
-
static readonly
|
|
45
|
-
static readonly
|
|
46
|
-
static readonly
|
|
47
|
-
static readonly
|
|
48
|
-
static readonly
|
|
49
|
-
static readonly
|
|
50
|
-
static readonly
|
|
51
|
-
static readonly
|
|
52
|
-
static readonly
|
|
53
|
-
static readonly
|
|
54
|
-
static readonly
|
|
55
|
-
static readonly
|
|
56
|
-
static readonly
|
|
57
|
-
static readonly
|
|
58
|
-
static readonly
|
|
59
|
-
static readonly
|
|
60
|
-
static readonly
|
|
61
|
-
static readonly
|
|
62
|
-
static readonly
|
|
63
|
-
static readonly
|
|
64
|
-
static readonly
|
|
65
|
-
static readonly
|
|
66
|
-
static readonly
|
|
67
|
-
static readonly
|
|
68
|
-
static readonly
|
|
69
|
-
static readonly
|
|
70
|
-
static readonly
|
|
71
|
-
static readonly
|
|
72
|
-
static readonly
|
|
73
|
-
static readonly
|
|
74
|
-
static readonly
|
|
75
|
-
static readonly
|
|
76
|
-
static readonly
|
|
77
|
-
static readonly
|
|
78
|
-
static readonly
|
|
79
|
-
static readonly
|
|
80
|
-
static readonly
|
|
81
|
-
static readonly
|
|
82
|
-
static readonly
|
|
83
|
-
static readonly
|
|
84
|
-
static readonly
|
|
85
|
-
static readonly
|
|
86
|
-
static readonly
|
|
87
|
-
static readonly
|
|
88
|
-
static readonly
|
|
89
|
-
static readonly
|
|
90
|
-
static readonly
|
|
91
|
-
static readonly
|
|
92
|
-
static readonly
|
|
93
|
-
static readonly
|
|
94
|
-
static readonly
|
|
95
|
-
static readonly
|
|
96
|
-
static readonly
|
|
97
|
-
static readonly
|
|
98
|
-
static readonly
|
|
99
|
-
static readonly
|
|
100
|
-
static readonly
|
|
101
|
-
static readonly
|
|
102
|
-
static readonly
|
|
103
|
-
static readonly
|
|
104
|
-
static readonly
|
|
105
|
-
static readonly
|
|
106
|
-
static readonly
|
|
107
|
-
static readonly
|
|
108
|
-
static readonly
|
|
109
|
-
static readonly
|
|
110
|
-
static readonly
|
|
111
|
-
static readonly
|
|
112
|
-
static readonly
|
|
113
|
-
static readonly
|
|
114
|
-
static readonly
|
|
11
|
+
static readonly TRUE_TOK = 6;
|
|
12
|
+
static readonly FALSE_TOK = 7;
|
|
13
|
+
static readonly TRUE_HASH_TOK = 8;
|
|
14
|
+
static readonly FALSE_HASH_TOK = 9;
|
|
15
|
+
static readonly VAR_TOK = 10;
|
|
16
|
+
static readonly ABSTRACT_TOK = 11;
|
|
17
|
+
static readonly SIG_TOK = 12;
|
|
18
|
+
static readonly LEFT_CURLY_TOK = 13;
|
|
19
|
+
static readonly RIGHT_CURLY_TOK = 14;
|
|
20
|
+
static readonly EXTENDS_TOK = 15;
|
|
21
|
+
static readonly IN_TOK = 16;
|
|
22
|
+
static readonly PLUS_TOK = 17;
|
|
23
|
+
static readonly LONE_TOK = 18;
|
|
24
|
+
static readonly SOME_TOK = 19;
|
|
25
|
+
static readonly ONE_TOK = 20;
|
|
26
|
+
static readonly TWO_TOK = 21;
|
|
27
|
+
static readonly SET_TOK = 22;
|
|
28
|
+
static readonly FUNC_TOK = 23;
|
|
29
|
+
static readonly PFUNC_TOK = 24;
|
|
30
|
+
static readonly DISJ_TOK = 25;
|
|
31
|
+
static readonly COLON_TOK = 26;
|
|
32
|
+
static readonly WHEAT_TOK = 27;
|
|
33
|
+
static readonly PRED_TOK = 28;
|
|
34
|
+
static readonly DOT_TOK = 29;
|
|
35
|
+
static readonly FUN_TOK = 30;
|
|
36
|
+
static readonly LEFT_PAREN_TOK = 31;
|
|
37
|
+
static readonly RIGHT_PAREN_TOK = 32;
|
|
38
|
+
static readonly ASSERT_TOK = 33;
|
|
39
|
+
static readonly RUN_TOK = 34;
|
|
40
|
+
static readonly CHECK_TOK = 35;
|
|
41
|
+
static readonly FOR_TOK = 36;
|
|
42
|
+
static readonly BUT_TOK = 37;
|
|
43
|
+
static readonly EXACTLY_TOK = 38;
|
|
44
|
+
static readonly NONE_TOK = 39;
|
|
45
|
+
static readonly UNIV_TOK = 40;
|
|
46
|
+
static readonly IDEN_TOK = 41;
|
|
47
|
+
static readonly MINUS_TOK = 42;
|
|
48
|
+
static readonly IS_TOK = 43;
|
|
49
|
+
static readonly SAT_TOK = 44;
|
|
50
|
+
static readonly UNSAT_TOK = 45;
|
|
51
|
+
static readonly THEOREM_TOK = 46;
|
|
52
|
+
static readonly FORGE_ERROR_TOK = 47;
|
|
53
|
+
static readonly CHECKED_TOK = 48;
|
|
54
|
+
static readonly TEST_TOK = 49;
|
|
55
|
+
static readonly EXPECT_TOK = 50;
|
|
56
|
+
static readonly SUITE_TOK = 51;
|
|
57
|
+
static readonly BAR_TOK = 52;
|
|
58
|
+
static readonly ALL_TOK = 53;
|
|
59
|
+
static readonly SUFFICIENT_TOK = 54;
|
|
60
|
+
static readonly NECESSARY_TOK = 55;
|
|
61
|
+
static readonly CONSISTENT_TOK = 56;
|
|
62
|
+
static readonly INCONSISTENT_TOK = 57;
|
|
63
|
+
static readonly WITH_TOK = 58;
|
|
64
|
+
static readonly LET_TOK = 59;
|
|
65
|
+
static readonly BIND_TOK = 60;
|
|
66
|
+
static readonly OR_TOK = 61;
|
|
67
|
+
static readonly XOR_TOK = 62;
|
|
68
|
+
static readonly IFF_TOK = 63;
|
|
69
|
+
static readonly IMP_TOK = 64;
|
|
70
|
+
static readonly ELSE_TOK = 65;
|
|
71
|
+
static readonly AND_TOK = 66;
|
|
72
|
+
static readonly UNTIL_TOK = 67;
|
|
73
|
+
static readonly RELEASE_TOK = 68;
|
|
74
|
+
static readonly SINCE_TOK = 69;
|
|
75
|
+
static readonly TRIGGERED_TOK = 70;
|
|
76
|
+
static readonly NEG_TOK = 71;
|
|
77
|
+
static readonly ALWAYS_TOK = 72;
|
|
78
|
+
static readonly EVENTUALLY_TOK = 73;
|
|
79
|
+
static readonly AFTER_TOK = 74;
|
|
80
|
+
static readonly BEFORE_TOK = 75;
|
|
81
|
+
static readonly ONCE_TOK = 76;
|
|
82
|
+
static readonly HISTORICALLY_TOK = 77;
|
|
83
|
+
static readonly CARD_TOK = 78;
|
|
84
|
+
static readonly PPLUS_TOK = 79;
|
|
85
|
+
static readonly AMP_TOK = 80;
|
|
86
|
+
static readonly SUBT_TOK = 81;
|
|
87
|
+
static readonly SUPT_TOK = 82;
|
|
88
|
+
static readonly PRIME_TOK = 83;
|
|
89
|
+
static readonly TILDE_TOK = 84;
|
|
90
|
+
static readonly EXP_TOK = 85;
|
|
91
|
+
static readonly STAR_TOK = 86;
|
|
92
|
+
static readonly AT_TOK = 87;
|
|
93
|
+
static readonly BACKQUOTE_TOK = 88;
|
|
94
|
+
static readonly THIS_TOK = 89;
|
|
95
|
+
static readonly SEXPR_TOK = 90;
|
|
96
|
+
static readonly INST_TOK = 91;
|
|
97
|
+
static readonly EVAL_TOK = 92;
|
|
98
|
+
static readonly EXAMPLE_TOK = 93;
|
|
99
|
+
static readonly ARROW_TOK = 94;
|
|
100
|
+
static readonly EQ_TOK = 95;
|
|
101
|
+
static readonly LABEL_EQ_TOK = 96;
|
|
102
|
+
static readonly LT_TOK = 97;
|
|
103
|
+
static readonly GT_TOK = 98;
|
|
104
|
+
static readonly LEQ_TOK = 99;
|
|
105
|
+
static readonly GEQ_TOK = 100;
|
|
106
|
+
static readonly NI_TOK = 101;
|
|
107
|
+
static readonly NO_TOK = 102;
|
|
108
|
+
static readonly SUM_TOK = 103;
|
|
109
|
+
static readonly INT_TOK = 104;
|
|
110
|
+
static readonly OPTION_TOK = 105;
|
|
111
|
+
static readonly COMMA_TOK = 106;
|
|
112
|
+
static readonly SLASH_TOK = 107;
|
|
113
|
+
static readonly NUM_CONST_TOK = 108;
|
|
114
|
+
static readonly IDENTIFIER_TOK = 109;
|
|
115
|
+
static readonly WS = 110;
|
|
116
|
+
static readonly CCOMMENT = 111;
|
|
117
|
+
static readonly COMMENT = 112;
|
|
118
|
+
static readonly MULTCOMMENT = 113;
|
|
119
|
+
static readonly LANG_DECL = 114;
|
|
115
120
|
static readonly channelNames: string[];
|
|
116
121
|
static readonly modeNames: string[];
|
|
117
122
|
static readonly ruleNames: string[];
|
|
@@ -14,110 +14,115 @@ export declare class ForgeParser extends Parser {
|
|
|
14
14
|
static readonly RIGHT_SQUARE_TOK = 3;
|
|
15
15
|
static readonly AS_TOK = 4;
|
|
16
16
|
static readonly FILE_PATH_TOK = 5;
|
|
17
|
-
static readonly
|
|
18
|
-
static readonly
|
|
19
|
-
static readonly
|
|
20
|
-
static readonly
|
|
21
|
-
static readonly
|
|
22
|
-
static readonly
|
|
23
|
-
static readonly
|
|
24
|
-
static readonly
|
|
25
|
-
static readonly
|
|
26
|
-
static readonly
|
|
27
|
-
static readonly
|
|
28
|
-
static readonly
|
|
29
|
-
static readonly
|
|
30
|
-
static readonly
|
|
31
|
-
static readonly
|
|
32
|
-
static readonly
|
|
33
|
-
static readonly
|
|
34
|
-
static readonly
|
|
35
|
-
static readonly
|
|
36
|
-
static readonly
|
|
37
|
-
static readonly
|
|
38
|
-
static readonly
|
|
39
|
-
static readonly
|
|
40
|
-
static readonly
|
|
41
|
-
static readonly
|
|
42
|
-
static readonly
|
|
43
|
-
static readonly
|
|
44
|
-
static readonly
|
|
45
|
-
static readonly
|
|
46
|
-
static readonly
|
|
47
|
-
static readonly
|
|
48
|
-
static readonly
|
|
49
|
-
static readonly
|
|
50
|
-
static readonly
|
|
51
|
-
static readonly
|
|
52
|
-
static readonly
|
|
53
|
-
static readonly
|
|
54
|
-
static readonly
|
|
55
|
-
static readonly
|
|
56
|
-
static readonly
|
|
57
|
-
static readonly
|
|
58
|
-
static readonly
|
|
59
|
-
static readonly
|
|
60
|
-
static readonly
|
|
61
|
-
static readonly
|
|
62
|
-
static readonly
|
|
63
|
-
static readonly
|
|
64
|
-
static readonly
|
|
65
|
-
static readonly
|
|
66
|
-
static readonly
|
|
67
|
-
static readonly
|
|
68
|
-
static readonly
|
|
69
|
-
static readonly
|
|
70
|
-
static readonly
|
|
71
|
-
static readonly
|
|
72
|
-
static readonly
|
|
73
|
-
static readonly
|
|
74
|
-
static readonly
|
|
75
|
-
static readonly
|
|
76
|
-
static readonly
|
|
77
|
-
static readonly
|
|
78
|
-
static readonly
|
|
79
|
-
static readonly
|
|
80
|
-
static readonly
|
|
81
|
-
static readonly
|
|
82
|
-
static readonly
|
|
83
|
-
static readonly
|
|
84
|
-
static readonly
|
|
85
|
-
static readonly
|
|
86
|
-
static readonly
|
|
87
|
-
static readonly
|
|
88
|
-
static readonly
|
|
89
|
-
static readonly
|
|
90
|
-
static readonly
|
|
91
|
-
static readonly
|
|
92
|
-
static readonly
|
|
93
|
-
static readonly
|
|
94
|
-
static readonly
|
|
95
|
-
static readonly
|
|
96
|
-
static readonly
|
|
97
|
-
static readonly
|
|
98
|
-
static readonly
|
|
99
|
-
static readonly
|
|
100
|
-
static readonly
|
|
101
|
-
static readonly
|
|
102
|
-
static readonly
|
|
103
|
-
static readonly
|
|
104
|
-
static readonly
|
|
105
|
-
static readonly
|
|
106
|
-
static readonly
|
|
107
|
-
static readonly
|
|
108
|
-
static readonly
|
|
109
|
-
static readonly
|
|
110
|
-
static readonly
|
|
111
|
-
static readonly
|
|
112
|
-
static readonly
|
|
113
|
-
static readonly
|
|
114
|
-
static readonly
|
|
115
|
-
static readonly
|
|
116
|
-
static readonly
|
|
117
|
-
static readonly
|
|
118
|
-
static readonly
|
|
119
|
-
static readonly
|
|
120
|
-
static readonly
|
|
17
|
+
static readonly TRUE_TOK = 6;
|
|
18
|
+
static readonly FALSE_TOK = 7;
|
|
19
|
+
static readonly TRUE_HASH_TOK = 8;
|
|
20
|
+
static readonly FALSE_HASH_TOK = 9;
|
|
21
|
+
static readonly VAR_TOK = 10;
|
|
22
|
+
static readonly ABSTRACT_TOK = 11;
|
|
23
|
+
static readonly SIG_TOK = 12;
|
|
24
|
+
static readonly LEFT_CURLY_TOK = 13;
|
|
25
|
+
static readonly RIGHT_CURLY_TOK = 14;
|
|
26
|
+
static readonly EXTENDS_TOK = 15;
|
|
27
|
+
static readonly IN_TOK = 16;
|
|
28
|
+
static readonly PLUS_TOK = 17;
|
|
29
|
+
static readonly LONE_TOK = 18;
|
|
30
|
+
static readonly SOME_TOK = 19;
|
|
31
|
+
static readonly ONE_TOK = 20;
|
|
32
|
+
static readonly TWO_TOK = 21;
|
|
33
|
+
static readonly SET_TOK = 22;
|
|
34
|
+
static readonly FUNC_TOK = 23;
|
|
35
|
+
static readonly PFUNC_TOK = 24;
|
|
36
|
+
static readonly DISJ_TOK = 25;
|
|
37
|
+
static readonly COLON_TOK = 26;
|
|
38
|
+
static readonly WHEAT_TOK = 27;
|
|
39
|
+
static readonly PRED_TOK = 28;
|
|
40
|
+
static readonly DOT_TOK = 29;
|
|
41
|
+
static readonly FUN_TOK = 30;
|
|
42
|
+
static readonly LEFT_PAREN_TOK = 31;
|
|
43
|
+
static readonly RIGHT_PAREN_TOK = 32;
|
|
44
|
+
static readonly ASSERT_TOK = 33;
|
|
45
|
+
static readonly RUN_TOK = 34;
|
|
46
|
+
static readonly CHECK_TOK = 35;
|
|
47
|
+
static readonly FOR_TOK = 36;
|
|
48
|
+
static readonly BUT_TOK = 37;
|
|
49
|
+
static readonly EXACTLY_TOK = 38;
|
|
50
|
+
static readonly NONE_TOK = 39;
|
|
51
|
+
static readonly UNIV_TOK = 40;
|
|
52
|
+
static readonly IDEN_TOK = 41;
|
|
53
|
+
static readonly MINUS_TOK = 42;
|
|
54
|
+
static readonly IS_TOK = 43;
|
|
55
|
+
static readonly SAT_TOK = 44;
|
|
56
|
+
static readonly UNSAT_TOK = 45;
|
|
57
|
+
static readonly THEOREM_TOK = 46;
|
|
58
|
+
static readonly FORGE_ERROR_TOK = 47;
|
|
59
|
+
static readonly CHECKED_TOK = 48;
|
|
60
|
+
static readonly TEST_TOK = 49;
|
|
61
|
+
static readonly EXPECT_TOK = 50;
|
|
62
|
+
static readonly SUITE_TOK = 51;
|
|
63
|
+
static readonly BAR_TOK = 52;
|
|
64
|
+
static readonly ALL_TOK = 53;
|
|
65
|
+
static readonly SUFFICIENT_TOK = 54;
|
|
66
|
+
static readonly NECESSARY_TOK = 55;
|
|
67
|
+
static readonly CONSISTENT_TOK = 56;
|
|
68
|
+
static readonly INCONSISTENT_TOK = 57;
|
|
69
|
+
static readonly WITH_TOK = 58;
|
|
70
|
+
static readonly LET_TOK = 59;
|
|
71
|
+
static readonly BIND_TOK = 60;
|
|
72
|
+
static readonly OR_TOK = 61;
|
|
73
|
+
static readonly XOR_TOK = 62;
|
|
74
|
+
static readonly IFF_TOK = 63;
|
|
75
|
+
static readonly IMP_TOK = 64;
|
|
76
|
+
static readonly ELSE_TOK = 65;
|
|
77
|
+
static readonly AND_TOK = 66;
|
|
78
|
+
static readonly UNTIL_TOK = 67;
|
|
79
|
+
static readonly RELEASE_TOK = 68;
|
|
80
|
+
static readonly SINCE_TOK = 69;
|
|
81
|
+
static readonly TRIGGERED_TOK = 70;
|
|
82
|
+
static readonly NEG_TOK = 71;
|
|
83
|
+
static readonly ALWAYS_TOK = 72;
|
|
84
|
+
static readonly EVENTUALLY_TOK = 73;
|
|
85
|
+
static readonly AFTER_TOK = 74;
|
|
86
|
+
static readonly BEFORE_TOK = 75;
|
|
87
|
+
static readonly ONCE_TOK = 76;
|
|
88
|
+
static readonly HISTORICALLY_TOK = 77;
|
|
89
|
+
static readonly CARD_TOK = 78;
|
|
90
|
+
static readonly PPLUS_TOK = 79;
|
|
91
|
+
static readonly AMP_TOK = 80;
|
|
92
|
+
static readonly SUBT_TOK = 81;
|
|
93
|
+
static readonly SUPT_TOK = 82;
|
|
94
|
+
static readonly PRIME_TOK = 83;
|
|
95
|
+
static readonly TILDE_TOK = 84;
|
|
96
|
+
static readonly EXP_TOK = 85;
|
|
97
|
+
static readonly STAR_TOK = 86;
|
|
98
|
+
static readonly AT_TOK = 87;
|
|
99
|
+
static readonly BACKQUOTE_TOK = 88;
|
|
100
|
+
static readonly THIS_TOK = 89;
|
|
101
|
+
static readonly SEXPR_TOK = 90;
|
|
102
|
+
static readonly INST_TOK = 91;
|
|
103
|
+
static readonly EVAL_TOK = 92;
|
|
104
|
+
static readonly EXAMPLE_TOK = 93;
|
|
105
|
+
static readonly ARROW_TOK = 94;
|
|
106
|
+
static readonly EQ_TOK = 95;
|
|
107
|
+
static readonly LABEL_EQ_TOK = 96;
|
|
108
|
+
static readonly LT_TOK = 97;
|
|
109
|
+
static readonly GT_TOK = 98;
|
|
110
|
+
static readonly LEQ_TOK = 99;
|
|
111
|
+
static readonly GEQ_TOK = 100;
|
|
112
|
+
static readonly NI_TOK = 101;
|
|
113
|
+
static readonly NO_TOK = 102;
|
|
114
|
+
static readonly SUM_TOK = 103;
|
|
115
|
+
static readonly INT_TOK = 104;
|
|
116
|
+
static readonly OPTION_TOK = 105;
|
|
117
|
+
static readonly COMMA_TOK = 106;
|
|
118
|
+
static readonly SLASH_TOK = 107;
|
|
119
|
+
static readonly NUM_CONST_TOK = 108;
|
|
120
|
+
static readonly IDENTIFIER_TOK = 109;
|
|
121
|
+
static readonly WS = 110;
|
|
122
|
+
static readonly CCOMMENT = 111;
|
|
123
|
+
static readonly COMMENT = 112;
|
|
124
|
+
static readonly MULTCOMMENT = 113;
|
|
125
|
+
static readonly LANG_DECL = 114;
|
|
121
126
|
static readonly RULE_predDecl = 0;
|
|
122
127
|
static readonly RULE_parseExpr = 1;
|
|
123
128
|
static readonly RULE_alloyModule = 2;
|
|
@@ -646,6 +651,11 @@ export declare class ConstContext extends ParserRuleContext {
|
|
|
646
651
|
IDEN_TOK(): TerminalNode | undefined;
|
|
647
652
|
number(): NumberContext | undefined;
|
|
648
653
|
MINUS_TOK(): TerminalNode | undefined;
|
|
654
|
+
TRUE_TOK(): TerminalNode | undefined;
|
|
655
|
+
FALSE_TOK(): TerminalNode | undefined;
|
|
656
|
+
TRUE_HASH_TOK(): TerminalNode | undefined;
|
|
657
|
+
FALSE_HASH_TOK(): TerminalNode | undefined;
|
|
658
|
+
FILE_PATH_TOK(): TerminalNode | undefined;
|
|
649
659
|
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
650
660
|
get ruleIndex(): number;
|
|
651
661
|
enterRule(listener: ForgeListener): void;
|
|
@@ -769,6 +779,7 @@ export declare class ArrowOpContext extends ParserRuleContext {
|
|
|
769
779
|
export declare class CompareOpContext extends ParserRuleContext {
|
|
770
780
|
IN_TOK(): TerminalNode | undefined;
|
|
771
781
|
EQ_TOK(): TerminalNode | undefined;
|
|
782
|
+
LABEL_EQ_TOK(): TerminalNode | undefined;
|
|
772
783
|
LT_TOK(): TerminalNode | undefined;
|
|
773
784
|
GT_TOK(): TerminalNode | undefined;
|
|
774
785
|
LEQ_TOK(): TerminalNode | undefined;
|