simple-graph-query 1.0.1 → 1.1.2

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.
@@ -0,0 +1,127 @@
1
+ import { ForgeListener } from './ForgeListener';
2
+ import { TerminalNode } from 'antlr4ts/tree/TerminalNode';
3
+ import { ErrorNode } from 'antlr4ts/tree/ErrorNode';
4
+ import { ParserRuleContext } from 'antlr4ts/ParserRuleContext';
5
+ import { ConsistencyDeclContext } from "./ForgeParser";
6
+ import { SigDeclContext } from "./ForgeParser";
7
+ import { PredDeclContext } from "./ForgeParser";
8
+ import { FunDeclContext } from "./ForgeParser";
9
+ import { TestDeclContext } from "./ForgeParser";
10
+ import { SatisfiabilityDeclContext } from "./ForgeParser";
11
+ import { PropertyDeclContext } from "./ForgeParser";
12
+ import { QuantifiedPropertyDeclContext } from "./ForgeParser";
13
+ import { NameContext } from "./ForgeParser";
14
+ import { NameListContext } from "./ForgeParser";
15
+ import { ExprContext } from "./ForgeParser";
16
+ import { InstDeclContext } from "./ForgeParser";
17
+ import { ExampleDeclContext } from "./ForgeParser";
18
+ import { Sig, Predicate, Test, AssertionTest, Example, QuantifiedAssertionTest, SatisfiabilityAssertionTest, ConsistencyAssertionTest } from './ForgeSyntaxConstructs';
19
+ export declare class ForgeListenerImpl implements ForgeListener {
20
+ private _sigs;
21
+ private _predicates;
22
+ private _tests;
23
+ private _assertions;
24
+ private _examples;
25
+ private _quantifiedAssertions;
26
+ private _satisfiabilityAssertions;
27
+ private _functions;
28
+ private _consistencyAssertions;
29
+ get sigs(): Sig[];
30
+ get predicates(): Predicate[];
31
+ get tests(): Test[];
32
+ get assertions(): AssertionTest[];
33
+ get examples(): Example[];
34
+ get quantifiedAssertions(): QuantifiedAssertionTest[];
35
+ get satisfiabilityAssertions(): SatisfiabilityAssertionTest[];
36
+ get functions(): Function[];
37
+ get consistencyAssertions(): ConsistencyAssertionTest[];
38
+ /**
39
+ * Exit a parse tree produced by `ForgeParser.sigDecl`.
40
+ * @param ctx the parse tree
41
+ */
42
+ exitSigDecl?(ctx: SigDeclContext): void;
43
+ /**
44
+ * Exit a parse tree produced by `ForgeParser.predDecl`.
45
+ * @param ctx the parse tree
46
+ */
47
+ exitPredDecl?(ctx: PredDeclContext): void;
48
+ /**
49
+ * Exit a parse tree produced by `ForgeParser.funDecl`.
50
+ * @param ctx the parse tree
51
+ */
52
+ exitFunDecl?(ctx: FunDeclContext): void;
53
+ /**
54
+ * Exit a parse tree produced by `ForgeParser.testDecl`.
55
+ * @param ctx the parse tree
56
+ */
57
+ exitTestDecl?(ctx: TestDeclContext): void;
58
+ /**
59
+ * Exit a parse tree produced by `ForgeParser.satisfiabilityDecl`.
60
+ * @param ctx the parse tree
61
+ */
62
+ exitSatisfiabilityDecl?(ctx: SatisfiabilityDeclContext): void;
63
+ /**
64
+ * Exit a parse tree produced by `ForgeParser.propertyDecl`.
65
+ * @param ctx the parse tree
66
+ */
67
+ exitPropertyDecl?(ctx: PropertyDeclContext): void;
68
+ /**
69
+ * Exit a parse tree produced by `ForgeParser.quantifiedPropertyDecl`.
70
+ * @param ctx the parse tree
71
+ *
72
+ */
73
+ exitQuantifiedPropertyDecl?(ctx: QuantifiedPropertyDeclContext): void;
74
+ /**
75
+ * Exit a parse tree produced by `ForgeParser.consistencyDecl`.
76
+ * @param ctx the parse tree
77
+ */
78
+ exitConsistencyDecl?(ctx: ConsistencyDeclContext): void;
79
+ /**
80
+ * Exit a parse tree produced by `ForgeParser.name`.
81
+ * @param ctx the parse tree
82
+ *
83
+ *
84
+ * TODO: THIS MAY BE USEFUL FOR NAME LOCATIONS (CLICK TO GO TO DEFN OR SOMETHING?)
85
+ *
86
+ *
87
+ */
88
+ exitName?: (ctx: NameContext) => void;
89
+ /**
90
+ * Exit a parse tree produced by `ForgeParser.expr`.
91
+ * @param ctx the parse tree
92
+ *
93
+ *
94
+ *
95
+ * TODO: It feels like this is too important to not be useful at some point.
96
+ *
97
+ *
98
+ */
99
+ exitExpr?: (ctx: ExprContext) => void;
100
+ /**
101
+ * Exit a parse tree produced by `ForgeParser.instDecl`.
102
+ * @param ctx the parse tree
103
+ *
104
+ *
105
+ * Useful for examples or tests???
106
+ */
107
+ exitInstDecl?: (ctx: InstDeclContext) => void;
108
+ /**
109
+ * Exit a parse tree produced by `ForgeParser.exampleDecl`.
110
+ * @param ctx the parse tree
111
+ *
112
+ *
113
+ * * TODO: THIS IS HARD, WE NEED TO PARSE THE EXPRLIST (WHICH WILL ALWAYS BE ALL)
114
+ *
115
+ */
116
+ exitExampleDecl?(ctx: ExampleDeclContext): void;
117
+ visitTerminal?: (/*@NotNull*/ node: TerminalNode) => void;
118
+ visitErrorNode?: (/*@NotNull*/ node: ErrorNode) => void;
119
+ enterEveryRule?: (/*@NotNull*/ ctx: ParserRuleContext) => void;
120
+ exitEveryRule?: (/*@NotNull*/ ctx: ParserRuleContext) => void;
121
+ /**
122
+ * Collects all names from the given NameListContext.
123
+ * @param ctx the NameListContext
124
+ * @returns an array of NameContext
125
+ */
126
+ getAllNames(ctx: NameListContext): string[];
127
+ }