7590 lines
285 KiB
TypeScript
7590 lines
285 KiB
TypeScript
|
|
import * as antlr from "antlr4ng";
|
|
import { Token } from "antlr4ng";
|
|
|
|
import { QuixosCapabilityVisitor } from "./QuixosCapabilityVisitor.js";
|
|
|
|
// for running tests with parameters, TODO: discuss strategy for typed parameters in CI
|
|
// eslint-disable-next-line no-unused-vars
|
|
type int = number;
|
|
|
|
|
|
export class QuixosCapabilityParser extends antlr.Parser {
|
|
public static readonly WORKSPACE = 1;
|
|
public static readonly QUERY = 2;
|
|
public static readonly ROOT = 3;
|
|
public static readonly DOCUMENT = 4;
|
|
public static readonly FRAGMENTS = 5;
|
|
public static readonly VIEW = 6;
|
|
public static readonly MAX = 7;
|
|
public static readonly ALLOW = 8;
|
|
public static readonly POLL = 9;
|
|
public static readonly QUERYABLE = 10;
|
|
public static readonly RPC = 11;
|
|
public static readonly QUERY_REASON = 12;
|
|
public static readonly TYPE = 13;
|
|
public static readonly OBJECT = 14;
|
|
public static readonly STORABLE = 15;
|
|
public static readonly IMPLEMENTS = 16;
|
|
public static readonly REF = 17;
|
|
public static readonly FRAGMENT = 18;
|
|
public static readonly IMPORT = 19;
|
|
public static readonly EXTERNAL = 20;
|
|
public static readonly ATOM = 21;
|
|
public static readonly INTERFACE = 22;
|
|
public static readonly INTERFACES = 23;
|
|
public static readonly PACKAGE = 24;
|
|
public static readonly VALUE = 25;
|
|
public static readonly RELATION = 26;
|
|
public static readonly OPERATION = 27;
|
|
public static readonly FUNCTION = 28;
|
|
public static readonly CONSTRUCTOR = 29;
|
|
public static readonly CONSTRUCTS = 30;
|
|
public static readonly INPUT = 31;
|
|
public static readonly CONFORM = 32;
|
|
public static readonly AS = 33;
|
|
public static readonly BIND = 34;
|
|
public static readonly STATIC = 35;
|
|
public static readonly TO = 36;
|
|
public static readonly PRIVATE = 37;
|
|
public static readonly SHARED = 38;
|
|
public static readonly STATE = 39;
|
|
public static readonly EDGE = 40;
|
|
public static readonly PROJECTION = 41;
|
|
public static readonly WITH = 42;
|
|
public static readonly USING = 43;
|
|
public static readonly VIA = 44;
|
|
public static readonly MATERIALIZE = 45;
|
|
public static readonly IF = 46;
|
|
public static readonly ABSENT = 47;
|
|
public static readonly ON = 48;
|
|
public static readonly POLICY = 49;
|
|
public static readonly DEFAULT = 50;
|
|
public static readonly SOURCE = 51;
|
|
public static readonly REPOSITORY = 52;
|
|
public static readonly COMMIT = 53;
|
|
public static readonly REVISION = 54;
|
|
public static readonly SEMANTIC_MAJOR = 55;
|
|
public static readonly ON_DELETE = 56;
|
|
public static readonly RETAIN_OTHER = 57;
|
|
public static readonly KEYED = 58;
|
|
public static readonly PUBLIC_TRAVERSAL = 59;
|
|
public static readonly ID = 60;
|
|
public static readonly DOC = 61;
|
|
public static readonly MODE = 62;
|
|
public static readonly EMITS = 63;
|
|
public static readonly RECEIVER = 64;
|
|
public static readonly REQUIRES = 65;
|
|
public static readonly ANY = 66;
|
|
public static readonly GET = 67;
|
|
public static readonly SET = 68;
|
|
public static readonly WATCH = 69;
|
|
public static readonly START = 70;
|
|
public static readonly STOP = 71;
|
|
public static readonly READ = 72;
|
|
public static readonly WRITE = 73;
|
|
public static readonly RESOLVE = 74;
|
|
public static readonly CONNECT = 75;
|
|
public static readonly DISCONNECT = 76;
|
|
public static readonly CALL = 77;
|
|
public static readonly WATCH_START = 78;
|
|
public static readonly WATCH_STOP = 79;
|
|
public static readonly SUBSCRIBE = 80;
|
|
public static readonly UNSUBSCRIBE = 81;
|
|
public static readonly OPTIMISTIC_REGISTER = 82;
|
|
public static readonly CRDT = 83;
|
|
public static readonly OPTIONAL_ONE = 84;
|
|
public static readonly EXACTLY_ONE = 85;
|
|
public static readonly MANY_UNIQUE = 86;
|
|
public static readonly MANY = 87;
|
|
public static readonly ORDERED = 88;
|
|
public static readonly UNIT = 89;
|
|
public static readonly WATCH_HANDLE = 90;
|
|
public static readonly MESSAGE = 91;
|
|
public static readonly ATOM_REF = 92;
|
|
public static readonly INTERFACE_REF = 93;
|
|
public static readonly OPTIONAL = 94;
|
|
public static readonly LIST = 95;
|
|
public static readonly RECORD = 96;
|
|
public static readonly BOOL = 97;
|
|
public static readonly BYTES = 98;
|
|
public static readonly DOUBLE = 99;
|
|
public static readonly INT32 = 100;
|
|
public static readonly INT64 = 101;
|
|
public static readonly STRING = 102;
|
|
public static readonly UINT32 = 103;
|
|
public static readonly UINT64 = 104;
|
|
public static readonly TRUE = 105;
|
|
public static readonly FALSE = 106;
|
|
public static readonly NULL = 107;
|
|
public static readonly ARROW = 108;
|
|
public static readonly COLON = 109;
|
|
public static readonly SEMI = 110;
|
|
public static readonly COMMA = 111;
|
|
public static readonly DOT = 112;
|
|
public static readonly LBRACE = 113;
|
|
public static readonly RBRACE = 114;
|
|
public static readonly LBRACK = 115;
|
|
public static readonly RBRACK = 116;
|
|
public static readonly LPAREN = 117;
|
|
public static readonly RPAREN = 118;
|
|
public static readonly LT = 119;
|
|
public static readonly GT = 120;
|
|
public static readonly AMP = 121;
|
|
public static readonly EQUAL = 122;
|
|
public static readonly INTEGER = 123;
|
|
public static readonly JSON_NUMBER = 124;
|
|
public static readonly IDENTIFIER = 125;
|
|
public static readonly STRING_LITERAL = 126;
|
|
public static readonly LINE_COMMENT = 127;
|
|
public static readonly BLOCK_COMMENT = 128;
|
|
public static readonly WS = 129;
|
|
public static readonly RULE_document = 0;
|
|
public static readonly RULE_fragmentDecl = 1;
|
|
public static readonly RULE_sourceImportDecl = 2;
|
|
public static readonly RULE_workspaceDecl = 3;
|
|
public static readonly RULE_workspaceItem = 4;
|
|
public static readonly RULE_resourceImportDecl = 5;
|
|
public static readonly RULE_externalAtomDecl = 6;
|
|
public static readonly RULE_externalInterfaceDecl = 7;
|
|
public static readonly RULE_resourcePreamble = 8;
|
|
public static readonly RULE_atomDecl = 9;
|
|
public static readonly RULE_interfaceResourceDecl = 10;
|
|
public static readonly RULE_typeParameters = 11;
|
|
public static readonly RULE_typeParameter = 12;
|
|
public static readonly RULE_interfaceType = 13;
|
|
public static readonly RULE_typeArguments = 14;
|
|
public static readonly RULE_typeArgument = 15;
|
|
public static readonly RULE_typeAliasDecl = 16;
|
|
public static readonly RULE_interfaceMember = 17;
|
|
public static readonly RULE_operationMember = 18;
|
|
public static readonly RULE_valueMember = 19;
|
|
public static readonly RULE_valueMemberOperation = 20;
|
|
public static readonly RULE_relationshipMember = 21;
|
|
public static readonly RULE_queryReadContract = 22;
|
|
public static readonly RULE_relationshipOperation = 23;
|
|
public static readonly RULE_targetConstraint = 24;
|
|
public static readonly RULE_packageResourceDecl = 25;
|
|
public static readonly RULE_packageExport = 26;
|
|
public static readonly RULE_packageQuery = 27;
|
|
public static readonly RULE_queryClause = 28;
|
|
public static readonly RULE_packageOperationExport = 29;
|
|
public static readonly RULE_packageFunctionExport = 30;
|
|
public static readonly RULE_packageConstructorExport = 31;
|
|
public static readonly RULE_eventClause = 32;
|
|
public static readonly RULE_operationMode = 33;
|
|
public static readonly RULE_receiverRequirement = 34;
|
|
public static readonly RULE_identifierList = 35;
|
|
public static readonly RULE_dependencyBlock = 36;
|
|
public static readonly RULE_dependencyPort = 37;
|
|
public static readonly RULE_primitiveList = 38;
|
|
public static readonly RULE_primitive = 39;
|
|
public static readonly RULE_sharedAttachmentDecl = 40;
|
|
public static readonly RULE_attachmentDecl = 41;
|
|
public static readonly RULE_stateDecl = 42;
|
|
public static readonly RULE_storagePolicy = 43;
|
|
public static readonly RULE_edgeDecl = 44;
|
|
public static readonly RULE_edgeEndpoint = 45;
|
|
public static readonly RULE_conformanceDecl = 46;
|
|
public static readonly RULE_conformanceItem = 47;
|
|
public static readonly RULE_stateFieldBindingDecl = 48;
|
|
public static readonly RULE_relationshipMaterializationDecl = 49;
|
|
public static readonly RULE_operationBindingDecl = 50;
|
|
public static readonly RULE_memberOperationRef = 51;
|
|
public static readonly RULE_operationName = 52;
|
|
public static readonly RULE_operationProvider = 53;
|
|
public static readonly RULE_statePrimitive = 54;
|
|
public static readonly RULE_edgePrimitive = 55;
|
|
public static readonly RULE_dependencyBindingBlock = 56;
|
|
public static readonly RULE_dependencyBinding = 57;
|
|
public static readonly RULE_constructorBindingDecl = 58;
|
|
public static readonly RULE_valueType = 59;
|
|
public static readonly RULE_recordField = 60;
|
|
public static readonly RULE_scalarType = 61;
|
|
public static readonly RULE_cardinality = 62;
|
|
public static readonly RULE_jsonLiteral = 63;
|
|
public static readonly RULE_jsonObject = 64;
|
|
public static readonly RULE_jsonMember = 65;
|
|
public static readonly RULE_jsonArray = 66;
|
|
public static readonly RULE_identifier = 67;
|
|
public static readonly RULE_stringLiteral = 68;
|
|
|
|
public static readonly literalNames = [
|
|
null, "'workspace'", "'query'", "'root'", "'document'", "'fragments'",
|
|
"'view'", "'max'", "'allow'", "'poll'", "'queryable'", "'rpc'",
|
|
"'query-reason'", "'type'", "'object'", "'storable'", "'implements'",
|
|
"'ref'", "'fragment'", "'import'", "'external'", "'atom'", "'interface'",
|
|
"'interfaces'", "'package'", "'value'", "'relation'", "'operation'",
|
|
"'function'", "'constructor'", "'constructs'", "'input'", "'conform'",
|
|
"'as'", "'bind'", "'static'", "'to'", "'private'", "'shared'", "'state'",
|
|
"'edge'", "'projection'", "'with'", "'using'", "'via'", "'materialize'",
|
|
"'if'", "'absent'", "'on'", "'policy'", "'default'", "'source'",
|
|
"'repository'", "'commit'", "'revision'", "'semantic-major'", "'on-delete'",
|
|
"'retain-other'", "'keyed'", "'public-traversal'", "'id'", "'doc'",
|
|
"'mode'", "'emits'", "'receiver'", "'requires'", "'any'", "'get'",
|
|
"'set'", "'watch'", "'start'", "'stop'", "'read'", "'write'", "'resolve'",
|
|
"'connect'", "'disconnect'", "'call'", "'watch-start'", "'watch-stop'",
|
|
"'subscribe'", "'unsubscribe'", "'optimistic-register'", "'crdt'",
|
|
"'optional-one'", "'exactly-one'", "'many-unique'", "'many'", "'ordered'",
|
|
"'unit'", "'watch-handle'", "'message'", "'atom-ref'", "'interface-ref'",
|
|
"'optional'", "'list'", "'record'", "'bool'", "'bytes'", "'double'",
|
|
"'int32'", "'int64'", "'string'", "'uint32'", "'uint64'", "'true'",
|
|
"'false'", "'null'", "'->'", "':'", "';'", "','", "'.'", "'{'",
|
|
"'}'", "'['", "']'", "'('", "')'", "'<'", "'>'", "'&'", "'='"
|
|
];
|
|
|
|
public static readonly symbolicNames = [
|
|
null, "WORKSPACE", "QUERY", "ROOT", "DOCUMENT", "FRAGMENTS", "VIEW",
|
|
"MAX", "ALLOW", "POLL", "QUERYABLE", "RPC", "QUERY_REASON", "TYPE",
|
|
"OBJECT", "STORABLE", "IMPLEMENTS", "REF", "FRAGMENT", "IMPORT",
|
|
"EXTERNAL", "ATOM", "INTERFACE", "INTERFACES", "PACKAGE", "VALUE",
|
|
"RELATION", "OPERATION", "FUNCTION", "CONSTRUCTOR", "CONSTRUCTS",
|
|
"INPUT", "CONFORM", "AS", "BIND", "STATIC", "TO", "PRIVATE", "SHARED",
|
|
"STATE", "EDGE", "PROJECTION", "WITH", "USING", "VIA", "MATERIALIZE",
|
|
"IF", "ABSENT", "ON", "POLICY", "DEFAULT", "SOURCE", "REPOSITORY",
|
|
"COMMIT", "REVISION", "SEMANTIC_MAJOR", "ON_DELETE", "RETAIN_OTHER",
|
|
"KEYED", "PUBLIC_TRAVERSAL", "ID", "DOC", "MODE", "EMITS", "RECEIVER",
|
|
"REQUIRES", "ANY", "GET", "SET", "WATCH", "START", "STOP", "READ",
|
|
"WRITE", "RESOLVE", "CONNECT", "DISCONNECT", "CALL", "WATCH_START",
|
|
"WATCH_STOP", "SUBSCRIBE", "UNSUBSCRIBE", "OPTIMISTIC_REGISTER",
|
|
"CRDT", "OPTIONAL_ONE", "EXACTLY_ONE", "MANY_UNIQUE", "MANY", "ORDERED",
|
|
"UNIT", "WATCH_HANDLE", "MESSAGE", "ATOM_REF", "INTERFACE_REF",
|
|
"OPTIONAL", "LIST", "RECORD", "BOOL", "BYTES", "DOUBLE", "INT32",
|
|
"INT64", "STRING", "UINT32", "UINT64", "TRUE", "FALSE", "NULL",
|
|
"ARROW", "COLON", "SEMI", "COMMA", "DOT", "LBRACE", "RBRACE", "LBRACK",
|
|
"RBRACK", "LPAREN", "RPAREN", "LT", "GT", "AMP", "EQUAL", "INTEGER",
|
|
"JSON_NUMBER", "IDENTIFIER", "STRING_LITERAL", "LINE_COMMENT", "BLOCK_COMMENT",
|
|
"WS"
|
|
];
|
|
public static readonly ruleNames = [
|
|
"document", "fragmentDecl", "sourceImportDecl", "workspaceDecl",
|
|
"workspaceItem", "resourceImportDecl", "externalAtomDecl", "externalInterfaceDecl",
|
|
"resourcePreamble", "atomDecl", "interfaceResourceDecl", "typeParameters",
|
|
"typeParameter", "interfaceType", "typeArguments", "typeArgument",
|
|
"typeAliasDecl", "interfaceMember", "operationMember", "valueMember",
|
|
"valueMemberOperation", "relationshipMember", "queryReadContract",
|
|
"relationshipOperation", "targetConstraint", "packageResourceDecl",
|
|
"packageExport", "packageQuery", "queryClause", "packageOperationExport",
|
|
"packageFunctionExport", "packageConstructorExport", "eventClause",
|
|
"operationMode", "receiverRequirement", "identifierList", "dependencyBlock",
|
|
"dependencyPort", "primitiveList", "primitive", "sharedAttachmentDecl",
|
|
"attachmentDecl", "stateDecl", "storagePolicy", "edgeDecl", "edgeEndpoint",
|
|
"conformanceDecl", "conformanceItem", "stateFieldBindingDecl", "relationshipMaterializationDecl",
|
|
"operationBindingDecl", "memberOperationRef", "operationName", "operationProvider",
|
|
"statePrimitive", "edgePrimitive", "dependencyBindingBlock", "dependencyBinding",
|
|
"constructorBindingDecl", "valueType", "recordField", "scalarType",
|
|
"cardinality", "jsonLiteral", "jsonObject", "jsonMember", "jsonArray",
|
|
"identifier", "stringLiteral",
|
|
];
|
|
|
|
public get grammarFileName(): string { return "QuixosCapability.g4"; }
|
|
public get literalNames(): (string | null)[] { return QuixosCapabilityParser.literalNames; }
|
|
public get symbolicNames(): (string | null)[] { return QuixosCapabilityParser.symbolicNames; }
|
|
public get ruleNames(): string[] { return QuixosCapabilityParser.ruleNames; }
|
|
public get serializedATN(): number[] { return QuixosCapabilityParser._serializedATN; }
|
|
|
|
protected createFailedPredicateException(predicate?: string, message?: string): antlr.FailedPredicateException {
|
|
return new antlr.FailedPredicateException(this, predicate, message);
|
|
}
|
|
|
|
public constructor(input: antlr.TokenStream) {
|
|
super(input);
|
|
this.interpreter = new antlr.ParserATNSimulator(this, QuixosCapabilityParser._ATN, QuixosCapabilityParser.decisionsToDFA, new antlr.PredictionContextCache());
|
|
}
|
|
public document(): DocumentContext {
|
|
let localContext = new DocumentContext(this.context, this.state);
|
|
this.enterRule(localContext, 0, QuixosCapabilityParser.RULE_document);
|
|
try {
|
|
this.state = 150;
|
|
this.errorHandler.sync(this);
|
|
switch (this.interpreter.adaptivePredict(this.tokenStream, 0, this.context) ) {
|
|
case 1:
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 138;
|
|
this.workspaceDecl();
|
|
this.state = 139;
|
|
this.match(QuixosCapabilityParser.EOF);
|
|
}
|
|
break;
|
|
case 2:
|
|
this.enterOuterAlt(localContext, 2);
|
|
{
|
|
this.state = 141;
|
|
this.interfaceResourceDecl();
|
|
this.state = 142;
|
|
this.match(QuixosCapabilityParser.EOF);
|
|
}
|
|
break;
|
|
case 3:
|
|
this.enterOuterAlt(localContext, 3);
|
|
{
|
|
this.state = 144;
|
|
this.packageResourceDecl();
|
|
this.state = 145;
|
|
this.match(QuixosCapabilityParser.EOF);
|
|
}
|
|
break;
|
|
case 4:
|
|
this.enterOuterAlt(localContext, 4);
|
|
{
|
|
this.state = 147;
|
|
this.fragmentDecl();
|
|
this.state = 148;
|
|
this.match(QuixosCapabilityParser.EOF);
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
catch (re) {
|
|
if (re instanceof antlr.RecognitionException) {
|
|
this.errorHandler.reportError(this, re);
|
|
this.errorHandler.recover(this, re);
|
|
} else {
|
|
throw re;
|
|
}
|
|
}
|
|
finally {
|
|
this.exitRule();
|
|
}
|
|
return localContext;
|
|
}
|
|
public fragmentDecl(): FragmentDeclContext {
|
|
let localContext = new FragmentDeclContext(this.context, this.state);
|
|
this.enterRule(localContext, 2, QuixosCapabilityParser.RULE_fragmentDecl);
|
|
let _la: number;
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 152;
|
|
this.match(QuixosCapabilityParser.FRAGMENT);
|
|
this.state = 153;
|
|
this.match(QuixosCapabilityParser.LBRACE);
|
|
this.state = 157;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
while (((((_la - 13)) & ~0x1F) === 0 && ((1 << (_la - 13)) & 34144577) !== 0)) {
|
|
{
|
|
{
|
|
this.state = 154;
|
|
this.workspaceItem();
|
|
}
|
|
}
|
|
this.state = 159;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
}
|
|
this.state = 160;
|
|
this.match(QuixosCapabilityParser.RBRACE);
|
|
}
|
|
}
|
|
catch (re) {
|
|
if (re instanceof antlr.RecognitionException) {
|
|
this.errorHandler.reportError(this, re);
|
|
this.errorHandler.recover(this, re);
|
|
} else {
|
|
throw re;
|
|
}
|
|
}
|
|
finally {
|
|
this.exitRule();
|
|
}
|
|
return localContext;
|
|
}
|
|
public sourceImportDecl(): SourceImportDeclContext {
|
|
let localContext = new SourceImportDeclContext(this.context, this.state);
|
|
this.enterRule(localContext, 4, QuixosCapabilityParser.RULE_sourceImportDecl);
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 162;
|
|
this.match(QuixosCapabilityParser.IMPORT);
|
|
this.state = 163;
|
|
this.stringLiteral();
|
|
this.state = 164;
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
}
|
|
}
|
|
catch (re) {
|
|
if (re instanceof antlr.RecognitionException) {
|
|
this.errorHandler.reportError(this, re);
|
|
this.errorHandler.recover(this, re);
|
|
} else {
|
|
throw re;
|
|
}
|
|
}
|
|
finally {
|
|
this.exitRule();
|
|
}
|
|
return localContext;
|
|
}
|
|
public workspaceDecl(): WorkspaceDeclContext {
|
|
let localContext = new WorkspaceDeclContext(this.context, this.state);
|
|
this.enterRule(localContext, 6, QuixosCapabilityParser.RULE_workspaceDecl);
|
|
let _la: number;
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 166;
|
|
this.match(QuixosCapabilityParser.WORKSPACE);
|
|
this.state = 167;
|
|
this.identifier();
|
|
this.state = 168;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 169;
|
|
this.stringLiteral();
|
|
this.state = 170;
|
|
this.match(QuixosCapabilityParser.REVISION);
|
|
this.state = 171;
|
|
this.stringLiteral();
|
|
this.state = 172;
|
|
this.match(QuixosCapabilityParser.COMMIT);
|
|
this.state = 173;
|
|
this.stringLiteral();
|
|
this.state = 174;
|
|
this.match(QuixosCapabilityParser.LBRACE);
|
|
this.state = 178;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
while (((((_la - 13)) & ~0x1F) === 0 && ((1 << (_la - 13)) & 34144577) !== 0)) {
|
|
{
|
|
{
|
|
this.state = 175;
|
|
this.workspaceItem();
|
|
}
|
|
}
|
|
this.state = 180;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
}
|
|
this.state = 181;
|
|
this.match(QuixosCapabilityParser.RBRACE);
|
|
}
|
|
}
|
|
catch (re) {
|
|
if (re instanceof antlr.RecognitionException) {
|
|
this.errorHandler.reportError(this, re);
|
|
this.errorHandler.recover(this, re);
|
|
} else {
|
|
throw re;
|
|
}
|
|
}
|
|
finally {
|
|
this.exitRule();
|
|
}
|
|
return localContext;
|
|
}
|
|
public workspaceItem(): WorkspaceItemContext {
|
|
let localContext = new WorkspaceItemContext(this.context, this.state);
|
|
this.enterRule(localContext, 8, QuixosCapabilityParser.RULE_workspaceItem);
|
|
try {
|
|
this.state = 190;
|
|
this.errorHandler.sync(this);
|
|
switch (this.interpreter.adaptivePredict(this.tokenStream, 3, this.context) ) {
|
|
case 1:
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 183;
|
|
this.sourceImportDecl();
|
|
}
|
|
break;
|
|
case 2:
|
|
this.enterOuterAlt(localContext, 2);
|
|
{
|
|
this.state = 184;
|
|
this.atomDecl();
|
|
}
|
|
break;
|
|
case 3:
|
|
this.enterOuterAlt(localContext, 3);
|
|
{
|
|
this.state = 185;
|
|
this.resourceImportDecl();
|
|
}
|
|
break;
|
|
case 4:
|
|
this.enterOuterAlt(localContext, 4);
|
|
{
|
|
this.state = 186;
|
|
this.sharedAttachmentDecl();
|
|
}
|
|
break;
|
|
case 5:
|
|
this.enterOuterAlt(localContext, 5);
|
|
{
|
|
this.state = 187;
|
|
this.conformanceDecl();
|
|
}
|
|
break;
|
|
case 6:
|
|
this.enterOuterAlt(localContext, 6);
|
|
{
|
|
this.state = 188;
|
|
this.constructorBindingDecl();
|
|
}
|
|
break;
|
|
case 7:
|
|
this.enterOuterAlt(localContext, 7);
|
|
{
|
|
this.state = 189;
|
|
this.typeAliasDecl();
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
catch (re) {
|
|
if (re instanceof antlr.RecognitionException) {
|
|
this.errorHandler.reportError(this, re);
|
|
this.errorHandler.recover(this, re);
|
|
} else {
|
|
throw re;
|
|
}
|
|
}
|
|
finally {
|
|
this.exitRule();
|
|
}
|
|
return localContext;
|
|
}
|
|
public resourceImportDecl(): ResourceImportDeclContext {
|
|
let localContext = new ResourceImportDeclContext(this.context, this.state);
|
|
this.enterRule(localContext, 10, QuixosCapabilityParser.RULE_resourceImportDecl);
|
|
try {
|
|
this.state = 202;
|
|
this.errorHandler.sync(this);
|
|
switch (this.interpreter.adaptivePredict(this.tokenStream, 4, this.context) ) {
|
|
case 1:
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 192;
|
|
this.match(QuixosCapabilityParser.IMPORT);
|
|
this.state = 193;
|
|
this.match(QuixosCapabilityParser.INTERFACE);
|
|
this.state = 194;
|
|
this.identifier();
|
|
this.state = 195;
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
}
|
|
break;
|
|
case 2:
|
|
this.enterOuterAlt(localContext, 2);
|
|
{
|
|
this.state = 197;
|
|
this.match(QuixosCapabilityParser.IMPORT);
|
|
this.state = 198;
|
|
this.match(QuixosCapabilityParser.PACKAGE);
|
|
this.state = 199;
|
|
this.identifier();
|
|
this.state = 200;
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
catch (re) {
|
|
if (re instanceof antlr.RecognitionException) {
|
|
this.errorHandler.reportError(this, re);
|
|
this.errorHandler.recover(this, re);
|
|
} else {
|
|
throw re;
|
|
}
|
|
}
|
|
finally {
|
|
this.exitRule();
|
|
}
|
|
return localContext;
|
|
}
|
|
public externalAtomDecl(): ExternalAtomDeclContext {
|
|
let localContext = new ExternalAtomDeclContext(this.context, this.state);
|
|
this.enterRule(localContext, 12, QuixosCapabilityParser.RULE_externalAtomDecl);
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 204;
|
|
this.match(QuixosCapabilityParser.EXTERNAL);
|
|
this.state = 205;
|
|
this.match(QuixosCapabilityParser.ATOM);
|
|
this.state = 206;
|
|
this.identifier();
|
|
this.state = 207;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 208;
|
|
this.stringLiteral();
|
|
this.state = 209;
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
}
|
|
}
|
|
catch (re) {
|
|
if (re instanceof antlr.RecognitionException) {
|
|
this.errorHandler.reportError(this, re);
|
|
this.errorHandler.recover(this, re);
|
|
} else {
|
|
throw re;
|
|
}
|
|
}
|
|
finally {
|
|
this.exitRule();
|
|
}
|
|
return localContext;
|
|
}
|
|
public externalInterfaceDecl(): ExternalInterfaceDeclContext {
|
|
let localContext = new ExternalInterfaceDeclContext(this.context, this.state);
|
|
this.enterRule(localContext, 14, QuixosCapabilityParser.RULE_externalInterfaceDecl);
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 211;
|
|
this.match(QuixosCapabilityParser.EXTERNAL);
|
|
this.state = 212;
|
|
this.match(QuixosCapabilityParser.INTERFACE);
|
|
this.state = 213;
|
|
this.identifier();
|
|
this.state = 214;
|
|
this.match(QuixosCapabilityParser.REVISION);
|
|
this.state = 215;
|
|
this.stringLiteral();
|
|
this.state = 216;
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
}
|
|
}
|
|
catch (re) {
|
|
if (re instanceof antlr.RecognitionException) {
|
|
this.errorHandler.reportError(this, re);
|
|
this.errorHandler.recover(this, re);
|
|
} else {
|
|
throw re;
|
|
}
|
|
}
|
|
finally {
|
|
this.exitRule();
|
|
}
|
|
return localContext;
|
|
}
|
|
public resourcePreamble(): ResourcePreambleContext {
|
|
let localContext = new ResourcePreambleContext(this.context, this.state);
|
|
this.enterRule(localContext, 16, QuixosCapabilityParser.RULE_resourcePreamble);
|
|
try {
|
|
this.state = 222;
|
|
this.errorHandler.sync(this);
|
|
switch (this.interpreter.adaptivePredict(this.tokenStream, 5, this.context) ) {
|
|
case 1:
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 218;
|
|
this.resourceImportDecl();
|
|
}
|
|
break;
|
|
case 2:
|
|
this.enterOuterAlt(localContext, 2);
|
|
{
|
|
this.state = 219;
|
|
this.externalAtomDecl();
|
|
}
|
|
break;
|
|
case 3:
|
|
this.enterOuterAlt(localContext, 3);
|
|
{
|
|
this.state = 220;
|
|
this.externalInterfaceDecl();
|
|
}
|
|
break;
|
|
case 4:
|
|
this.enterOuterAlt(localContext, 4);
|
|
{
|
|
this.state = 221;
|
|
this.typeAliasDecl();
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
catch (re) {
|
|
if (re instanceof antlr.RecognitionException) {
|
|
this.errorHandler.reportError(this, re);
|
|
this.errorHandler.recover(this, re);
|
|
} else {
|
|
throw re;
|
|
}
|
|
}
|
|
finally {
|
|
this.exitRule();
|
|
}
|
|
return localContext;
|
|
}
|
|
public atomDecl(): AtomDeclContext {
|
|
let localContext = new AtomDeclContext(this.context, this.state);
|
|
this.enterRule(localContext, 18, QuixosCapabilityParser.RULE_atomDecl);
|
|
let _la: number;
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 224;
|
|
this.match(QuixosCapabilityParser.ATOM);
|
|
this.state = 225;
|
|
this.identifier();
|
|
this.state = 226;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 227;
|
|
this.stringLiteral();
|
|
this.state = 230;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 61) {
|
|
{
|
|
this.state = 228;
|
|
this.match(QuixosCapabilityParser.DOC);
|
|
this.state = 229;
|
|
this.stringLiteral();
|
|
}
|
|
}
|
|
|
|
this.state = 232;
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
}
|
|
}
|
|
catch (re) {
|
|
if (re instanceof antlr.RecognitionException) {
|
|
this.errorHandler.reportError(this, re);
|
|
this.errorHandler.recover(this, re);
|
|
} else {
|
|
throw re;
|
|
}
|
|
}
|
|
finally {
|
|
this.exitRule();
|
|
}
|
|
return localContext;
|
|
}
|
|
public interfaceResourceDecl(): InterfaceResourceDeclContext {
|
|
let localContext = new InterfaceResourceDeclContext(this.context, this.state);
|
|
this.enterRule(localContext, 20, QuixosCapabilityParser.RULE_interfaceResourceDecl);
|
|
let _la: number;
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 237;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 1581056) !== 0)) {
|
|
{
|
|
{
|
|
this.state = 234;
|
|
this.resourcePreamble();
|
|
}
|
|
}
|
|
this.state = 239;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
}
|
|
this.state = 240;
|
|
this.match(QuixosCapabilityParser.INTERFACE);
|
|
this.state = 241;
|
|
this.identifier();
|
|
this.state = 243;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 119) {
|
|
{
|
|
this.state = 242;
|
|
this.typeParameters();
|
|
}
|
|
}
|
|
|
|
this.state = 245;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 246;
|
|
this.stringLiteral();
|
|
this.state = 247;
|
|
this.match(QuixosCapabilityParser.REVISION);
|
|
this.state = 248;
|
|
this.stringLiteral();
|
|
this.state = 258;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 65) {
|
|
{
|
|
this.state = 249;
|
|
this.match(QuixosCapabilityParser.REQUIRES);
|
|
this.state = 250;
|
|
this.interfaceType();
|
|
this.state = 255;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
while (_la === 111) {
|
|
{
|
|
{
|
|
this.state = 251;
|
|
this.match(QuixosCapabilityParser.COMMA);
|
|
this.state = 252;
|
|
this.interfaceType();
|
|
}
|
|
}
|
|
this.state = 257;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
}
|
|
}
|
|
}
|
|
|
|
this.state = 260;
|
|
this.match(QuixosCapabilityParser.LBRACE);
|
|
this.state = 264;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
while (((((_la - 10)) & ~0x1F) === 0 && ((1 << (_la - 10)) & 33783809) !== 0)) {
|
|
{
|
|
{
|
|
this.state = 261;
|
|
this.interfaceMember();
|
|
}
|
|
}
|
|
this.state = 266;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
}
|
|
this.state = 267;
|
|
this.match(QuixosCapabilityParser.RBRACE);
|
|
}
|
|
}
|
|
catch (re) {
|
|
if (re instanceof antlr.RecognitionException) {
|
|
this.errorHandler.reportError(this, re);
|
|
this.errorHandler.recover(this, re);
|
|
} else {
|
|
throw re;
|
|
}
|
|
}
|
|
finally {
|
|
this.exitRule();
|
|
}
|
|
return localContext;
|
|
}
|
|
public typeParameters(): TypeParametersContext {
|
|
let localContext = new TypeParametersContext(this.context, this.state);
|
|
this.enterRule(localContext, 22, QuixosCapabilityParser.RULE_typeParameters);
|
|
let _la: number;
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 269;
|
|
this.match(QuixosCapabilityParser.LT);
|
|
this.state = 270;
|
|
this.typeParameter();
|
|
this.state = 275;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
while (_la === 111) {
|
|
{
|
|
{
|
|
this.state = 271;
|
|
this.match(QuixosCapabilityParser.COMMA);
|
|
this.state = 272;
|
|
this.typeParameter();
|
|
}
|
|
}
|
|
this.state = 277;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
}
|
|
this.state = 278;
|
|
this.match(QuixosCapabilityParser.GT);
|
|
}
|
|
}
|
|
catch (re) {
|
|
if (re instanceof antlr.RecognitionException) {
|
|
this.errorHandler.reportError(this, re);
|
|
this.errorHandler.recover(this, re);
|
|
} else {
|
|
throw re;
|
|
}
|
|
}
|
|
finally {
|
|
this.exitRule();
|
|
}
|
|
return localContext;
|
|
}
|
|
public typeParameter(): TypeParameterContext {
|
|
let localContext = new TypeParameterContext(this.context, this.state);
|
|
this.enterRule(localContext, 24, QuixosCapabilityParser.RULE_typeParameter);
|
|
let _la: number;
|
|
try {
|
|
this.state = 299;
|
|
this.errorHandler.sync(this);
|
|
switch (this.tokenStream.LA(1)) {
|
|
case QuixosCapabilityParser.VALUE:
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 280;
|
|
this.match(QuixosCapabilityParser.VALUE);
|
|
this.state = 281;
|
|
this.identifier();
|
|
this.state = 284;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 109) {
|
|
{
|
|
this.state = 282;
|
|
this.match(QuixosCapabilityParser.COLON);
|
|
this.state = 283;
|
|
this.match(QuixosCapabilityParser.STORABLE);
|
|
}
|
|
}
|
|
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.OBJECT:
|
|
this.enterOuterAlt(localContext, 2);
|
|
{
|
|
this.state = 286;
|
|
this.match(QuixosCapabilityParser.OBJECT);
|
|
this.state = 287;
|
|
this.identifier();
|
|
this.state = 297;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 16) {
|
|
{
|
|
this.state = 288;
|
|
this.match(QuixosCapabilityParser.IMPLEMENTS);
|
|
this.state = 289;
|
|
this.interfaceType();
|
|
this.state = 294;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
while (_la === 121) {
|
|
{
|
|
{
|
|
this.state = 290;
|
|
this.match(QuixosCapabilityParser.AMP);
|
|
this.state = 291;
|
|
this.interfaceType();
|
|
}
|
|
}
|
|
this.state = 296;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
break;
|
|
default:
|
|
throw new antlr.NoViableAltException(this);
|
|
}
|
|
}
|
|
catch (re) {
|
|
if (re instanceof antlr.RecognitionException) {
|
|
this.errorHandler.reportError(this, re);
|
|
this.errorHandler.recover(this, re);
|
|
} else {
|
|
throw re;
|
|
}
|
|
}
|
|
finally {
|
|
this.exitRule();
|
|
}
|
|
return localContext;
|
|
}
|
|
public interfaceType(): InterfaceTypeContext {
|
|
let localContext = new InterfaceTypeContext(this.context, this.state);
|
|
this.enterRule(localContext, 26, QuixosCapabilityParser.RULE_interfaceType);
|
|
let _la: number;
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 301;
|
|
this.identifier();
|
|
this.state = 303;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 119) {
|
|
{
|
|
this.state = 302;
|
|
this.typeArguments();
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|
|
catch (re) {
|
|
if (re instanceof antlr.RecognitionException) {
|
|
this.errorHandler.reportError(this, re);
|
|
this.errorHandler.recover(this, re);
|
|
} else {
|
|
throw re;
|
|
}
|
|
}
|
|
finally {
|
|
this.exitRule();
|
|
}
|
|
return localContext;
|
|
}
|
|
public typeArguments(): TypeArgumentsContext {
|
|
let localContext = new TypeArgumentsContext(this.context, this.state);
|
|
this.enterRule(localContext, 28, QuixosCapabilityParser.RULE_typeArguments);
|
|
let _la: number;
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 305;
|
|
this.match(QuixosCapabilityParser.LT);
|
|
this.state = 306;
|
|
this.typeArgument();
|
|
this.state = 311;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
while (_la === 111) {
|
|
{
|
|
{
|
|
this.state = 307;
|
|
this.match(QuixosCapabilityParser.COMMA);
|
|
this.state = 308;
|
|
this.typeArgument();
|
|
}
|
|
}
|
|
this.state = 313;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
}
|
|
this.state = 314;
|
|
this.match(QuixosCapabilityParser.GT);
|
|
}
|
|
}
|
|
catch (re) {
|
|
if (re instanceof antlr.RecognitionException) {
|
|
this.errorHandler.reportError(this, re);
|
|
this.errorHandler.recover(this, re);
|
|
} else {
|
|
throw re;
|
|
}
|
|
}
|
|
finally {
|
|
this.exitRule();
|
|
}
|
|
return localContext;
|
|
}
|
|
public typeArgument(): TypeArgumentContext {
|
|
let localContext = new TypeArgumentContext(this.context, this.state);
|
|
this.enterRule(localContext, 30, QuixosCapabilityParser.RULE_typeArgument);
|
|
try {
|
|
this.state = 323;
|
|
this.errorHandler.sync(this);
|
|
switch (this.tokenStream.LA(1)) {
|
|
case QuixosCapabilityParser.ATOM:
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 316;
|
|
this.match(QuixosCapabilityParser.ATOM);
|
|
this.state = 317;
|
|
this.identifier();
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.INTERFACE:
|
|
this.enterOuterAlt(localContext, 2);
|
|
{
|
|
this.state = 318;
|
|
this.match(QuixosCapabilityParser.INTERFACE);
|
|
this.state = 319;
|
|
this.interfaceType();
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.OBJECT:
|
|
this.enterOuterAlt(localContext, 3);
|
|
{
|
|
this.state = 320;
|
|
this.match(QuixosCapabilityParser.OBJECT);
|
|
this.state = 321;
|
|
this.identifier();
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.QUERY:
|
|
case QuixosCapabilityParser.ROOT:
|
|
case QuixosCapabilityParser.DOCUMENT:
|
|
case QuixosCapabilityParser.FRAGMENTS:
|
|
case QuixosCapabilityParser.VIEW:
|
|
case QuixosCapabilityParser.MAX:
|
|
case QuixosCapabilityParser.ALLOW:
|
|
case QuixosCapabilityParser.POLL:
|
|
case QuixosCapabilityParser.QUERYABLE:
|
|
case QuixosCapabilityParser.RPC:
|
|
case QuixosCapabilityParser.REF:
|
|
case QuixosCapabilityParser.SOURCE:
|
|
case QuixosCapabilityParser.UNIT:
|
|
case QuixosCapabilityParser.WATCH_HANDLE:
|
|
case QuixosCapabilityParser.MESSAGE:
|
|
case QuixosCapabilityParser.ATOM_REF:
|
|
case QuixosCapabilityParser.INTERFACE_REF:
|
|
case QuixosCapabilityParser.OPTIONAL:
|
|
case QuixosCapabilityParser.LIST:
|
|
case QuixosCapabilityParser.RECORD:
|
|
case QuixosCapabilityParser.BOOL:
|
|
case QuixosCapabilityParser.BYTES:
|
|
case QuixosCapabilityParser.DOUBLE:
|
|
case QuixosCapabilityParser.INT32:
|
|
case QuixosCapabilityParser.INT64:
|
|
case QuixosCapabilityParser.STRING:
|
|
case QuixosCapabilityParser.UINT32:
|
|
case QuixosCapabilityParser.UINT64:
|
|
case QuixosCapabilityParser.IDENTIFIER:
|
|
this.enterOuterAlt(localContext, 4);
|
|
{
|
|
this.state = 322;
|
|
this.valueType();
|
|
}
|
|
break;
|
|
default:
|
|
throw new antlr.NoViableAltException(this);
|
|
}
|
|
}
|
|
catch (re) {
|
|
if (re instanceof antlr.RecognitionException) {
|
|
this.errorHandler.reportError(this, re);
|
|
this.errorHandler.recover(this, re);
|
|
} else {
|
|
throw re;
|
|
}
|
|
}
|
|
finally {
|
|
this.exitRule();
|
|
}
|
|
return localContext;
|
|
}
|
|
public typeAliasDecl(): TypeAliasDeclContext {
|
|
let localContext = new TypeAliasDeclContext(this.context, this.state);
|
|
this.enterRule(localContext, 32, QuixosCapabilityParser.RULE_typeAliasDecl);
|
|
let _la: number;
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 325;
|
|
this.match(QuixosCapabilityParser.TYPE);
|
|
this.state = 326;
|
|
this.identifier();
|
|
this.state = 328;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 119) {
|
|
{
|
|
this.state = 327;
|
|
this.typeParameters();
|
|
}
|
|
}
|
|
|
|
this.state = 330;
|
|
this.match(QuixosCapabilityParser.EQUAL);
|
|
this.state = 331;
|
|
this.valueType();
|
|
this.state = 332;
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
}
|
|
}
|
|
catch (re) {
|
|
if (re instanceof antlr.RecognitionException) {
|
|
this.errorHandler.reportError(this, re);
|
|
this.errorHandler.recover(this, re);
|
|
} else {
|
|
throw re;
|
|
}
|
|
}
|
|
finally {
|
|
this.exitRule();
|
|
}
|
|
return localContext;
|
|
}
|
|
public interfaceMember(): InterfaceMemberContext {
|
|
let localContext = new InterfaceMemberContext(this.context, this.state);
|
|
this.enterRule(localContext, 34, QuixosCapabilityParser.RULE_interfaceMember);
|
|
try {
|
|
this.state = 337;
|
|
this.errorHandler.sync(this);
|
|
switch (this.interpreter.adaptivePredict(this.tokenStream, 21, this.context) ) {
|
|
case 1:
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 334;
|
|
this.valueMember();
|
|
}
|
|
break;
|
|
case 2:
|
|
this.enterOuterAlt(localContext, 2);
|
|
{
|
|
this.state = 335;
|
|
this.relationshipMember();
|
|
}
|
|
break;
|
|
case 3:
|
|
this.enterOuterAlt(localContext, 3);
|
|
{
|
|
this.state = 336;
|
|
this.operationMember();
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
catch (re) {
|
|
if (re instanceof antlr.RecognitionException) {
|
|
this.errorHandler.reportError(this, re);
|
|
this.errorHandler.recover(this, re);
|
|
} else {
|
|
throw re;
|
|
}
|
|
}
|
|
finally {
|
|
this.exitRule();
|
|
}
|
|
return localContext;
|
|
}
|
|
public operationMember(): OperationMemberContext {
|
|
let localContext = new OperationMemberContext(this.context, this.state);
|
|
this.enterRule(localContext, 36, QuixosCapabilityParser.RULE_operationMember);
|
|
let _la: number;
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 340;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 35) {
|
|
{
|
|
this.state = 339;
|
|
this.match(QuixosCapabilityParser.STATIC);
|
|
}
|
|
}
|
|
|
|
this.state = 342;
|
|
this.match(QuixosCapabilityParser.OPERATION);
|
|
this.state = 343;
|
|
this.identifier();
|
|
this.state = 344;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 345;
|
|
this.stringLiteral();
|
|
this.state = 346;
|
|
this.match(QuixosCapabilityParser.COLON);
|
|
this.state = 347;
|
|
this.valueType();
|
|
this.state = 348;
|
|
this.match(QuixosCapabilityParser.ARROW);
|
|
this.state = 349;
|
|
this.valueType();
|
|
this.state = 350;
|
|
this.match(QuixosCapabilityParser.LBRACE);
|
|
this.state = 351;
|
|
this.match(QuixosCapabilityParser.CALL);
|
|
this.state = 352;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 353;
|
|
this.stringLiteral();
|
|
this.state = 354;
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
this.state = 355;
|
|
this.match(QuixosCapabilityParser.RBRACE);
|
|
}
|
|
}
|
|
catch (re) {
|
|
if (re instanceof antlr.RecognitionException) {
|
|
this.errorHandler.reportError(this, re);
|
|
this.errorHandler.recover(this, re);
|
|
} else {
|
|
throw re;
|
|
}
|
|
}
|
|
finally {
|
|
this.exitRule();
|
|
}
|
|
return localContext;
|
|
}
|
|
public valueMember(): ValueMemberContext {
|
|
let localContext = new ValueMemberContext(this.context, this.state);
|
|
this.enterRule(localContext, 38, QuixosCapabilityParser.RULE_valueMember);
|
|
let _la: number;
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 358;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 10) {
|
|
{
|
|
this.state = 357;
|
|
this.queryReadContract();
|
|
}
|
|
}
|
|
|
|
this.state = 360;
|
|
this.match(QuixosCapabilityParser.VALUE);
|
|
this.state = 361;
|
|
this.identifier();
|
|
this.state = 362;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 363;
|
|
this.stringLiteral();
|
|
this.state = 364;
|
|
this.match(QuixosCapabilityParser.COLON);
|
|
this.state = 365;
|
|
this.valueType();
|
|
this.state = 366;
|
|
this.match(QuixosCapabilityParser.LBRACE);
|
|
this.state = 370;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
while (((((_la - 67)) & ~0x1F) === 0 && ((1 << (_la - 67)) & 7) !== 0)) {
|
|
{
|
|
{
|
|
this.state = 367;
|
|
this.valueMemberOperation();
|
|
}
|
|
}
|
|
this.state = 372;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
}
|
|
this.state = 373;
|
|
this.match(QuixosCapabilityParser.RBRACE);
|
|
}
|
|
}
|
|
catch (re) {
|
|
if (re instanceof antlr.RecognitionException) {
|
|
this.errorHandler.reportError(this, re);
|
|
this.errorHandler.recover(this, re);
|
|
} else {
|
|
throw re;
|
|
}
|
|
}
|
|
finally {
|
|
this.exitRule();
|
|
}
|
|
return localContext;
|
|
}
|
|
public valueMemberOperation(): ValueMemberOperationContext {
|
|
let localContext = new ValueMemberOperationContext(this.context, this.state);
|
|
this.enterRule(localContext, 40, QuixosCapabilityParser.RULE_valueMemberOperation);
|
|
try {
|
|
this.state = 394;
|
|
this.errorHandler.sync(this);
|
|
switch (this.tokenStream.LA(1)) {
|
|
case QuixosCapabilityParser.GET:
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 375;
|
|
this.match(QuixosCapabilityParser.GET);
|
|
this.state = 376;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 377;
|
|
this.stringLiteral();
|
|
this.state = 378;
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.SET:
|
|
this.enterOuterAlt(localContext, 2);
|
|
{
|
|
this.state = 380;
|
|
this.match(QuixosCapabilityParser.SET);
|
|
this.state = 381;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 382;
|
|
this.stringLiteral();
|
|
this.state = 383;
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.WATCH:
|
|
this.enterOuterAlt(localContext, 3);
|
|
{
|
|
this.state = 385;
|
|
this.match(QuixosCapabilityParser.WATCH);
|
|
this.state = 386;
|
|
this.match(QuixosCapabilityParser.START);
|
|
this.state = 387;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 388;
|
|
this.stringLiteral();
|
|
this.state = 389;
|
|
this.match(QuixosCapabilityParser.STOP);
|
|
this.state = 390;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 391;
|
|
this.stringLiteral();
|
|
this.state = 392;
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
}
|
|
break;
|
|
default:
|
|
throw new antlr.NoViableAltException(this);
|
|
}
|
|
}
|
|
catch (re) {
|
|
if (re instanceof antlr.RecognitionException) {
|
|
this.errorHandler.reportError(this, re);
|
|
this.errorHandler.recover(this, re);
|
|
} else {
|
|
throw re;
|
|
}
|
|
}
|
|
finally {
|
|
this.exitRule();
|
|
}
|
|
return localContext;
|
|
}
|
|
public relationshipMember(): RelationshipMemberContext {
|
|
let localContext = new RelationshipMemberContext(this.context, this.state);
|
|
this.enterRule(localContext, 42, QuixosCapabilityParser.RULE_relationshipMember);
|
|
let _la: number;
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 397;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 10) {
|
|
{
|
|
this.state = 396;
|
|
this.queryReadContract();
|
|
}
|
|
}
|
|
|
|
this.state = 399;
|
|
this.match(QuixosCapabilityParser.RELATION);
|
|
this.state = 400;
|
|
this.identifier();
|
|
this.state = 401;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 402;
|
|
this.stringLiteral();
|
|
this.state = 403;
|
|
this.match(QuixosCapabilityParser.COLON);
|
|
this.state = 404;
|
|
this.cardinality();
|
|
this.state = 405;
|
|
this.targetConstraint();
|
|
this.state = 407;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 88) {
|
|
{
|
|
this.state = 406;
|
|
this.match(QuixosCapabilityParser.ORDERED);
|
|
}
|
|
}
|
|
|
|
this.state = 409;
|
|
this.match(QuixosCapabilityParser.LBRACE);
|
|
this.state = 413;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
while (((((_la - 69)) & ~0x1F) === 0 && ((1 << (_la - 69)) & 225) !== 0)) {
|
|
{
|
|
{
|
|
this.state = 410;
|
|
this.relationshipOperation();
|
|
}
|
|
}
|
|
this.state = 415;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
}
|
|
this.state = 416;
|
|
this.match(QuixosCapabilityParser.RBRACE);
|
|
}
|
|
}
|
|
catch (re) {
|
|
if (re instanceof antlr.RecognitionException) {
|
|
this.errorHandler.reportError(this, re);
|
|
this.errorHandler.recover(this, re);
|
|
} else {
|
|
throw re;
|
|
}
|
|
}
|
|
finally {
|
|
this.exitRule();
|
|
}
|
|
return localContext;
|
|
}
|
|
public queryReadContract(): QueryReadContractContext {
|
|
let localContext = new QueryReadContractContext(this.context, this.state);
|
|
this.enterRule(localContext, 44, QuixosCapabilityParser.RULE_queryReadContract);
|
|
let _la: number;
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 418;
|
|
this.match(QuixosCapabilityParser.QUERYABLE);
|
|
this.state = 420;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 11) {
|
|
{
|
|
this.state = 419;
|
|
this.match(QuixosCapabilityParser.RPC);
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|
|
catch (re) {
|
|
if (re instanceof antlr.RecognitionException) {
|
|
this.errorHandler.reportError(this, re);
|
|
this.errorHandler.recover(this, re);
|
|
} else {
|
|
throw re;
|
|
}
|
|
}
|
|
finally {
|
|
this.exitRule();
|
|
}
|
|
return localContext;
|
|
}
|
|
public relationshipOperation(): RelationshipOperationContext {
|
|
let localContext = new RelationshipOperationContext(this.context, this.state);
|
|
this.enterRule(localContext, 46, QuixosCapabilityParser.RULE_relationshipOperation);
|
|
try {
|
|
this.state = 446;
|
|
this.errorHandler.sync(this);
|
|
switch (this.tokenStream.LA(1)) {
|
|
case QuixosCapabilityParser.RESOLVE:
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 422;
|
|
this.match(QuixosCapabilityParser.RESOLVE);
|
|
this.state = 423;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 424;
|
|
this.stringLiteral();
|
|
this.state = 425;
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.CONNECT:
|
|
this.enterOuterAlt(localContext, 2);
|
|
{
|
|
this.state = 427;
|
|
this.match(QuixosCapabilityParser.CONNECT);
|
|
this.state = 428;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 429;
|
|
this.stringLiteral();
|
|
this.state = 430;
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.DISCONNECT:
|
|
this.enterOuterAlt(localContext, 3);
|
|
{
|
|
this.state = 432;
|
|
this.match(QuixosCapabilityParser.DISCONNECT);
|
|
this.state = 433;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 434;
|
|
this.stringLiteral();
|
|
this.state = 435;
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.WATCH:
|
|
this.enterOuterAlt(localContext, 4);
|
|
{
|
|
this.state = 437;
|
|
this.match(QuixosCapabilityParser.WATCH);
|
|
this.state = 438;
|
|
this.match(QuixosCapabilityParser.START);
|
|
this.state = 439;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 440;
|
|
this.stringLiteral();
|
|
this.state = 441;
|
|
this.match(QuixosCapabilityParser.STOP);
|
|
this.state = 442;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 443;
|
|
this.stringLiteral();
|
|
this.state = 444;
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
}
|
|
break;
|
|
default:
|
|
throw new antlr.NoViableAltException(this);
|
|
}
|
|
}
|
|
catch (re) {
|
|
if (re instanceof antlr.RecognitionException) {
|
|
this.errorHandler.reportError(this, re);
|
|
this.errorHandler.recover(this, re);
|
|
} else {
|
|
throw re;
|
|
}
|
|
}
|
|
finally {
|
|
this.exitRule();
|
|
}
|
|
return localContext;
|
|
}
|
|
public targetConstraint(): TargetConstraintContext {
|
|
let localContext = new TargetConstraintContext(this.context, this.state);
|
|
this.enterRule(localContext, 48, QuixosCapabilityParser.RULE_targetConstraint);
|
|
let _la: number;
|
|
try {
|
|
this.state = 457;
|
|
this.errorHandler.sync(this);
|
|
switch (this.tokenStream.LA(1)) {
|
|
case QuixosCapabilityParser.ATOM:
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 448;
|
|
this.match(QuixosCapabilityParser.ATOM);
|
|
this.state = 449;
|
|
this.identifier();
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.INTERFACE:
|
|
this.enterOuterAlt(localContext, 2);
|
|
{
|
|
this.state = 450;
|
|
this.match(QuixosCapabilityParser.INTERFACE);
|
|
this.state = 451;
|
|
this.identifier();
|
|
this.state = 453;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 119) {
|
|
{
|
|
this.state = 452;
|
|
this.typeArguments();
|
|
}
|
|
}
|
|
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.OBJECT:
|
|
this.enterOuterAlt(localContext, 3);
|
|
{
|
|
this.state = 455;
|
|
this.match(QuixosCapabilityParser.OBJECT);
|
|
this.state = 456;
|
|
this.identifier();
|
|
}
|
|
break;
|
|
default:
|
|
throw new antlr.NoViableAltException(this);
|
|
}
|
|
}
|
|
catch (re) {
|
|
if (re instanceof antlr.RecognitionException) {
|
|
this.errorHandler.reportError(this, re);
|
|
this.errorHandler.recover(this, re);
|
|
} else {
|
|
throw re;
|
|
}
|
|
}
|
|
finally {
|
|
this.exitRule();
|
|
}
|
|
return localContext;
|
|
}
|
|
public packageResourceDecl(): PackageResourceDeclContext {
|
|
let localContext = new PackageResourceDeclContext(this.context, this.state);
|
|
this.enterRule(localContext, 50, QuixosCapabilityParser.RULE_packageResourceDecl);
|
|
let _la: number;
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 462;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 1581056) !== 0)) {
|
|
{
|
|
{
|
|
this.state = 459;
|
|
this.resourcePreamble();
|
|
}
|
|
}
|
|
this.state = 464;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
}
|
|
this.state = 465;
|
|
this.match(QuixosCapabilityParser.PACKAGE);
|
|
this.state = 466;
|
|
this.identifier();
|
|
this.state = 467;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 468;
|
|
this.stringLiteral();
|
|
this.state = 469;
|
|
this.match(QuixosCapabilityParser.REVISION);
|
|
this.state = 470;
|
|
this.stringLiteral();
|
|
this.state = 473;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 55) {
|
|
{
|
|
this.state = 471;
|
|
this.match(QuixosCapabilityParser.SEMANTIC_MAJOR);
|
|
this.state = 472;
|
|
this.match(QuixosCapabilityParser.INTEGER);
|
|
}
|
|
}
|
|
|
|
this.state = 475;
|
|
this.match(QuixosCapabilityParser.LBRACE);
|
|
this.state = 479;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 939524100) !== 0)) {
|
|
{
|
|
{
|
|
this.state = 476;
|
|
this.packageExport();
|
|
}
|
|
}
|
|
this.state = 481;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
}
|
|
this.state = 482;
|
|
this.match(QuixosCapabilityParser.RBRACE);
|
|
}
|
|
}
|
|
catch (re) {
|
|
if (re instanceof antlr.RecognitionException) {
|
|
this.errorHandler.reportError(this, re);
|
|
this.errorHandler.recover(this, re);
|
|
} else {
|
|
throw re;
|
|
}
|
|
}
|
|
finally {
|
|
this.exitRule();
|
|
}
|
|
return localContext;
|
|
}
|
|
public packageExport(): PackageExportContext {
|
|
let localContext = new PackageExportContext(this.context, this.state);
|
|
this.enterRule(localContext, 52, QuixosCapabilityParser.RULE_packageExport);
|
|
try {
|
|
this.state = 488;
|
|
this.errorHandler.sync(this);
|
|
switch (this.tokenStream.LA(1)) {
|
|
case QuixosCapabilityParser.OPERATION:
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 484;
|
|
this.packageOperationExport();
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.FUNCTION:
|
|
this.enterOuterAlt(localContext, 2);
|
|
{
|
|
this.state = 485;
|
|
this.packageFunctionExport();
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.CONSTRUCTOR:
|
|
this.enterOuterAlt(localContext, 3);
|
|
{
|
|
this.state = 486;
|
|
this.packageConstructorExport();
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.QUERY:
|
|
this.enterOuterAlt(localContext, 4);
|
|
{
|
|
this.state = 487;
|
|
this.packageQuery();
|
|
}
|
|
break;
|
|
default:
|
|
throw new antlr.NoViableAltException(this);
|
|
}
|
|
}
|
|
catch (re) {
|
|
if (re instanceof antlr.RecognitionException) {
|
|
this.errorHandler.reportError(this, re);
|
|
this.errorHandler.recover(this, re);
|
|
} else {
|
|
throw re;
|
|
}
|
|
}
|
|
finally {
|
|
this.exitRule();
|
|
}
|
|
return localContext;
|
|
}
|
|
public packageQuery(): PackageQueryContext {
|
|
let localContext = new PackageQueryContext(this.context, this.state);
|
|
this.enterRule(localContext, 54, QuixosCapabilityParser.RULE_packageQuery);
|
|
let _la: number;
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 490;
|
|
this.match(QuixosCapabilityParser.QUERY);
|
|
this.state = 491;
|
|
this.identifier();
|
|
this.state = 492;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 493;
|
|
this.stringLiteral();
|
|
this.state = 494;
|
|
this.match(QuixosCapabilityParser.ROOT);
|
|
this.state = 495;
|
|
this.interfaceType();
|
|
this.state = 496;
|
|
this.match(QuixosCapabilityParser.DOCUMENT);
|
|
this.state = 497;
|
|
this.stringLiteral();
|
|
this.state = 498;
|
|
this.match(QuixosCapabilityParser.OPERATION);
|
|
this.state = 499;
|
|
this.stringLiteral();
|
|
this.state = 500;
|
|
this.match(QuixosCapabilityParser.LBRACE);
|
|
this.state = 504;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 992) !== 0) || _la === 69) {
|
|
{
|
|
{
|
|
this.state = 501;
|
|
this.queryClause();
|
|
}
|
|
}
|
|
this.state = 506;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
}
|
|
this.state = 507;
|
|
this.match(QuixosCapabilityParser.RBRACE);
|
|
}
|
|
}
|
|
catch (re) {
|
|
if (re instanceof antlr.RecognitionException) {
|
|
this.errorHandler.reportError(this, re);
|
|
this.errorHandler.recover(this, re);
|
|
} else {
|
|
throw re;
|
|
}
|
|
}
|
|
finally {
|
|
this.exitRule();
|
|
}
|
|
return localContext;
|
|
}
|
|
public queryClause(): QueryClauseContext {
|
|
let localContext = new QueryClauseContext(this.context, this.state);
|
|
this.enterRule(localContext, 56, QuixosCapabilityParser.RULE_queryClause);
|
|
try {
|
|
this.state = 539;
|
|
this.errorHandler.sync(this);
|
|
switch (this.tokenStream.LA(1)) {
|
|
case QuixosCapabilityParser.FRAGMENTS:
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 509;
|
|
this.match(QuixosCapabilityParser.FRAGMENTS);
|
|
this.state = 510;
|
|
this.stringLiteral();
|
|
this.state = 511;
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.VIEW:
|
|
this.enterOuterAlt(localContext, 2);
|
|
{
|
|
this.state = 513;
|
|
this.match(QuixosCapabilityParser.VIEW);
|
|
this.state = 514;
|
|
this.identifier();
|
|
this.state = 515;
|
|
this.match(QuixosCapabilityParser.AS);
|
|
this.state = 516;
|
|
this.interfaceType();
|
|
this.state = 517;
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.MAX:
|
|
this.enterOuterAlt(localContext, 3);
|
|
{
|
|
this.state = 519;
|
|
this.match(QuixosCapabilityParser.MAX);
|
|
this.state = 520;
|
|
this.identifier();
|
|
this.state = 521;
|
|
this.match(QuixosCapabilityParser.INTEGER);
|
|
this.state = 522;
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.ALLOW:
|
|
this.enterOuterAlt(localContext, 4);
|
|
{
|
|
this.state = 524;
|
|
this.match(QuixosCapabilityParser.ALLOW);
|
|
this.state = 525;
|
|
this.interfaceType();
|
|
this.state = 526;
|
|
this.match(QuixosCapabilityParser.DOT);
|
|
this.state = 527;
|
|
this.identifier();
|
|
this.state = 528;
|
|
this.identifier();
|
|
this.state = 529;
|
|
this.stringLiteral();
|
|
this.state = 530;
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.WATCH:
|
|
this.enterOuterAlt(localContext, 5);
|
|
{
|
|
this.state = 532;
|
|
this.match(QuixosCapabilityParser.WATCH);
|
|
this.state = 533;
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.POLL:
|
|
this.enterOuterAlt(localContext, 6);
|
|
{
|
|
this.state = 534;
|
|
this.match(QuixosCapabilityParser.POLL);
|
|
this.state = 535;
|
|
this.match(QuixosCapabilityParser.INTEGER);
|
|
this.state = 536;
|
|
this.stringLiteral();
|
|
this.state = 537;
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
}
|
|
break;
|
|
default:
|
|
throw new antlr.NoViableAltException(this);
|
|
}
|
|
}
|
|
catch (re) {
|
|
if (re instanceof antlr.RecognitionException) {
|
|
this.errorHandler.reportError(this, re);
|
|
this.errorHandler.recover(this, re);
|
|
} else {
|
|
throw re;
|
|
}
|
|
}
|
|
finally {
|
|
this.exitRule();
|
|
}
|
|
return localContext;
|
|
}
|
|
public packageOperationExport(): PackageOperationExportContext {
|
|
let localContext = new PackageOperationExportContext(this.context, this.state);
|
|
this.enterRule(localContext, 58, QuixosCapabilityParser.RULE_packageOperationExport);
|
|
let _la: number;
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 541;
|
|
this.match(QuixosCapabilityParser.OPERATION);
|
|
this.state = 542;
|
|
this.identifier();
|
|
this.state = 544;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 119) {
|
|
{
|
|
this.state = 543;
|
|
this.typeParameters();
|
|
}
|
|
}
|
|
|
|
this.state = 546;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 547;
|
|
this.stringLiteral();
|
|
this.state = 548;
|
|
this.match(QuixosCapabilityParser.COLON);
|
|
this.state = 549;
|
|
this.valueType();
|
|
this.state = 550;
|
|
this.match(QuixosCapabilityParser.ARROW);
|
|
this.state = 551;
|
|
this.valueType();
|
|
this.state = 552;
|
|
this.match(QuixosCapabilityParser.MODE);
|
|
this.state = 553;
|
|
this.operationMode();
|
|
this.state = 555;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 63) {
|
|
{
|
|
this.state = 554;
|
|
this.eventClause();
|
|
}
|
|
}
|
|
|
|
this.state = 557;
|
|
this.match(QuixosCapabilityParser.RECEIVER);
|
|
this.state = 558;
|
|
this.receiverRequirement();
|
|
this.state = 560;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 65) {
|
|
{
|
|
this.state = 559;
|
|
this.dependencyBlock();
|
|
}
|
|
}
|
|
|
|
this.state = 562;
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
}
|
|
}
|
|
catch (re) {
|
|
if (re instanceof antlr.RecognitionException) {
|
|
this.errorHandler.reportError(this, re);
|
|
this.errorHandler.recover(this, re);
|
|
} else {
|
|
throw re;
|
|
}
|
|
}
|
|
finally {
|
|
this.exitRule();
|
|
}
|
|
return localContext;
|
|
}
|
|
public packageFunctionExport(): PackageFunctionExportContext {
|
|
let localContext = new PackageFunctionExportContext(this.context, this.state);
|
|
this.enterRule(localContext, 60, QuixosCapabilityParser.RULE_packageFunctionExport);
|
|
let _la: number;
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 564;
|
|
this.match(QuixosCapabilityParser.FUNCTION);
|
|
this.state = 565;
|
|
this.identifier();
|
|
this.state = 567;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 119) {
|
|
{
|
|
this.state = 566;
|
|
this.typeParameters();
|
|
}
|
|
}
|
|
|
|
this.state = 569;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 570;
|
|
this.stringLiteral();
|
|
this.state = 571;
|
|
this.match(QuixosCapabilityParser.COLON);
|
|
this.state = 572;
|
|
this.valueType();
|
|
this.state = 573;
|
|
this.match(QuixosCapabilityParser.ARROW);
|
|
this.state = 574;
|
|
this.valueType();
|
|
this.state = 576;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 65) {
|
|
{
|
|
this.state = 575;
|
|
this.dependencyBlock();
|
|
}
|
|
}
|
|
|
|
this.state = 578;
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
}
|
|
}
|
|
catch (re) {
|
|
if (re instanceof antlr.RecognitionException) {
|
|
this.errorHandler.reportError(this, re);
|
|
this.errorHandler.recover(this, re);
|
|
} else {
|
|
throw re;
|
|
}
|
|
}
|
|
finally {
|
|
this.exitRule();
|
|
}
|
|
return localContext;
|
|
}
|
|
public packageConstructorExport(): PackageConstructorExportContext {
|
|
let localContext = new PackageConstructorExportContext(this.context, this.state);
|
|
this.enterRule(localContext, 62, QuixosCapabilityParser.RULE_packageConstructorExport);
|
|
let _la: number;
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 580;
|
|
this.match(QuixosCapabilityParser.CONSTRUCTOR);
|
|
this.state = 581;
|
|
this.identifier();
|
|
this.state = 582;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 583;
|
|
this.stringLiteral();
|
|
this.state = 584;
|
|
this.match(QuixosCapabilityParser.CONSTRUCTS);
|
|
this.state = 585;
|
|
this.identifier();
|
|
this.state = 586;
|
|
this.match(QuixosCapabilityParser.COLON);
|
|
this.state = 587;
|
|
this.valueType();
|
|
this.state = 589;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 65) {
|
|
{
|
|
this.state = 588;
|
|
this.dependencyBlock();
|
|
}
|
|
}
|
|
|
|
this.state = 591;
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
}
|
|
}
|
|
catch (re) {
|
|
if (re instanceof antlr.RecognitionException) {
|
|
this.errorHandler.reportError(this, re);
|
|
this.errorHandler.recover(this, re);
|
|
} else {
|
|
throw re;
|
|
}
|
|
}
|
|
finally {
|
|
this.exitRule();
|
|
}
|
|
return localContext;
|
|
}
|
|
public eventClause(): EventClauseContext {
|
|
let localContext = new EventClauseContext(this.context, this.state);
|
|
this.enterRule(localContext, 64, QuixosCapabilityParser.RULE_eventClause);
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 593;
|
|
this.match(QuixosCapabilityParser.EMITS);
|
|
this.state = 594;
|
|
this.valueType();
|
|
}
|
|
}
|
|
catch (re) {
|
|
if (re instanceof antlr.RecognitionException) {
|
|
this.errorHandler.reportError(this, re);
|
|
this.errorHandler.recover(this, re);
|
|
} else {
|
|
throw re;
|
|
}
|
|
}
|
|
finally {
|
|
this.exitRule();
|
|
}
|
|
return localContext;
|
|
}
|
|
public operationMode(): OperationModeContext {
|
|
let localContext = new OperationModeContext(this.context, this.state);
|
|
this.enterRule(localContext, 66, QuixosCapabilityParser.RULE_operationMode);
|
|
let _la: number;
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 596;
|
|
_la = this.tokenStream.LA(1);
|
|
if(!(((((_la - 77)) & ~0x1F) === 0 && ((1 << (_la - 77)) & 31) !== 0))) {
|
|
this.errorHandler.recoverInline(this);
|
|
}
|
|
else {
|
|
this.errorHandler.reportMatch(this);
|
|
this.consume();
|
|
}
|
|
}
|
|
}
|
|
catch (re) {
|
|
if (re instanceof antlr.RecognitionException) {
|
|
this.errorHandler.reportError(this, re);
|
|
this.errorHandler.recover(this, re);
|
|
} else {
|
|
throw re;
|
|
}
|
|
}
|
|
finally {
|
|
this.exitRule();
|
|
}
|
|
return localContext;
|
|
}
|
|
public receiverRequirement(): ReceiverRequirementContext {
|
|
let localContext = new ReceiverRequirementContext(this.context, this.state);
|
|
this.enterRule(localContext, 68, QuixosCapabilityParser.RULE_receiverRequirement);
|
|
let _la: number;
|
|
try {
|
|
this.state = 616;
|
|
this.errorHandler.sync(this);
|
|
switch (this.tokenStream.LA(1)) {
|
|
case QuixosCapabilityParser.ANY:
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 598;
|
|
this.match(QuixosCapabilityParser.ANY);
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.ATOM:
|
|
this.enterOuterAlt(localContext, 2);
|
|
{
|
|
this.state = 599;
|
|
this.match(QuixosCapabilityParser.ATOM);
|
|
this.state = 600;
|
|
this.identifier();
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.OBJECT:
|
|
this.enterOuterAlt(localContext, 3);
|
|
{
|
|
this.state = 601;
|
|
this.match(QuixosCapabilityParser.OBJECT);
|
|
this.state = 602;
|
|
this.identifier();
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.INTERFACES:
|
|
this.enterOuterAlt(localContext, 4);
|
|
{
|
|
this.state = 603;
|
|
this.match(QuixosCapabilityParser.INTERFACES);
|
|
this.state = 604;
|
|
this.match(QuixosCapabilityParser.LBRACK);
|
|
this.state = 613;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if ((((_la) & ~0x1F) === 0 && ((1 << _la) & 4092) !== 0) || _la === 51 || _la === 125) {
|
|
{
|
|
this.state = 605;
|
|
this.interfaceType();
|
|
this.state = 610;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
while (_la === 111) {
|
|
{
|
|
{
|
|
this.state = 606;
|
|
this.match(QuixosCapabilityParser.COMMA);
|
|
this.state = 607;
|
|
this.interfaceType();
|
|
}
|
|
}
|
|
this.state = 612;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
}
|
|
}
|
|
}
|
|
|
|
this.state = 615;
|
|
this.match(QuixosCapabilityParser.RBRACK);
|
|
}
|
|
break;
|
|
default:
|
|
throw new antlr.NoViableAltException(this);
|
|
}
|
|
}
|
|
catch (re) {
|
|
if (re instanceof antlr.RecognitionException) {
|
|
this.errorHandler.reportError(this, re);
|
|
this.errorHandler.recover(this, re);
|
|
} else {
|
|
throw re;
|
|
}
|
|
}
|
|
finally {
|
|
this.exitRule();
|
|
}
|
|
return localContext;
|
|
}
|
|
public identifierList(): IdentifierListContext {
|
|
let localContext = new IdentifierListContext(this.context, this.state);
|
|
this.enterRule(localContext, 70, QuixosCapabilityParser.RULE_identifierList);
|
|
let _la: number;
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 618;
|
|
this.identifier();
|
|
this.state = 623;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
while (_la === 111) {
|
|
{
|
|
{
|
|
this.state = 619;
|
|
this.match(QuixosCapabilityParser.COMMA);
|
|
this.state = 620;
|
|
this.identifier();
|
|
}
|
|
}
|
|
this.state = 625;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
}
|
|
}
|
|
}
|
|
catch (re) {
|
|
if (re instanceof antlr.RecognitionException) {
|
|
this.errorHandler.reportError(this, re);
|
|
this.errorHandler.recover(this, re);
|
|
} else {
|
|
throw re;
|
|
}
|
|
}
|
|
finally {
|
|
this.exitRule();
|
|
}
|
|
return localContext;
|
|
}
|
|
public dependencyBlock(): DependencyBlockContext {
|
|
let localContext = new DependencyBlockContext(this.context, this.state);
|
|
this.enterRule(localContext, 72, QuixosCapabilityParser.RULE_dependencyBlock);
|
|
let _la: number;
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 626;
|
|
this.match(QuixosCapabilityParser.REQUIRES);
|
|
this.state = 627;
|
|
this.match(QuixosCapabilityParser.LBRACE);
|
|
this.state = 631;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
while (((((_la - 22)) & ~0x1F) === 0 && ((1 << (_la - 22)) & 393345) !== 0)) {
|
|
{
|
|
{
|
|
this.state = 628;
|
|
this.dependencyPort();
|
|
}
|
|
}
|
|
this.state = 633;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
}
|
|
this.state = 634;
|
|
this.match(QuixosCapabilityParser.RBRACE);
|
|
}
|
|
}
|
|
catch (re) {
|
|
if (re instanceof antlr.RecognitionException) {
|
|
this.errorHandler.reportError(this, re);
|
|
this.errorHandler.recover(this, re);
|
|
} else {
|
|
throw re;
|
|
}
|
|
}
|
|
finally {
|
|
this.exitRule();
|
|
}
|
|
return localContext;
|
|
}
|
|
public dependencyPort(): DependencyPortContext {
|
|
let localContext = new DependencyPortContext(this.context, this.state);
|
|
this.enterRule(localContext, 74, QuixosCapabilityParser.RULE_dependencyPort);
|
|
let _la: number;
|
|
try {
|
|
this.state = 678;
|
|
this.errorHandler.sync(this);
|
|
switch (this.tokenStream.LA(1)) {
|
|
case QuixosCapabilityParser.STATE:
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 636;
|
|
this.match(QuixosCapabilityParser.STATE);
|
|
this.state = 637;
|
|
this.identifier();
|
|
this.state = 638;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 639;
|
|
this.stringLiteral();
|
|
this.state = 640;
|
|
this.match(QuixosCapabilityParser.COLON);
|
|
this.state = 641;
|
|
this.valueType();
|
|
this.state = 642;
|
|
this.primitiveList();
|
|
this.state = 643;
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.EDGE:
|
|
this.enterOuterAlt(localContext, 2);
|
|
{
|
|
this.state = 645;
|
|
this.match(QuixosCapabilityParser.EDGE);
|
|
this.state = 646;
|
|
this.identifier();
|
|
this.state = 647;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 648;
|
|
this.stringLiteral();
|
|
this.state = 649;
|
|
this.match(QuixosCapabilityParser.COLON);
|
|
this.state = 650;
|
|
this.cardinality();
|
|
this.state = 651;
|
|
this.targetConstraint();
|
|
this.state = 652;
|
|
this.primitiveList();
|
|
this.state = 653;
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.INTERFACE:
|
|
this.enterOuterAlt(localContext, 3);
|
|
{
|
|
this.state = 655;
|
|
this.match(QuixosCapabilityParser.INTERFACE);
|
|
this.state = 656;
|
|
this.identifier();
|
|
this.state = 657;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 658;
|
|
this.stringLiteral();
|
|
this.state = 659;
|
|
this.match(QuixosCapabilityParser.COLON);
|
|
this.state = 660;
|
|
this.identifier();
|
|
this.state = 662;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 119) {
|
|
{
|
|
this.state = 661;
|
|
this.typeArguments();
|
|
}
|
|
}
|
|
|
|
this.state = 664;
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.CONSTRUCTOR:
|
|
this.enterOuterAlt(localContext, 4);
|
|
{
|
|
this.state = 666;
|
|
this.match(QuixosCapabilityParser.CONSTRUCTOR);
|
|
this.state = 667;
|
|
this.identifier();
|
|
this.state = 668;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 669;
|
|
this.stringLiteral();
|
|
this.state = 670;
|
|
this.match(QuixosCapabilityParser.COLON);
|
|
this.state = 671;
|
|
this.identifier();
|
|
this.state = 674;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 31) {
|
|
{
|
|
this.state = 672;
|
|
this.match(QuixosCapabilityParser.INPUT);
|
|
this.state = 673;
|
|
this.valueType();
|
|
}
|
|
}
|
|
|
|
this.state = 676;
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
}
|
|
break;
|
|
default:
|
|
throw new antlr.NoViableAltException(this);
|
|
}
|
|
}
|
|
catch (re) {
|
|
if (re instanceof antlr.RecognitionException) {
|
|
this.errorHandler.reportError(this, re);
|
|
this.errorHandler.recover(this, re);
|
|
} else {
|
|
throw re;
|
|
}
|
|
}
|
|
finally {
|
|
this.exitRule();
|
|
}
|
|
return localContext;
|
|
}
|
|
public primitiveList(): PrimitiveListContext {
|
|
let localContext = new PrimitiveListContext(this.context, this.state);
|
|
this.enterRule(localContext, 76, QuixosCapabilityParser.RULE_primitiveList);
|
|
let _la: number;
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 680;
|
|
this.match(QuixosCapabilityParser.LBRACK);
|
|
this.state = 681;
|
|
this.primitive();
|
|
this.state = 686;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
while (_la === 111) {
|
|
{
|
|
{
|
|
this.state = 682;
|
|
this.match(QuixosCapabilityParser.COMMA);
|
|
this.state = 683;
|
|
this.primitive();
|
|
}
|
|
}
|
|
this.state = 688;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
}
|
|
this.state = 689;
|
|
this.match(QuixosCapabilityParser.RBRACK);
|
|
}
|
|
}
|
|
catch (re) {
|
|
if (re instanceof antlr.RecognitionException) {
|
|
this.errorHandler.reportError(this, re);
|
|
this.errorHandler.recover(this, re);
|
|
} else {
|
|
throw re;
|
|
}
|
|
}
|
|
finally {
|
|
this.exitRule();
|
|
}
|
|
return localContext;
|
|
}
|
|
public primitive(): PrimitiveContext {
|
|
let localContext = new PrimitiveContext(this.context, this.state);
|
|
this.enterRule(localContext, 78, QuixosCapabilityParser.RULE_primitive);
|
|
let _la: number;
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 691;
|
|
_la = this.tokenStream.LA(1);
|
|
if(!(((((_la - 72)) & ~0x1F) === 0 && ((1 << (_la - 72)) & 223) !== 0))) {
|
|
this.errorHandler.recoverInline(this);
|
|
}
|
|
else {
|
|
this.errorHandler.reportMatch(this);
|
|
this.consume();
|
|
}
|
|
}
|
|
}
|
|
catch (re) {
|
|
if (re instanceof antlr.RecognitionException) {
|
|
this.errorHandler.reportError(this, re);
|
|
this.errorHandler.recover(this, re);
|
|
} else {
|
|
throw re;
|
|
}
|
|
}
|
|
finally {
|
|
this.exitRule();
|
|
}
|
|
return localContext;
|
|
}
|
|
public sharedAttachmentDecl(): SharedAttachmentDeclContext {
|
|
let localContext = new SharedAttachmentDeclContext(this.context, this.state);
|
|
this.enterRule(localContext, 80, QuixosCapabilityParser.RULE_sharedAttachmentDecl);
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 693;
|
|
this.match(QuixosCapabilityParser.SHARED);
|
|
this.state = 694;
|
|
this.attachmentDecl();
|
|
}
|
|
}
|
|
catch (re) {
|
|
if (re instanceof antlr.RecognitionException) {
|
|
this.errorHandler.reportError(this, re);
|
|
this.errorHandler.recover(this, re);
|
|
} else {
|
|
throw re;
|
|
}
|
|
}
|
|
finally {
|
|
this.exitRule();
|
|
}
|
|
return localContext;
|
|
}
|
|
public attachmentDecl(): AttachmentDeclContext {
|
|
let localContext = new AttachmentDeclContext(this.context, this.state);
|
|
this.enterRule(localContext, 82, QuixosCapabilityParser.RULE_attachmentDecl);
|
|
try {
|
|
this.state = 698;
|
|
this.errorHandler.sync(this);
|
|
switch (this.tokenStream.LA(1)) {
|
|
case QuixosCapabilityParser.STATE:
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 696;
|
|
this.stateDecl();
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.EDGE:
|
|
this.enterOuterAlt(localContext, 2);
|
|
{
|
|
this.state = 697;
|
|
this.edgeDecl();
|
|
}
|
|
break;
|
|
default:
|
|
throw new antlr.NoViableAltException(this);
|
|
}
|
|
}
|
|
catch (re) {
|
|
if (re instanceof antlr.RecognitionException) {
|
|
this.errorHandler.reportError(this, re);
|
|
this.errorHandler.recover(this, re);
|
|
} else {
|
|
throw re;
|
|
}
|
|
}
|
|
finally {
|
|
this.exitRule();
|
|
}
|
|
return localContext;
|
|
}
|
|
public stateDecl(): StateDeclContext {
|
|
let localContext = new StateDeclContext(this.context, this.state);
|
|
this.enterRule(localContext, 84, QuixosCapabilityParser.RULE_stateDecl);
|
|
let _la: number;
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 700;
|
|
this.match(QuixosCapabilityParser.STATE);
|
|
this.state = 701;
|
|
this.identifier();
|
|
this.state = 702;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 703;
|
|
this.stringLiteral();
|
|
this.state = 704;
|
|
this.match(QuixosCapabilityParser.ON);
|
|
this.state = 705;
|
|
this.identifier();
|
|
this.state = 706;
|
|
this.match(QuixosCapabilityParser.COLON);
|
|
this.state = 707;
|
|
this.valueType();
|
|
this.state = 708;
|
|
this.match(QuixosCapabilityParser.POLICY);
|
|
this.state = 709;
|
|
this.storagePolicy();
|
|
this.state = 712;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 50) {
|
|
{
|
|
this.state = 710;
|
|
this.match(QuixosCapabilityParser.DEFAULT);
|
|
this.state = 711;
|
|
this.jsonLiteral();
|
|
}
|
|
}
|
|
|
|
this.state = 714;
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
}
|
|
}
|
|
catch (re) {
|
|
if (re instanceof antlr.RecognitionException) {
|
|
this.errorHandler.reportError(this, re);
|
|
this.errorHandler.recover(this, re);
|
|
} else {
|
|
throw re;
|
|
}
|
|
}
|
|
finally {
|
|
this.exitRule();
|
|
}
|
|
return localContext;
|
|
}
|
|
public storagePolicy(): StoragePolicyContext {
|
|
let localContext = new StoragePolicyContext(this.context, this.state);
|
|
this.enterRule(localContext, 86, QuixosCapabilityParser.RULE_storagePolicy);
|
|
try {
|
|
this.state = 722;
|
|
this.errorHandler.sync(this);
|
|
switch (this.tokenStream.LA(1)) {
|
|
case QuixosCapabilityParser.OPTIMISTIC_REGISTER:
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 716;
|
|
this.match(QuixosCapabilityParser.OPTIMISTIC_REGISTER);
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.CRDT:
|
|
this.enterOuterAlt(localContext, 2);
|
|
{
|
|
this.state = 717;
|
|
this.match(QuixosCapabilityParser.CRDT);
|
|
this.state = 718;
|
|
this.match(QuixosCapabilityParser.LPAREN);
|
|
this.state = 719;
|
|
this.valueType();
|
|
this.state = 720;
|
|
this.match(QuixosCapabilityParser.RPAREN);
|
|
}
|
|
break;
|
|
default:
|
|
throw new antlr.NoViableAltException(this);
|
|
}
|
|
}
|
|
catch (re) {
|
|
if (re instanceof antlr.RecognitionException) {
|
|
this.errorHandler.reportError(this, re);
|
|
this.errorHandler.recover(this, re);
|
|
} else {
|
|
throw re;
|
|
}
|
|
}
|
|
finally {
|
|
this.exitRule();
|
|
}
|
|
return localContext;
|
|
}
|
|
public edgeDecl(): EdgeDeclContext {
|
|
let localContext = new EdgeDeclContext(this.context, this.state);
|
|
this.enterRule(localContext, 88, QuixosCapabilityParser.RULE_edgeDecl);
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 724;
|
|
this.match(QuixosCapabilityParser.EDGE);
|
|
this.state = 725;
|
|
this.identifier();
|
|
this.state = 726;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 727;
|
|
this.stringLiteral();
|
|
this.state = 728;
|
|
this.match(QuixosCapabilityParser.LBRACE);
|
|
this.state = 729;
|
|
this.edgeEndpoint();
|
|
this.state = 730;
|
|
this.edgeEndpoint();
|
|
this.state = 731;
|
|
this.match(QuixosCapabilityParser.RBRACE);
|
|
}
|
|
}
|
|
catch (re) {
|
|
if (re instanceof antlr.RecognitionException) {
|
|
this.errorHandler.reportError(this, re);
|
|
this.errorHandler.recover(this, re);
|
|
} else {
|
|
throw re;
|
|
}
|
|
}
|
|
finally {
|
|
this.exitRule();
|
|
}
|
|
return localContext;
|
|
}
|
|
public edgeEndpoint(): EdgeEndpointContext {
|
|
let localContext = new EdgeEndpointContext(this.context, this.state);
|
|
this.enterRule(localContext, 90, QuixosCapabilityParser.RULE_edgeEndpoint);
|
|
let _la: number;
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 733;
|
|
this.targetConstraint();
|
|
this.state = 734;
|
|
this.match(QuixosCapabilityParser.PROJECTION);
|
|
this.state = 735;
|
|
this.identifier();
|
|
this.state = 736;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 737;
|
|
this.stringLiteral();
|
|
this.state = 738;
|
|
this.cardinality();
|
|
this.state = 740;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 88) {
|
|
{
|
|
this.state = 739;
|
|
this.match(QuixosCapabilityParser.ORDERED);
|
|
}
|
|
}
|
|
|
|
this.state = 744;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 56) {
|
|
{
|
|
this.state = 742;
|
|
this.match(QuixosCapabilityParser.ON_DELETE);
|
|
this.state = 743;
|
|
this.stringLiteral();
|
|
}
|
|
}
|
|
|
|
this.state = 747;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 57) {
|
|
{
|
|
this.state = 746;
|
|
this.match(QuixosCapabilityParser.RETAIN_OTHER);
|
|
}
|
|
}
|
|
|
|
this.state = 751;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 58) {
|
|
{
|
|
this.state = 749;
|
|
this.match(QuixosCapabilityParser.KEYED);
|
|
this.state = 750;
|
|
this.stringLiteral();
|
|
}
|
|
}
|
|
|
|
this.state = 754;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 59) {
|
|
{
|
|
this.state = 753;
|
|
this.match(QuixosCapabilityParser.PUBLIC_TRAVERSAL);
|
|
}
|
|
}
|
|
|
|
this.state = 756;
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
}
|
|
}
|
|
catch (re) {
|
|
if (re instanceof antlr.RecognitionException) {
|
|
this.errorHandler.reportError(this, re);
|
|
this.errorHandler.recover(this, re);
|
|
} else {
|
|
throw re;
|
|
}
|
|
}
|
|
finally {
|
|
this.exitRule();
|
|
}
|
|
return localContext;
|
|
}
|
|
public conformanceDecl(): ConformanceDeclContext {
|
|
let localContext = new ConformanceDeclContext(this.context, this.state);
|
|
this.enterRule(localContext, 92, QuixosCapabilityParser.RULE_conformanceDecl);
|
|
let _la: number;
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 758;
|
|
this.match(QuixosCapabilityParser.CONFORM);
|
|
this.state = 759;
|
|
this.identifier();
|
|
this.state = 760;
|
|
this.match(QuixosCapabilityParser.AS);
|
|
this.state = 761;
|
|
this.identifier();
|
|
this.state = 763;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 119) {
|
|
{
|
|
this.state = 762;
|
|
this.typeArguments();
|
|
}
|
|
}
|
|
|
|
this.state = 767;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 60) {
|
|
{
|
|
this.state = 765;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 766;
|
|
this.stringLiteral();
|
|
}
|
|
}
|
|
|
|
this.state = 771;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 55) {
|
|
{
|
|
this.state = 769;
|
|
this.match(QuixosCapabilityParser.SEMANTIC_MAJOR);
|
|
this.state = 770;
|
|
this.match(QuixosCapabilityParser.INTEGER);
|
|
}
|
|
}
|
|
|
|
this.state = 773;
|
|
this.match(QuixosCapabilityParser.LBRACE);
|
|
this.state = 777;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
while (((((_la - 34)) & ~0x1F) === 0 && ((1 << (_la - 34)) & 2057) !== 0)) {
|
|
{
|
|
{
|
|
this.state = 774;
|
|
this.conformanceItem();
|
|
}
|
|
}
|
|
this.state = 779;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
}
|
|
this.state = 780;
|
|
this.match(QuixosCapabilityParser.RBRACE);
|
|
}
|
|
}
|
|
catch (re) {
|
|
if (re instanceof antlr.RecognitionException) {
|
|
this.errorHandler.reportError(this, re);
|
|
this.errorHandler.recover(this, re);
|
|
} else {
|
|
throw re;
|
|
}
|
|
}
|
|
finally {
|
|
this.exitRule();
|
|
}
|
|
return localContext;
|
|
}
|
|
public conformanceItem(): ConformanceItemContext {
|
|
let localContext = new ConformanceItemContext(this.context, this.state);
|
|
this.enterRule(localContext, 94, QuixosCapabilityParser.RULE_conformanceItem);
|
|
try {
|
|
this.state = 787;
|
|
this.errorHandler.sync(this);
|
|
switch (this.interpreter.adaptivePredict(this.tokenStream, 66, this.context) ) {
|
|
case 1:
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 782;
|
|
this.match(QuixosCapabilityParser.PRIVATE);
|
|
this.state = 783;
|
|
this.attachmentDecl();
|
|
}
|
|
break;
|
|
case 2:
|
|
this.enterOuterAlt(localContext, 2);
|
|
{
|
|
this.state = 784;
|
|
this.operationBindingDecl();
|
|
}
|
|
break;
|
|
case 3:
|
|
this.enterOuterAlt(localContext, 3);
|
|
{
|
|
this.state = 785;
|
|
this.stateFieldBindingDecl();
|
|
}
|
|
break;
|
|
case 4:
|
|
this.enterOuterAlt(localContext, 4);
|
|
{
|
|
this.state = 786;
|
|
this.relationshipMaterializationDecl();
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
catch (re) {
|
|
if (re instanceof antlr.RecognitionException) {
|
|
this.errorHandler.reportError(this, re);
|
|
this.errorHandler.recover(this, re);
|
|
} else {
|
|
throw re;
|
|
}
|
|
}
|
|
finally {
|
|
this.exitRule();
|
|
}
|
|
return localContext;
|
|
}
|
|
public stateFieldBindingDecl(): StateFieldBindingDeclContext {
|
|
let localContext = new StateFieldBindingDeclContext(this.context, this.state);
|
|
this.enterRule(localContext, 96, QuixosCapabilityParser.RULE_stateFieldBindingDecl);
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 789;
|
|
this.match(QuixosCapabilityParser.BIND);
|
|
this.state = 790;
|
|
this.identifier();
|
|
this.state = 791;
|
|
this.match(QuixosCapabilityParser.TO);
|
|
this.state = 792;
|
|
this.match(QuixosCapabilityParser.STATE);
|
|
this.state = 793;
|
|
this.identifier();
|
|
this.state = 794;
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
}
|
|
}
|
|
catch (re) {
|
|
if (re instanceof antlr.RecognitionException) {
|
|
this.errorHandler.reportError(this, re);
|
|
this.errorHandler.recover(this, re);
|
|
} else {
|
|
throw re;
|
|
}
|
|
}
|
|
finally {
|
|
this.exitRule();
|
|
}
|
|
return localContext;
|
|
}
|
|
public relationshipMaterializationDecl(): RelationshipMaterializationDeclContext {
|
|
let localContext = new RelationshipMaterializationDeclContext(this.context, this.state);
|
|
this.enterRule(localContext, 98, QuixosCapabilityParser.RULE_relationshipMaterializationDecl);
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 796;
|
|
this.match(QuixosCapabilityParser.MATERIALIZE);
|
|
this.state = 797;
|
|
this.identifier();
|
|
this.state = 798;
|
|
this.match(QuixosCapabilityParser.IF);
|
|
this.state = 799;
|
|
this.match(QuixosCapabilityParser.ABSENT);
|
|
this.state = 800;
|
|
this.match(QuixosCapabilityParser.USING);
|
|
this.state = 801;
|
|
this.match(QuixosCapabilityParser.CONSTRUCTOR);
|
|
this.state = 802;
|
|
this.identifier();
|
|
this.state = 803;
|
|
this.match(QuixosCapabilityParser.VIA);
|
|
this.state = 804;
|
|
this.match(QuixosCapabilityParser.EDGE);
|
|
this.state = 805;
|
|
this.identifier();
|
|
this.state = 806;
|
|
this.match(QuixosCapabilityParser.DOT);
|
|
this.state = 807;
|
|
this.identifier();
|
|
this.state = 808;
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
}
|
|
}
|
|
catch (re) {
|
|
if (re instanceof antlr.RecognitionException) {
|
|
this.errorHandler.reportError(this, re);
|
|
this.errorHandler.recover(this, re);
|
|
} else {
|
|
throw re;
|
|
}
|
|
}
|
|
finally {
|
|
this.exitRule();
|
|
}
|
|
return localContext;
|
|
}
|
|
public operationBindingDecl(): OperationBindingDeclContext {
|
|
let localContext = new OperationBindingDeclContext(this.context, this.state);
|
|
this.enterRule(localContext, 100, QuixosCapabilityParser.RULE_operationBindingDecl);
|
|
let _la: number;
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 810;
|
|
this.match(QuixosCapabilityParser.BIND);
|
|
this.state = 811;
|
|
this.memberOperationRef();
|
|
this.state = 812;
|
|
this.match(QuixosCapabilityParser.TO);
|
|
this.state = 813;
|
|
this.operationProvider();
|
|
this.state = 816;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 12) {
|
|
{
|
|
this.state = 814;
|
|
this.match(QuixosCapabilityParser.QUERY_REASON);
|
|
this.state = 815;
|
|
this.stringLiteral();
|
|
}
|
|
}
|
|
|
|
this.state = 818;
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
}
|
|
}
|
|
catch (re) {
|
|
if (re instanceof antlr.RecognitionException) {
|
|
this.errorHandler.reportError(this, re);
|
|
this.errorHandler.recover(this, re);
|
|
} else {
|
|
throw re;
|
|
}
|
|
}
|
|
finally {
|
|
this.exitRule();
|
|
}
|
|
return localContext;
|
|
}
|
|
public memberOperationRef(): MemberOperationRefContext {
|
|
let localContext = new MemberOperationRefContext(this.context, this.state);
|
|
this.enterRule(localContext, 102, QuixosCapabilityParser.RULE_memberOperationRef);
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 820;
|
|
this.identifier();
|
|
this.state = 821;
|
|
this.match(QuixosCapabilityParser.DOT);
|
|
this.state = 822;
|
|
this.operationName();
|
|
}
|
|
}
|
|
catch (re) {
|
|
if (re instanceof antlr.RecognitionException) {
|
|
this.errorHandler.reportError(this, re);
|
|
this.errorHandler.recover(this, re);
|
|
} else {
|
|
throw re;
|
|
}
|
|
}
|
|
finally {
|
|
this.exitRule();
|
|
}
|
|
return localContext;
|
|
}
|
|
public operationName(): OperationNameContext {
|
|
let localContext = new OperationNameContext(this.context, this.state);
|
|
this.enterRule(localContext, 104, QuixosCapabilityParser.RULE_operationName);
|
|
try {
|
|
this.state = 835;
|
|
this.errorHandler.sync(this);
|
|
switch (this.tokenStream.LA(1)) {
|
|
case QuixosCapabilityParser.QUERY:
|
|
case QuixosCapabilityParser.ROOT:
|
|
case QuixosCapabilityParser.DOCUMENT:
|
|
case QuixosCapabilityParser.FRAGMENTS:
|
|
case QuixosCapabilityParser.VIEW:
|
|
case QuixosCapabilityParser.MAX:
|
|
case QuixosCapabilityParser.ALLOW:
|
|
case QuixosCapabilityParser.POLL:
|
|
case QuixosCapabilityParser.QUERYABLE:
|
|
case QuixosCapabilityParser.RPC:
|
|
case QuixosCapabilityParser.SOURCE:
|
|
case QuixosCapabilityParser.IDENTIFIER:
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 824;
|
|
this.identifier();
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.CALL:
|
|
this.enterOuterAlt(localContext, 2);
|
|
{
|
|
this.state = 825;
|
|
this.match(QuixosCapabilityParser.CALL);
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.GET:
|
|
this.enterOuterAlt(localContext, 3);
|
|
{
|
|
this.state = 826;
|
|
this.match(QuixosCapabilityParser.GET);
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.SET:
|
|
this.enterOuterAlt(localContext, 4);
|
|
{
|
|
this.state = 827;
|
|
this.match(QuixosCapabilityParser.SET);
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.RESOLVE:
|
|
this.enterOuterAlt(localContext, 5);
|
|
{
|
|
this.state = 828;
|
|
this.match(QuixosCapabilityParser.RESOLVE);
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.CONNECT:
|
|
this.enterOuterAlt(localContext, 6);
|
|
{
|
|
this.state = 829;
|
|
this.match(QuixosCapabilityParser.CONNECT);
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.DISCONNECT:
|
|
this.enterOuterAlt(localContext, 7);
|
|
{
|
|
this.state = 830;
|
|
this.match(QuixosCapabilityParser.DISCONNECT);
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.WATCH_START:
|
|
this.enterOuterAlt(localContext, 8);
|
|
{
|
|
this.state = 831;
|
|
this.match(QuixosCapabilityParser.WATCH_START);
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.WATCH_STOP:
|
|
this.enterOuterAlt(localContext, 9);
|
|
{
|
|
this.state = 832;
|
|
this.match(QuixosCapabilityParser.WATCH_STOP);
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.SUBSCRIBE:
|
|
this.enterOuterAlt(localContext, 10);
|
|
{
|
|
this.state = 833;
|
|
this.match(QuixosCapabilityParser.SUBSCRIBE);
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.UNSUBSCRIBE:
|
|
this.enterOuterAlt(localContext, 11);
|
|
{
|
|
this.state = 834;
|
|
this.match(QuixosCapabilityParser.UNSUBSCRIBE);
|
|
}
|
|
break;
|
|
default:
|
|
throw new antlr.NoViableAltException(this);
|
|
}
|
|
}
|
|
catch (re) {
|
|
if (re instanceof antlr.RecognitionException) {
|
|
this.errorHandler.reportError(this, re);
|
|
this.errorHandler.recover(this, re);
|
|
} else {
|
|
throw re;
|
|
}
|
|
}
|
|
finally {
|
|
this.exitRule();
|
|
}
|
|
return localContext;
|
|
}
|
|
public operationProvider(): OperationProviderContext {
|
|
let localContext = new OperationProviderContext(this.context, this.state);
|
|
this.enterRule(localContext, 106, QuixosCapabilityParser.RULE_operationProvider);
|
|
let _la: number;
|
|
try {
|
|
this.state = 859;
|
|
this.errorHandler.sync(this);
|
|
switch (this.tokenStream.LA(1)) {
|
|
case QuixosCapabilityParser.STATE:
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 837;
|
|
this.match(QuixosCapabilityParser.STATE);
|
|
this.state = 838;
|
|
this.identifier();
|
|
this.state = 839;
|
|
this.match(QuixosCapabilityParser.DOT);
|
|
this.state = 840;
|
|
this.statePrimitive();
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.EDGE:
|
|
this.enterOuterAlt(localContext, 2);
|
|
{
|
|
this.state = 842;
|
|
this.match(QuixosCapabilityParser.EDGE);
|
|
this.state = 843;
|
|
this.identifier();
|
|
this.state = 844;
|
|
this.match(QuixosCapabilityParser.DOT);
|
|
this.state = 845;
|
|
this.identifier();
|
|
this.state = 846;
|
|
this.match(QuixosCapabilityParser.DOT);
|
|
this.state = 847;
|
|
this.edgePrimitive();
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.PACKAGE:
|
|
this.enterOuterAlt(localContext, 3);
|
|
{
|
|
this.state = 849;
|
|
this.match(QuixosCapabilityParser.PACKAGE);
|
|
this.state = 850;
|
|
this.identifier();
|
|
this.state = 851;
|
|
this.match(QuixosCapabilityParser.DOT);
|
|
this.state = 852;
|
|
this.identifier();
|
|
this.state = 854;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 119) {
|
|
{
|
|
this.state = 853;
|
|
this.typeArguments();
|
|
}
|
|
}
|
|
|
|
this.state = 857;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 42) {
|
|
{
|
|
this.state = 856;
|
|
this.dependencyBindingBlock();
|
|
}
|
|
}
|
|
|
|
}
|
|
break;
|
|
default:
|
|
throw new antlr.NoViableAltException(this);
|
|
}
|
|
}
|
|
catch (re) {
|
|
if (re instanceof antlr.RecognitionException) {
|
|
this.errorHandler.reportError(this, re);
|
|
this.errorHandler.recover(this, re);
|
|
} else {
|
|
throw re;
|
|
}
|
|
}
|
|
finally {
|
|
this.exitRule();
|
|
}
|
|
return localContext;
|
|
}
|
|
public statePrimitive(): StatePrimitiveContext {
|
|
let localContext = new StatePrimitiveContext(this.context, this.state);
|
|
this.enterRule(localContext, 108, QuixosCapabilityParser.RULE_statePrimitive);
|
|
let _la: number;
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 861;
|
|
_la = this.tokenStream.LA(1);
|
|
if(!(((((_la - 72)) & ~0x1F) === 0 && ((1 << (_la - 72)) & 195) !== 0))) {
|
|
this.errorHandler.recoverInline(this);
|
|
}
|
|
else {
|
|
this.errorHandler.reportMatch(this);
|
|
this.consume();
|
|
}
|
|
}
|
|
}
|
|
catch (re) {
|
|
if (re instanceof antlr.RecognitionException) {
|
|
this.errorHandler.reportError(this, re);
|
|
this.errorHandler.recover(this, re);
|
|
} else {
|
|
throw re;
|
|
}
|
|
}
|
|
finally {
|
|
this.exitRule();
|
|
}
|
|
return localContext;
|
|
}
|
|
public edgePrimitive(): EdgePrimitiveContext {
|
|
let localContext = new EdgePrimitiveContext(this.context, this.state);
|
|
this.enterRule(localContext, 110, QuixosCapabilityParser.RULE_edgePrimitive);
|
|
let _la: number;
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 863;
|
|
_la = this.tokenStream.LA(1);
|
|
if(!(((((_la - 74)) & ~0x1F) === 0 && ((1 << (_la - 74)) & 55) !== 0))) {
|
|
this.errorHandler.recoverInline(this);
|
|
}
|
|
else {
|
|
this.errorHandler.reportMatch(this);
|
|
this.consume();
|
|
}
|
|
}
|
|
}
|
|
catch (re) {
|
|
if (re instanceof antlr.RecognitionException) {
|
|
this.errorHandler.reportError(this, re);
|
|
this.errorHandler.recover(this, re);
|
|
} else {
|
|
throw re;
|
|
}
|
|
}
|
|
finally {
|
|
this.exitRule();
|
|
}
|
|
return localContext;
|
|
}
|
|
public dependencyBindingBlock(): DependencyBindingBlockContext {
|
|
let localContext = new DependencyBindingBlockContext(this.context, this.state);
|
|
this.enterRule(localContext, 112, QuixosCapabilityParser.RULE_dependencyBindingBlock);
|
|
let _la: number;
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 865;
|
|
this.match(QuixosCapabilityParser.WITH);
|
|
this.state = 866;
|
|
this.match(QuixosCapabilityParser.LBRACE);
|
|
this.state = 870;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 4092) !== 0) || _la === 51 || _la === 125) {
|
|
{
|
|
{
|
|
this.state = 867;
|
|
this.dependencyBinding();
|
|
}
|
|
}
|
|
this.state = 872;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
}
|
|
this.state = 873;
|
|
this.match(QuixosCapabilityParser.RBRACE);
|
|
}
|
|
}
|
|
catch (re) {
|
|
if (re instanceof antlr.RecognitionException) {
|
|
this.errorHandler.reportError(this, re);
|
|
this.errorHandler.recover(this, re);
|
|
} else {
|
|
throw re;
|
|
}
|
|
}
|
|
finally {
|
|
this.exitRule();
|
|
}
|
|
return localContext;
|
|
}
|
|
public dependencyBinding(): DependencyBindingContext {
|
|
let localContext = new DependencyBindingContext(this.context, this.state);
|
|
this.enterRule(localContext, 114, QuixosCapabilityParser.RULE_dependencyBinding);
|
|
let _la: number;
|
|
try {
|
|
this.state = 928;
|
|
this.errorHandler.sync(this);
|
|
switch (this.interpreter.adaptivePredict(this.tokenStream, 77, this.context) ) {
|
|
case 1:
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 875;
|
|
this.identifier();
|
|
this.state = 876;
|
|
this.match(QuixosCapabilityParser.TO);
|
|
this.state = 877;
|
|
this.match(QuixosCapabilityParser.STATE);
|
|
this.state = 878;
|
|
this.identifier();
|
|
this.state = 885;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 44) {
|
|
{
|
|
this.state = 879;
|
|
this.match(QuixosCapabilityParser.VIA);
|
|
this.state = 880;
|
|
this.match(QuixosCapabilityParser.EDGE);
|
|
this.state = 881;
|
|
this.identifier();
|
|
this.state = 882;
|
|
this.match(QuixosCapabilityParser.DOT);
|
|
this.state = 883;
|
|
this.identifier();
|
|
}
|
|
}
|
|
|
|
this.state = 887;
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
}
|
|
break;
|
|
case 2:
|
|
this.enterOuterAlt(localContext, 2);
|
|
{
|
|
this.state = 889;
|
|
this.identifier();
|
|
this.state = 890;
|
|
this.match(QuixosCapabilityParser.TO);
|
|
this.state = 891;
|
|
this.match(QuixosCapabilityParser.EDGE);
|
|
this.state = 892;
|
|
this.identifier();
|
|
this.state = 893;
|
|
this.match(QuixosCapabilityParser.DOT);
|
|
this.state = 894;
|
|
this.identifier();
|
|
this.state = 901;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 44) {
|
|
{
|
|
this.state = 895;
|
|
this.match(QuixosCapabilityParser.VIA);
|
|
this.state = 896;
|
|
this.match(QuixosCapabilityParser.EDGE);
|
|
this.state = 897;
|
|
this.identifier();
|
|
this.state = 898;
|
|
this.match(QuixosCapabilityParser.DOT);
|
|
this.state = 899;
|
|
this.identifier();
|
|
}
|
|
}
|
|
|
|
this.state = 903;
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
}
|
|
break;
|
|
case 3:
|
|
this.enterOuterAlt(localContext, 3);
|
|
{
|
|
this.state = 905;
|
|
this.identifier();
|
|
this.state = 906;
|
|
this.match(QuixosCapabilityParser.TO);
|
|
this.state = 907;
|
|
this.match(QuixosCapabilityParser.INTERFACE);
|
|
this.state = 908;
|
|
this.identifier();
|
|
this.state = 910;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 119) {
|
|
{
|
|
this.state = 909;
|
|
this.typeArguments();
|
|
}
|
|
}
|
|
|
|
this.state = 918;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 44) {
|
|
{
|
|
this.state = 912;
|
|
this.match(QuixosCapabilityParser.VIA);
|
|
this.state = 913;
|
|
this.match(QuixosCapabilityParser.EDGE);
|
|
this.state = 914;
|
|
this.identifier();
|
|
this.state = 915;
|
|
this.match(QuixosCapabilityParser.DOT);
|
|
this.state = 916;
|
|
this.identifier();
|
|
}
|
|
}
|
|
|
|
this.state = 920;
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
}
|
|
break;
|
|
case 4:
|
|
this.enterOuterAlt(localContext, 4);
|
|
{
|
|
this.state = 922;
|
|
this.identifier();
|
|
this.state = 923;
|
|
this.match(QuixosCapabilityParser.TO);
|
|
this.state = 924;
|
|
this.match(QuixosCapabilityParser.CONSTRUCTOR);
|
|
this.state = 925;
|
|
this.identifier();
|
|
this.state = 926;
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
catch (re) {
|
|
if (re instanceof antlr.RecognitionException) {
|
|
this.errorHandler.reportError(this, re);
|
|
this.errorHandler.recover(this, re);
|
|
} else {
|
|
throw re;
|
|
}
|
|
}
|
|
finally {
|
|
this.exitRule();
|
|
}
|
|
return localContext;
|
|
}
|
|
public constructorBindingDecl(): ConstructorBindingDeclContext {
|
|
let localContext = new ConstructorBindingDeclContext(this.context, this.state);
|
|
this.enterRule(localContext, 116, QuixosCapabilityParser.RULE_constructorBindingDecl);
|
|
let _la: number;
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 930;
|
|
this.match(QuixosCapabilityParser.CONSTRUCTOR);
|
|
this.state = 931;
|
|
this.identifier();
|
|
this.state = 932;
|
|
this.match(QuixosCapabilityParser.TO);
|
|
this.state = 933;
|
|
this.identifier();
|
|
this.state = 934;
|
|
this.match(QuixosCapabilityParser.DOT);
|
|
this.state = 935;
|
|
this.identifier();
|
|
this.state = 937;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 42) {
|
|
{
|
|
this.state = 936;
|
|
this.dependencyBindingBlock();
|
|
}
|
|
}
|
|
|
|
this.state = 939;
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
}
|
|
}
|
|
catch (re) {
|
|
if (re instanceof antlr.RecognitionException) {
|
|
this.errorHandler.reportError(this, re);
|
|
this.errorHandler.recover(this, re);
|
|
} else {
|
|
throw re;
|
|
}
|
|
}
|
|
finally {
|
|
this.exitRule();
|
|
}
|
|
return localContext;
|
|
}
|
|
public valueType(): ValueTypeContext {
|
|
let localContext = new ValueTypeContext(this.context, this.state);
|
|
this.enterRule(localContext, 118, QuixosCapabilityParser.RULE_valueType);
|
|
let _la: number;
|
|
try {
|
|
this.state = 987;
|
|
this.errorHandler.sync(this);
|
|
switch (this.tokenStream.LA(1)) {
|
|
case QuixosCapabilityParser.BOOL:
|
|
case QuixosCapabilityParser.BYTES:
|
|
case QuixosCapabilityParser.DOUBLE:
|
|
case QuixosCapabilityParser.INT32:
|
|
case QuixosCapabilityParser.INT64:
|
|
case QuixosCapabilityParser.STRING:
|
|
case QuixosCapabilityParser.UINT32:
|
|
case QuixosCapabilityParser.UINT64:
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 941;
|
|
this.scalarType();
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.UNIT:
|
|
this.enterOuterAlt(localContext, 2);
|
|
{
|
|
this.state = 942;
|
|
this.match(QuixosCapabilityParser.UNIT);
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.WATCH_HANDLE:
|
|
this.enterOuterAlt(localContext, 3);
|
|
{
|
|
this.state = 943;
|
|
this.match(QuixosCapabilityParser.WATCH_HANDLE);
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.MESSAGE:
|
|
this.enterOuterAlt(localContext, 4);
|
|
{
|
|
this.state = 944;
|
|
this.match(QuixosCapabilityParser.MESSAGE);
|
|
this.state = 945;
|
|
this.stringLiteral();
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.ATOM_REF:
|
|
this.enterOuterAlt(localContext, 5);
|
|
{
|
|
this.state = 946;
|
|
this.match(QuixosCapabilityParser.ATOM_REF);
|
|
this.state = 947;
|
|
this.match(QuixosCapabilityParser.LT);
|
|
this.state = 948;
|
|
this.identifier();
|
|
this.state = 949;
|
|
this.match(QuixosCapabilityParser.GT);
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.INTERFACE_REF:
|
|
this.enterOuterAlt(localContext, 6);
|
|
{
|
|
this.state = 951;
|
|
this.match(QuixosCapabilityParser.INTERFACE_REF);
|
|
this.state = 952;
|
|
this.match(QuixosCapabilityParser.LT);
|
|
this.state = 953;
|
|
this.identifier();
|
|
this.state = 955;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 119) {
|
|
{
|
|
this.state = 954;
|
|
this.typeArguments();
|
|
}
|
|
}
|
|
|
|
this.state = 957;
|
|
this.match(QuixosCapabilityParser.GT);
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.REF:
|
|
this.enterOuterAlt(localContext, 7);
|
|
{
|
|
this.state = 959;
|
|
this.match(QuixosCapabilityParser.REF);
|
|
this.state = 960;
|
|
this.match(QuixosCapabilityParser.LT);
|
|
this.state = 961;
|
|
this.identifier();
|
|
this.state = 962;
|
|
this.match(QuixosCapabilityParser.GT);
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.OPTIONAL:
|
|
this.enterOuterAlt(localContext, 8);
|
|
{
|
|
this.state = 964;
|
|
this.match(QuixosCapabilityParser.OPTIONAL);
|
|
this.state = 965;
|
|
this.match(QuixosCapabilityParser.LT);
|
|
this.state = 966;
|
|
this.valueType();
|
|
this.state = 967;
|
|
this.match(QuixosCapabilityParser.GT);
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.LIST:
|
|
this.enterOuterAlt(localContext, 9);
|
|
{
|
|
this.state = 969;
|
|
this.match(QuixosCapabilityParser.LIST);
|
|
this.state = 970;
|
|
this.match(QuixosCapabilityParser.LT);
|
|
this.state = 971;
|
|
this.valueType();
|
|
this.state = 972;
|
|
this.match(QuixosCapabilityParser.GT);
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.RECORD:
|
|
this.enterOuterAlt(localContext, 10);
|
|
{
|
|
this.state = 974;
|
|
this.match(QuixosCapabilityParser.RECORD);
|
|
this.state = 975;
|
|
this.match(QuixosCapabilityParser.LBRACE);
|
|
this.state = 979;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 4092) !== 0) || _la === 51 || _la === 125) {
|
|
{
|
|
{
|
|
this.state = 976;
|
|
this.recordField();
|
|
}
|
|
}
|
|
this.state = 981;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
}
|
|
this.state = 982;
|
|
this.match(QuixosCapabilityParser.RBRACE);
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.QUERY:
|
|
case QuixosCapabilityParser.ROOT:
|
|
case QuixosCapabilityParser.DOCUMENT:
|
|
case QuixosCapabilityParser.FRAGMENTS:
|
|
case QuixosCapabilityParser.VIEW:
|
|
case QuixosCapabilityParser.MAX:
|
|
case QuixosCapabilityParser.ALLOW:
|
|
case QuixosCapabilityParser.POLL:
|
|
case QuixosCapabilityParser.QUERYABLE:
|
|
case QuixosCapabilityParser.RPC:
|
|
case QuixosCapabilityParser.SOURCE:
|
|
case QuixosCapabilityParser.IDENTIFIER:
|
|
this.enterOuterAlt(localContext, 11);
|
|
{
|
|
this.state = 983;
|
|
this.identifier();
|
|
this.state = 985;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 119) {
|
|
{
|
|
this.state = 984;
|
|
this.typeArguments();
|
|
}
|
|
}
|
|
|
|
}
|
|
break;
|
|
default:
|
|
throw new antlr.NoViableAltException(this);
|
|
}
|
|
}
|
|
catch (re) {
|
|
if (re instanceof antlr.RecognitionException) {
|
|
this.errorHandler.reportError(this, re);
|
|
this.errorHandler.recover(this, re);
|
|
} else {
|
|
throw re;
|
|
}
|
|
}
|
|
finally {
|
|
this.exitRule();
|
|
}
|
|
return localContext;
|
|
}
|
|
public recordField(): RecordFieldContext {
|
|
let localContext = new RecordFieldContext(this.context, this.state);
|
|
this.enterRule(localContext, 120, QuixosCapabilityParser.RULE_recordField);
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 989;
|
|
this.identifier();
|
|
this.state = 990;
|
|
this.match(QuixosCapabilityParser.COLON);
|
|
this.state = 991;
|
|
this.valueType();
|
|
this.state = 992;
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
}
|
|
}
|
|
catch (re) {
|
|
if (re instanceof antlr.RecognitionException) {
|
|
this.errorHandler.reportError(this, re);
|
|
this.errorHandler.recover(this, re);
|
|
} else {
|
|
throw re;
|
|
}
|
|
}
|
|
finally {
|
|
this.exitRule();
|
|
}
|
|
return localContext;
|
|
}
|
|
public scalarType(): ScalarTypeContext {
|
|
let localContext = new ScalarTypeContext(this.context, this.state);
|
|
this.enterRule(localContext, 122, QuixosCapabilityParser.RULE_scalarType);
|
|
let _la: number;
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 994;
|
|
_la = this.tokenStream.LA(1);
|
|
if(!(((((_la - 97)) & ~0x1F) === 0 && ((1 << (_la - 97)) & 255) !== 0))) {
|
|
this.errorHandler.recoverInline(this);
|
|
}
|
|
else {
|
|
this.errorHandler.reportMatch(this);
|
|
this.consume();
|
|
}
|
|
}
|
|
}
|
|
catch (re) {
|
|
if (re instanceof antlr.RecognitionException) {
|
|
this.errorHandler.reportError(this, re);
|
|
this.errorHandler.recover(this, re);
|
|
} else {
|
|
throw re;
|
|
}
|
|
}
|
|
finally {
|
|
this.exitRule();
|
|
}
|
|
return localContext;
|
|
}
|
|
public cardinality(): CardinalityContext {
|
|
let localContext = new CardinalityContext(this.context, this.state);
|
|
this.enterRule(localContext, 124, QuixosCapabilityParser.RULE_cardinality);
|
|
let _la: number;
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 996;
|
|
_la = this.tokenStream.LA(1);
|
|
if(!(((((_la - 84)) & ~0x1F) === 0 && ((1 << (_la - 84)) & 15) !== 0))) {
|
|
this.errorHandler.recoverInline(this);
|
|
}
|
|
else {
|
|
this.errorHandler.reportMatch(this);
|
|
this.consume();
|
|
}
|
|
}
|
|
}
|
|
catch (re) {
|
|
if (re instanceof antlr.RecognitionException) {
|
|
this.errorHandler.reportError(this, re);
|
|
this.errorHandler.recover(this, re);
|
|
} else {
|
|
throw re;
|
|
}
|
|
}
|
|
finally {
|
|
this.exitRule();
|
|
}
|
|
return localContext;
|
|
}
|
|
public jsonLiteral(): JsonLiteralContext {
|
|
let localContext = new JsonLiteralContext(this.context, this.state);
|
|
this.enterRule(localContext, 126, QuixosCapabilityParser.RULE_jsonLiteral);
|
|
try {
|
|
this.state = 1006;
|
|
this.errorHandler.sync(this);
|
|
switch (this.tokenStream.LA(1)) {
|
|
case QuixosCapabilityParser.STRING_LITERAL:
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 998;
|
|
this.stringLiteral();
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.INTEGER:
|
|
this.enterOuterAlt(localContext, 2);
|
|
{
|
|
this.state = 999;
|
|
this.match(QuixosCapabilityParser.INTEGER);
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.JSON_NUMBER:
|
|
this.enterOuterAlt(localContext, 3);
|
|
{
|
|
this.state = 1000;
|
|
this.match(QuixosCapabilityParser.JSON_NUMBER);
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.TRUE:
|
|
this.enterOuterAlt(localContext, 4);
|
|
{
|
|
this.state = 1001;
|
|
this.match(QuixosCapabilityParser.TRUE);
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.FALSE:
|
|
this.enterOuterAlt(localContext, 5);
|
|
{
|
|
this.state = 1002;
|
|
this.match(QuixosCapabilityParser.FALSE);
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.NULL:
|
|
this.enterOuterAlt(localContext, 6);
|
|
{
|
|
this.state = 1003;
|
|
this.match(QuixosCapabilityParser.NULL);
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.LBRACE:
|
|
this.enterOuterAlt(localContext, 7);
|
|
{
|
|
this.state = 1004;
|
|
this.jsonObject();
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.LBRACK:
|
|
this.enterOuterAlt(localContext, 8);
|
|
{
|
|
this.state = 1005;
|
|
this.jsonArray();
|
|
}
|
|
break;
|
|
default:
|
|
throw new antlr.NoViableAltException(this);
|
|
}
|
|
}
|
|
catch (re) {
|
|
if (re instanceof antlr.RecognitionException) {
|
|
this.errorHandler.reportError(this, re);
|
|
this.errorHandler.recover(this, re);
|
|
} else {
|
|
throw re;
|
|
}
|
|
}
|
|
finally {
|
|
this.exitRule();
|
|
}
|
|
return localContext;
|
|
}
|
|
public jsonObject(): JsonObjectContext {
|
|
let localContext = new JsonObjectContext(this.context, this.state);
|
|
this.enterRule(localContext, 128, QuixosCapabilityParser.RULE_jsonObject);
|
|
let _la: number;
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 1008;
|
|
this.match(QuixosCapabilityParser.LBRACE);
|
|
this.state = 1017;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 126) {
|
|
{
|
|
this.state = 1009;
|
|
this.jsonMember();
|
|
this.state = 1014;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
while (_la === 111) {
|
|
{
|
|
{
|
|
this.state = 1010;
|
|
this.match(QuixosCapabilityParser.COMMA);
|
|
this.state = 1011;
|
|
this.jsonMember();
|
|
}
|
|
}
|
|
this.state = 1016;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
}
|
|
}
|
|
}
|
|
|
|
this.state = 1019;
|
|
this.match(QuixosCapabilityParser.RBRACE);
|
|
}
|
|
}
|
|
catch (re) {
|
|
if (re instanceof antlr.RecognitionException) {
|
|
this.errorHandler.reportError(this, re);
|
|
this.errorHandler.recover(this, re);
|
|
} else {
|
|
throw re;
|
|
}
|
|
}
|
|
finally {
|
|
this.exitRule();
|
|
}
|
|
return localContext;
|
|
}
|
|
public jsonMember(): JsonMemberContext {
|
|
let localContext = new JsonMemberContext(this.context, this.state);
|
|
this.enterRule(localContext, 130, QuixosCapabilityParser.RULE_jsonMember);
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 1021;
|
|
this.stringLiteral();
|
|
this.state = 1022;
|
|
this.match(QuixosCapabilityParser.COLON);
|
|
this.state = 1023;
|
|
this.jsonLiteral();
|
|
}
|
|
}
|
|
catch (re) {
|
|
if (re instanceof antlr.RecognitionException) {
|
|
this.errorHandler.reportError(this, re);
|
|
this.errorHandler.recover(this, re);
|
|
} else {
|
|
throw re;
|
|
}
|
|
}
|
|
finally {
|
|
this.exitRule();
|
|
}
|
|
return localContext;
|
|
}
|
|
public jsonArray(): JsonArrayContext {
|
|
let localContext = new JsonArrayContext(this.context, this.state);
|
|
this.enterRule(localContext, 132, QuixosCapabilityParser.RULE_jsonArray);
|
|
let _la: number;
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 1025;
|
|
this.match(QuixosCapabilityParser.LBRACK);
|
|
this.state = 1034;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (((((_la - 105)) & ~0x1F) === 0 && ((1 << (_la - 105)) & 2884871) !== 0)) {
|
|
{
|
|
this.state = 1026;
|
|
this.jsonLiteral();
|
|
this.state = 1031;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
while (_la === 111) {
|
|
{
|
|
{
|
|
this.state = 1027;
|
|
this.match(QuixosCapabilityParser.COMMA);
|
|
this.state = 1028;
|
|
this.jsonLiteral();
|
|
}
|
|
}
|
|
this.state = 1033;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
}
|
|
}
|
|
}
|
|
|
|
this.state = 1036;
|
|
this.match(QuixosCapabilityParser.RBRACK);
|
|
}
|
|
}
|
|
catch (re) {
|
|
if (re instanceof antlr.RecognitionException) {
|
|
this.errorHandler.reportError(this, re);
|
|
this.errorHandler.recover(this, re);
|
|
} else {
|
|
throw re;
|
|
}
|
|
}
|
|
finally {
|
|
this.exitRule();
|
|
}
|
|
return localContext;
|
|
}
|
|
public identifier(): IdentifierContext {
|
|
let localContext = new IdentifierContext(this.context, this.state);
|
|
this.enterRule(localContext, 134, QuixosCapabilityParser.RULE_identifier);
|
|
let _la: number;
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 1038;
|
|
_la = this.tokenStream.LA(1);
|
|
if(!((((_la) & ~0x1F) === 0 && ((1 << _la) & 4092) !== 0) || _la === 51 || _la === 125)) {
|
|
this.errorHandler.recoverInline(this);
|
|
}
|
|
else {
|
|
this.errorHandler.reportMatch(this);
|
|
this.consume();
|
|
}
|
|
}
|
|
}
|
|
catch (re) {
|
|
if (re instanceof antlr.RecognitionException) {
|
|
this.errorHandler.reportError(this, re);
|
|
this.errorHandler.recover(this, re);
|
|
} else {
|
|
throw re;
|
|
}
|
|
}
|
|
finally {
|
|
this.exitRule();
|
|
}
|
|
return localContext;
|
|
}
|
|
public stringLiteral(): StringLiteralContext {
|
|
let localContext = new StringLiteralContext(this.context, this.state);
|
|
this.enterRule(localContext, 136, QuixosCapabilityParser.RULE_stringLiteral);
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 1040;
|
|
this.match(QuixosCapabilityParser.STRING_LITERAL);
|
|
}
|
|
}
|
|
catch (re) {
|
|
if (re instanceof antlr.RecognitionException) {
|
|
this.errorHandler.reportError(this, re);
|
|
this.errorHandler.recover(this, re);
|
|
} else {
|
|
throw re;
|
|
}
|
|
}
|
|
finally {
|
|
this.exitRule();
|
|
}
|
|
return localContext;
|
|
}
|
|
|
|
public static readonly _serializedATN: number[] = [
|
|
4,1,129,1043,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,
|
|
7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,2,13,7,
|
|
13,2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7,19,2,
|
|
20,7,20,2,21,7,21,2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25,2,26,7,
|
|
26,2,27,7,27,2,28,7,28,2,29,7,29,2,30,7,30,2,31,7,31,2,32,7,32,2,
|
|
33,7,33,2,34,7,34,2,35,7,35,2,36,7,36,2,37,7,37,2,38,7,38,2,39,7,
|
|
39,2,40,7,40,2,41,7,41,2,42,7,42,2,43,7,43,2,44,7,44,2,45,7,45,2,
|
|
46,7,46,2,47,7,47,2,48,7,48,2,49,7,49,2,50,7,50,2,51,7,51,2,52,7,
|
|
52,2,53,7,53,2,54,7,54,2,55,7,55,2,56,7,56,2,57,7,57,2,58,7,58,2,
|
|
59,7,59,2,60,7,60,2,61,7,61,2,62,7,62,2,63,7,63,2,64,7,64,2,65,7,
|
|
65,2,66,7,66,2,67,7,67,2,68,7,68,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,
|
|
1,0,1,0,1,0,1,0,3,0,151,8,0,1,1,1,1,1,1,5,1,156,8,1,10,1,12,1,159,
|
|
9,1,1,1,1,1,1,2,1,2,1,2,1,2,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,
|
|
1,3,5,3,177,8,3,10,3,12,3,180,9,3,1,3,1,3,1,4,1,4,1,4,1,4,1,4,1,
|
|
4,1,4,3,4,191,8,4,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,3,5,203,
|
|
8,5,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,8,
|
|
1,8,1,8,1,8,3,8,223,8,8,1,9,1,9,1,9,1,9,1,9,1,9,3,9,231,8,9,1,9,
|
|
1,9,1,10,5,10,236,8,10,10,10,12,10,239,9,10,1,10,1,10,1,10,3,10,
|
|
244,8,10,1,10,1,10,1,10,1,10,1,10,1,10,1,10,1,10,5,10,254,8,10,10,
|
|
10,12,10,257,9,10,3,10,259,8,10,1,10,1,10,5,10,263,8,10,10,10,12,
|
|
10,266,9,10,1,10,1,10,1,11,1,11,1,11,1,11,5,11,274,8,11,10,11,12,
|
|
11,277,9,11,1,11,1,11,1,12,1,12,1,12,1,12,3,12,285,8,12,1,12,1,12,
|
|
1,12,1,12,1,12,1,12,5,12,293,8,12,10,12,12,12,296,9,12,3,12,298,
|
|
8,12,3,12,300,8,12,1,13,1,13,3,13,304,8,13,1,14,1,14,1,14,1,14,5,
|
|
14,310,8,14,10,14,12,14,313,9,14,1,14,1,14,1,15,1,15,1,15,1,15,1,
|
|
15,1,15,1,15,3,15,324,8,15,1,16,1,16,1,16,3,16,329,8,16,1,16,1,16,
|
|
1,16,1,16,1,17,1,17,1,17,3,17,338,8,17,1,18,3,18,341,8,18,1,18,1,
|
|
18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,
|
|
18,1,19,3,19,359,8,19,1,19,1,19,1,19,1,19,1,19,1,19,1,19,1,19,5,
|
|
19,369,8,19,10,19,12,19,372,9,19,1,19,1,19,1,20,1,20,1,20,1,20,1,
|
|
20,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,
|
|
20,1,20,3,20,395,8,20,1,21,3,21,398,8,21,1,21,1,21,1,21,1,21,1,21,
|
|
1,21,1,21,1,21,3,21,408,8,21,1,21,1,21,5,21,412,8,21,10,21,12,21,
|
|
415,9,21,1,21,1,21,1,22,1,22,3,22,421,8,22,1,23,1,23,1,23,1,23,1,
|
|
23,1,23,1,23,1,23,1,23,1,23,1,23,1,23,1,23,1,23,1,23,1,23,1,23,1,
|
|
23,1,23,1,23,1,23,1,23,1,23,1,23,3,23,447,8,23,1,24,1,24,1,24,1,
|
|
24,1,24,3,24,454,8,24,1,24,1,24,3,24,458,8,24,1,25,5,25,461,8,25,
|
|
10,25,12,25,464,9,25,1,25,1,25,1,25,1,25,1,25,1,25,1,25,1,25,3,25,
|
|
474,8,25,1,25,1,25,5,25,478,8,25,10,25,12,25,481,9,25,1,25,1,25,
|
|
1,26,1,26,1,26,1,26,3,26,489,8,26,1,27,1,27,1,27,1,27,1,27,1,27,
|
|
1,27,1,27,1,27,1,27,1,27,1,27,5,27,503,8,27,10,27,12,27,506,9,27,
|
|
1,27,1,27,1,28,1,28,1,28,1,28,1,28,1,28,1,28,1,28,1,28,1,28,1,28,
|
|
1,28,1,28,1,28,1,28,1,28,1,28,1,28,1,28,1,28,1,28,1,28,1,28,1,28,
|
|
1,28,1,28,1,28,1,28,1,28,1,28,3,28,540,8,28,1,29,1,29,1,29,3,29,
|
|
545,8,29,1,29,1,29,1,29,1,29,1,29,1,29,1,29,1,29,1,29,3,29,556,8,
|
|
29,1,29,1,29,1,29,3,29,561,8,29,1,29,1,29,1,30,1,30,1,30,3,30,568,
|
|
8,30,1,30,1,30,1,30,1,30,1,30,1,30,1,30,3,30,577,8,30,1,30,1,30,
|
|
1,31,1,31,1,31,1,31,1,31,1,31,1,31,1,31,1,31,3,31,590,8,31,1,31,
|
|
1,31,1,32,1,32,1,32,1,33,1,33,1,34,1,34,1,34,1,34,1,34,1,34,1,34,
|
|
1,34,1,34,1,34,5,34,609,8,34,10,34,12,34,612,9,34,3,34,614,8,34,
|
|
1,34,3,34,617,8,34,1,35,1,35,1,35,5,35,622,8,35,10,35,12,35,625,
|
|
9,35,1,36,1,36,1,36,5,36,630,8,36,10,36,12,36,633,9,36,1,36,1,36,
|
|
1,37,1,37,1,37,1,37,1,37,1,37,1,37,1,37,1,37,1,37,1,37,1,37,1,37,
|
|
1,37,1,37,1,37,1,37,1,37,1,37,1,37,1,37,1,37,1,37,1,37,1,37,1,37,
|
|
3,37,663,8,37,1,37,1,37,1,37,1,37,1,37,1,37,1,37,1,37,1,37,1,37,
|
|
3,37,675,8,37,1,37,1,37,3,37,679,8,37,1,38,1,38,1,38,1,38,5,38,685,
|
|
8,38,10,38,12,38,688,9,38,1,38,1,38,1,39,1,39,1,40,1,40,1,40,1,41,
|
|
1,41,3,41,699,8,41,1,42,1,42,1,42,1,42,1,42,1,42,1,42,1,42,1,42,
|
|
1,42,1,42,1,42,3,42,713,8,42,1,42,1,42,1,43,1,43,1,43,1,43,1,43,
|
|
1,43,3,43,723,8,43,1,44,1,44,1,44,1,44,1,44,1,44,1,44,1,44,1,44,
|
|
1,45,1,45,1,45,1,45,1,45,1,45,1,45,3,45,741,8,45,1,45,1,45,3,45,
|
|
745,8,45,1,45,3,45,748,8,45,1,45,1,45,3,45,752,8,45,1,45,3,45,755,
|
|
8,45,1,45,1,45,1,46,1,46,1,46,1,46,1,46,3,46,764,8,46,1,46,1,46,
|
|
3,46,768,8,46,1,46,1,46,3,46,772,8,46,1,46,1,46,5,46,776,8,46,10,
|
|
46,12,46,779,9,46,1,46,1,46,1,47,1,47,1,47,1,47,1,47,3,47,788,8,
|
|
47,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,49,1,49,1,49,1,49,1,49,1,
|
|
49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,50,1,50,1,50,1,50,1,
|
|
50,1,50,3,50,817,8,50,1,50,1,50,1,51,1,51,1,51,1,51,1,52,1,52,1,
|
|
52,1,52,1,52,1,52,1,52,1,52,1,52,1,52,1,52,3,52,836,8,52,1,53,1,
|
|
53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,
|
|
53,1,53,1,53,3,53,855,8,53,1,53,3,53,858,8,53,3,53,860,8,53,1,54,
|
|
1,54,1,55,1,55,1,56,1,56,1,56,5,56,869,8,56,10,56,12,56,872,9,56,
|
|
1,56,1,56,1,57,1,57,1,57,1,57,1,57,1,57,1,57,1,57,1,57,1,57,3,57,
|
|
886,8,57,1,57,1,57,1,57,1,57,1,57,1,57,1,57,1,57,1,57,1,57,1,57,
|
|
1,57,1,57,1,57,3,57,902,8,57,1,57,1,57,1,57,1,57,1,57,1,57,1,57,
|
|
3,57,911,8,57,1,57,1,57,1,57,1,57,1,57,1,57,3,57,919,8,57,1,57,1,
|
|
57,1,57,1,57,1,57,1,57,1,57,1,57,3,57,929,8,57,1,58,1,58,1,58,1,
|
|
58,1,58,1,58,1,58,3,58,938,8,58,1,58,1,58,1,59,1,59,1,59,1,59,1,
|
|
59,1,59,1,59,1,59,1,59,1,59,1,59,1,59,1,59,1,59,3,59,956,8,59,1,
|
|
59,1,59,1,59,1,59,1,59,1,59,1,59,1,59,1,59,1,59,1,59,1,59,1,59,1,
|
|
59,1,59,1,59,1,59,1,59,1,59,1,59,5,59,978,8,59,10,59,12,59,981,9,
|
|
59,1,59,1,59,1,59,3,59,986,8,59,3,59,988,8,59,1,60,1,60,1,60,1,60,
|
|
1,60,1,61,1,61,1,62,1,62,1,63,1,63,1,63,1,63,1,63,1,63,1,63,1,63,
|
|
3,63,1007,8,63,1,64,1,64,1,64,1,64,5,64,1013,8,64,10,64,12,64,1016,
|
|
9,64,3,64,1018,8,64,1,64,1,64,1,65,1,65,1,65,1,65,1,66,1,66,1,66,
|
|
1,66,5,66,1030,8,66,10,66,12,66,1033,9,66,3,66,1035,8,66,1,66,1,
|
|
66,1,67,1,67,1,68,1,68,1,68,0,0,69,0,2,4,6,8,10,12,14,16,18,20,22,
|
|
24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,
|
|
68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,
|
|
108,110,112,114,116,118,120,122,124,126,128,130,132,134,136,0,7,
|
|
1,0,77,81,2,0,72,76,78,79,2,0,72,73,78,79,2,0,74,76,78,79,1,0,97,
|
|
104,1,0,84,87,3,0,2,11,51,51,125,125,1116,0,150,1,0,0,0,2,152,1,
|
|
0,0,0,4,162,1,0,0,0,6,166,1,0,0,0,8,190,1,0,0,0,10,202,1,0,0,0,12,
|
|
204,1,0,0,0,14,211,1,0,0,0,16,222,1,0,0,0,18,224,1,0,0,0,20,237,
|
|
1,0,0,0,22,269,1,0,0,0,24,299,1,0,0,0,26,301,1,0,0,0,28,305,1,0,
|
|
0,0,30,323,1,0,0,0,32,325,1,0,0,0,34,337,1,0,0,0,36,340,1,0,0,0,
|
|
38,358,1,0,0,0,40,394,1,0,0,0,42,397,1,0,0,0,44,418,1,0,0,0,46,446,
|
|
1,0,0,0,48,457,1,0,0,0,50,462,1,0,0,0,52,488,1,0,0,0,54,490,1,0,
|
|
0,0,56,539,1,0,0,0,58,541,1,0,0,0,60,564,1,0,0,0,62,580,1,0,0,0,
|
|
64,593,1,0,0,0,66,596,1,0,0,0,68,616,1,0,0,0,70,618,1,0,0,0,72,626,
|
|
1,0,0,0,74,678,1,0,0,0,76,680,1,0,0,0,78,691,1,0,0,0,80,693,1,0,
|
|
0,0,82,698,1,0,0,0,84,700,1,0,0,0,86,722,1,0,0,0,88,724,1,0,0,0,
|
|
90,733,1,0,0,0,92,758,1,0,0,0,94,787,1,0,0,0,96,789,1,0,0,0,98,796,
|
|
1,0,0,0,100,810,1,0,0,0,102,820,1,0,0,0,104,835,1,0,0,0,106,859,
|
|
1,0,0,0,108,861,1,0,0,0,110,863,1,0,0,0,112,865,1,0,0,0,114,928,
|
|
1,0,0,0,116,930,1,0,0,0,118,987,1,0,0,0,120,989,1,0,0,0,122,994,
|
|
1,0,0,0,124,996,1,0,0,0,126,1006,1,0,0,0,128,1008,1,0,0,0,130,1021,
|
|
1,0,0,0,132,1025,1,0,0,0,134,1038,1,0,0,0,136,1040,1,0,0,0,138,139,
|
|
3,6,3,0,139,140,5,0,0,1,140,151,1,0,0,0,141,142,3,20,10,0,142,143,
|
|
5,0,0,1,143,151,1,0,0,0,144,145,3,50,25,0,145,146,5,0,0,1,146,151,
|
|
1,0,0,0,147,148,3,2,1,0,148,149,5,0,0,1,149,151,1,0,0,0,150,138,
|
|
1,0,0,0,150,141,1,0,0,0,150,144,1,0,0,0,150,147,1,0,0,0,151,1,1,
|
|
0,0,0,152,153,5,18,0,0,153,157,5,113,0,0,154,156,3,8,4,0,155,154,
|
|
1,0,0,0,156,159,1,0,0,0,157,155,1,0,0,0,157,158,1,0,0,0,158,160,
|
|
1,0,0,0,159,157,1,0,0,0,160,161,5,114,0,0,161,3,1,0,0,0,162,163,
|
|
5,19,0,0,163,164,3,136,68,0,164,165,5,110,0,0,165,5,1,0,0,0,166,
|
|
167,5,1,0,0,167,168,3,134,67,0,168,169,5,60,0,0,169,170,3,136,68,
|
|
0,170,171,5,54,0,0,171,172,3,136,68,0,172,173,5,53,0,0,173,174,3,
|
|
136,68,0,174,178,5,113,0,0,175,177,3,8,4,0,176,175,1,0,0,0,177,180,
|
|
1,0,0,0,178,176,1,0,0,0,178,179,1,0,0,0,179,181,1,0,0,0,180,178,
|
|
1,0,0,0,181,182,5,114,0,0,182,7,1,0,0,0,183,191,3,4,2,0,184,191,
|
|
3,18,9,0,185,191,3,10,5,0,186,191,3,80,40,0,187,191,3,92,46,0,188,
|
|
191,3,116,58,0,189,191,3,32,16,0,190,183,1,0,0,0,190,184,1,0,0,0,
|
|
190,185,1,0,0,0,190,186,1,0,0,0,190,187,1,0,0,0,190,188,1,0,0,0,
|
|
190,189,1,0,0,0,191,9,1,0,0,0,192,193,5,19,0,0,193,194,5,22,0,0,
|
|
194,195,3,134,67,0,195,196,5,110,0,0,196,203,1,0,0,0,197,198,5,19,
|
|
0,0,198,199,5,24,0,0,199,200,3,134,67,0,200,201,5,110,0,0,201,203,
|
|
1,0,0,0,202,192,1,0,0,0,202,197,1,0,0,0,203,11,1,0,0,0,204,205,5,
|
|
20,0,0,205,206,5,21,0,0,206,207,3,134,67,0,207,208,5,60,0,0,208,
|
|
209,3,136,68,0,209,210,5,110,0,0,210,13,1,0,0,0,211,212,5,20,0,0,
|
|
212,213,5,22,0,0,213,214,3,134,67,0,214,215,5,54,0,0,215,216,3,136,
|
|
68,0,216,217,5,110,0,0,217,15,1,0,0,0,218,223,3,10,5,0,219,223,3,
|
|
12,6,0,220,223,3,14,7,0,221,223,3,32,16,0,222,218,1,0,0,0,222,219,
|
|
1,0,0,0,222,220,1,0,0,0,222,221,1,0,0,0,223,17,1,0,0,0,224,225,5,
|
|
21,0,0,225,226,3,134,67,0,226,227,5,60,0,0,227,230,3,136,68,0,228,
|
|
229,5,61,0,0,229,231,3,136,68,0,230,228,1,0,0,0,230,231,1,0,0,0,
|
|
231,232,1,0,0,0,232,233,5,110,0,0,233,19,1,0,0,0,234,236,3,16,8,
|
|
0,235,234,1,0,0,0,236,239,1,0,0,0,237,235,1,0,0,0,237,238,1,0,0,
|
|
0,238,240,1,0,0,0,239,237,1,0,0,0,240,241,5,22,0,0,241,243,3,134,
|
|
67,0,242,244,3,22,11,0,243,242,1,0,0,0,243,244,1,0,0,0,244,245,1,
|
|
0,0,0,245,246,5,60,0,0,246,247,3,136,68,0,247,248,5,54,0,0,248,258,
|
|
3,136,68,0,249,250,5,65,0,0,250,255,3,26,13,0,251,252,5,111,0,0,
|
|
252,254,3,26,13,0,253,251,1,0,0,0,254,257,1,0,0,0,255,253,1,0,0,
|
|
0,255,256,1,0,0,0,256,259,1,0,0,0,257,255,1,0,0,0,258,249,1,0,0,
|
|
0,258,259,1,0,0,0,259,260,1,0,0,0,260,264,5,113,0,0,261,263,3,34,
|
|
17,0,262,261,1,0,0,0,263,266,1,0,0,0,264,262,1,0,0,0,264,265,1,0,
|
|
0,0,265,267,1,0,0,0,266,264,1,0,0,0,267,268,5,114,0,0,268,21,1,0,
|
|
0,0,269,270,5,119,0,0,270,275,3,24,12,0,271,272,5,111,0,0,272,274,
|
|
3,24,12,0,273,271,1,0,0,0,274,277,1,0,0,0,275,273,1,0,0,0,275,276,
|
|
1,0,0,0,276,278,1,0,0,0,277,275,1,0,0,0,278,279,5,120,0,0,279,23,
|
|
1,0,0,0,280,281,5,25,0,0,281,284,3,134,67,0,282,283,5,109,0,0,283,
|
|
285,5,15,0,0,284,282,1,0,0,0,284,285,1,0,0,0,285,300,1,0,0,0,286,
|
|
287,5,14,0,0,287,297,3,134,67,0,288,289,5,16,0,0,289,294,3,26,13,
|
|
0,290,291,5,121,0,0,291,293,3,26,13,0,292,290,1,0,0,0,293,296,1,
|
|
0,0,0,294,292,1,0,0,0,294,295,1,0,0,0,295,298,1,0,0,0,296,294,1,
|
|
0,0,0,297,288,1,0,0,0,297,298,1,0,0,0,298,300,1,0,0,0,299,280,1,
|
|
0,0,0,299,286,1,0,0,0,300,25,1,0,0,0,301,303,3,134,67,0,302,304,
|
|
3,28,14,0,303,302,1,0,0,0,303,304,1,0,0,0,304,27,1,0,0,0,305,306,
|
|
5,119,0,0,306,311,3,30,15,0,307,308,5,111,0,0,308,310,3,30,15,0,
|
|
309,307,1,0,0,0,310,313,1,0,0,0,311,309,1,0,0,0,311,312,1,0,0,0,
|
|
312,314,1,0,0,0,313,311,1,0,0,0,314,315,5,120,0,0,315,29,1,0,0,0,
|
|
316,317,5,21,0,0,317,324,3,134,67,0,318,319,5,22,0,0,319,324,3,26,
|
|
13,0,320,321,5,14,0,0,321,324,3,134,67,0,322,324,3,118,59,0,323,
|
|
316,1,0,0,0,323,318,1,0,0,0,323,320,1,0,0,0,323,322,1,0,0,0,324,
|
|
31,1,0,0,0,325,326,5,13,0,0,326,328,3,134,67,0,327,329,3,22,11,0,
|
|
328,327,1,0,0,0,328,329,1,0,0,0,329,330,1,0,0,0,330,331,5,122,0,
|
|
0,331,332,3,118,59,0,332,333,5,110,0,0,333,33,1,0,0,0,334,338,3,
|
|
38,19,0,335,338,3,42,21,0,336,338,3,36,18,0,337,334,1,0,0,0,337,
|
|
335,1,0,0,0,337,336,1,0,0,0,338,35,1,0,0,0,339,341,5,35,0,0,340,
|
|
339,1,0,0,0,340,341,1,0,0,0,341,342,1,0,0,0,342,343,5,27,0,0,343,
|
|
344,3,134,67,0,344,345,5,60,0,0,345,346,3,136,68,0,346,347,5,109,
|
|
0,0,347,348,3,118,59,0,348,349,5,108,0,0,349,350,3,118,59,0,350,
|
|
351,5,113,0,0,351,352,5,77,0,0,352,353,5,60,0,0,353,354,3,136,68,
|
|
0,354,355,5,110,0,0,355,356,5,114,0,0,356,37,1,0,0,0,357,359,3,44,
|
|
22,0,358,357,1,0,0,0,358,359,1,0,0,0,359,360,1,0,0,0,360,361,5,25,
|
|
0,0,361,362,3,134,67,0,362,363,5,60,0,0,363,364,3,136,68,0,364,365,
|
|
5,109,0,0,365,366,3,118,59,0,366,370,5,113,0,0,367,369,3,40,20,0,
|
|
368,367,1,0,0,0,369,372,1,0,0,0,370,368,1,0,0,0,370,371,1,0,0,0,
|
|
371,373,1,0,0,0,372,370,1,0,0,0,373,374,5,114,0,0,374,39,1,0,0,0,
|
|
375,376,5,67,0,0,376,377,5,60,0,0,377,378,3,136,68,0,378,379,5,110,
|
|
0,0,379,395,1,0,0,0,380,381,5,68,0,0,381,382,5,60,0,0,382,383,3,
|
|
136,68,0,383,384,5,110,0,0,384,395,1,0,0,0,385,386,5,69,0,0,386,
|
|
387,5,70,0,0,387,388,5,60,0,0,388,389,3,136,68,0,389,390,5,71,0,
|
|
0,390,391,5,60,0,0,391,392,3,136,68,0,392,393,5,110,0,0,393,395,
|
|
1,0,0,0,394,375,1,0,0,0,394,380,1,0,0,0,394,385,1,0,0,0,395,41,1,
|
|
0,0,0,396,398,3,44,22,0,397,396,1,0,0,0,397,398,1,0,0,0,398,399,
|
|
1,0,0,0,399,400,5,26,0,0,400,401,3,134,67,0,401,402,5,60,0,0,402,
|
|
403,3,136,68,0,403,404,5,109,0,0,404,405,3,124,62,0,405,407,3,48,
|
|
24,0,406,408,5,88,0,0,407,406,1,0,0,0,407,408,1,0,0,0,408,409,1,
|
|
0,0,0,409,413,5,113,0,0,410,412,3,46,23,0,411,410,1,0,0,0,412,415,
|
|
1,0,0,0,413,411,1,0,0,0,413,414,1,0,0,0,414,416,1,0,0,0,415,413,
|
|
1,0,0,0,416,417,5,114,0,0,417,43,1,0,0,0,418,420,5,10,0,0,419,421,
|
|
5,11,0,0,420,419,1,0,0,0,420,421,1,0,0,0,421,45,1,0,0,0,422,423,
|
|
5,74,0,0,423,424,5,60,0,0,424,425,3,136,68,0,425,426,5,110,0,0,426,
|
|
447,1,0,0,0,427,428,5,75,0,0,428,429,5,60,0,0,429,430,3,136,68,0,
|
|
430,431,5,110,0,0,431,447,1,0,0,0,432,433,5,76,0,0,433,434,5,60,
|
|
0,0,434,435,3,136,68,0,435,436,5,110,0,0,436,447,1,0,0,0,437,438,
|
|
5,69,0,0,438,439,5,70,0,0,439,440,5,60,0,0,440,441,3,136,68,0,441,
|
|
442,5,71,0,0,442,443,5,60,0,0,443,444,3,136,68,0,444,445,5,110,0,
|
|
0,445,447,1,0,0,0,446,422,1,0,0,0,446,427,1,0,0,0,446,432,1,0,0,
|
|
0,446,437,1,0,0,0,447,47,1,0,0,0,448,449,5,21,0,0,449,458,3,134,
|
|
67,0,450,451,5,22,0,0,451,453,3,134,67,0,452,454,3,28,14,0,453,452,
|
|
1,0,0,0,453,454,1,0,0,0,454,458,1,0,0,0,455,456,5,14,0,0,456,458,
|
|
3,134,67,0,457,448,1,0,0,0,457,450,1,0,0,0,457,455,1,0,0,0,458,49,
|
|
1,0,0,0,459,461,3,16,8,0,460,459,1,0,0,0,461,464,1,0,0,0,462,460,
|
|
1,0,0,0,462,463,1,0,0,0,463,465,1,0,0,0,464,462,1,0,0,0,465,466,
|
|
5,24,0,0,466,467,3,134,67,0,467,468,5,60,0,0,468,469,3,136,68,0,
|
|
469,470,5,54,0,0,470,473,3,136,68,0,471,472,5,55,0,0,472,474,5,123,
|
|
0,0,473,471,1,0,0,0,473,474,1,0,0,0,474,475,1,0,0,0,475,479,5,113,
|
|
0,0,476,478,3,52,26,0,477,476,1,0,0,0,478,481,1,0,0,0,479,477,1,
|
|
0,0,0,479,480,1,0,0,0,480,482,1,0,0,0,481,479,1,0,0,0,482,483,5,
|
|
114,0,0,483,51,1,0,0,0,484,489,3,58,29,0,485,489,3,60,30,0,486,489,
|
|
3,62,31,0,487,489,3,54,27,0,488,484,1,0,0,0,488,485,1,0,0,0,488,
|
|
486,1,0,0,0,488,487,1,0,0,0,489,53,1,0,0,0,490,491,5,2,0,0,491,492,
|
|
3,134,67,0,492,493,5,60,0,0,493,494,3,136,68,0,494,495,5,3,0,0,495,
|
|
496,3,26,13,0,496,497,5,4,0,0,497,498,3,136,68,0,498,499,5,27,0,
|
|
0,499,500,3,136,68,0,500,504,5,113,0,0,501,503,3,56,28,0,502,501,
|
|
1,0,0,0,503,506,1,0,0,0,504,502,1,0,0,0,504,505,1,0,0,0,505,507,
|
|
1,0,0,0,506,504,1,0,0,0,507,508,5,114,0,0,508,55,1,0,0,0,509,510,
|
|
5,5,0,0,510,511,3,136,68,0,511,512,5,110,0,0,512,540,1,0,0,0,513,
|
|
514,5,6,0,0,514,515,3,134,67,0,515,516,5,33,0,0,516,517,3,26,13,
|
|
0,517,518,5,110,0,0,518,540,1,0,0,0,519,520,5,7,0,0,520,521,3,134,
|
|
67,0,521,522,5,123,0,0,522,523,5,110,0,0,523,540,1,0,0,0,524,525,
|
|
5,8,0,0,525,526,3,26,13,0,526,527,5,112,0,0,527,528,3,134,67,0,528,
|
|
529,3,134,67,0,529,530,3,136,68,0,530,531,5,110,0,0,531,540,1,0,
|
|
0,0,532,533,5,69,0,0,533,540,5,110,0,0,534,535,5,9,0,0,535,536,5,
|
|
123,0,0,536,537,3,136,68,0,537,538,5,110,0,0,538,540,1,0,0,0,539,
|
|
509,1,0,0,0,539,513,1,0,0,0,539,519,1,0,0,0,539,524,1,0,0,0,539,
|
|
532,1,0,0,0,539,534,1,0,0,0,540,57,1,0,0,0,541,542,5,27,0,0,542,
|
|
544,3,134,67,0,543,545,3,22,11,0,544,543,1,0,0,0,544,545,1,0,0,0,
|
|
545,546,1,0,0,0,546,547,5,60,0,0,547,548,3,136,68,0,548,549,5,109,
|
|
0,0,549,550,3,118,59,0,550,551,5,108,0,0,551,552,3,118,59,0,552,
|
|
553,5,62,0,0,553,555,3,66,33,0,554,556,3,64,32,0,555,554,1,0,0,0,
|
|
555,556,1,0,0,0,556,557,1,0,0,0,557,558,5,64,0,0,558,560,3,68,34,
|
|
0,559,561,3,72,36,0,560,559,1,0,0,0,560,561,1,0,0,0,561,562,1,0,
|
|
0,0,562,563,5,110,0,0,563,59,1,0,0,0,564,565,5,28,0,0,565,567,3,
|
|
134,67,0,566,568,3,22,11,0,567,566,1,0,0,0,567,568,1,0,0,0,568,569,
|
|
1,0,0,0,569,570,5,60,0,0,570,571,3,136,68,0,571,572,5,109,0,0,572,
|
|
573,3,118,59,0,573,574,5,108,0,0,574,576,3,118,59,0,575,577,3,72,
|
|
36,0,576,575,1,0,0,0,576,577,1,0,0,0,577,578,1,0,0,0,578,579,5,110,
|
|
0,0,579,61,1,0,0,0,580,581,5,29,0,0,581,582,3,134,67,0,582,583,5,
|
|
60,0,0,583,584,3,136,68,0,584,585,5,30,0,0,585,586,3,134,67,0,586,
|
|
587,5,109,0,0,587,589,3,118,59,0,588,590,3,72,36,0,589,588,1,0,0,
|
|
0,589,590,1,0,0,0,590,591,1,0,0,0,591,592,5,110,0,0,592,63,1,0,0,
|
|
0,593,594,5,63,0,0,594,595,3,118,59,0,595,65,1,0,0,0,596,597,7,0,
|
|
0,0,597,67,1,0,0,0,598,617,5,66,0,0,599,600,5,21,0,0,600,617,3,134,
|
|
67,0,601,602,5,14,0,0,602,617,3,134,67,0,603,604,5,23,0,0,604,613,
|
|
5,115,0,0,605,610,3,26,13,0,606,607,5,111,0,0,607,609,3,26,13,0,
|
|
608,606,1,0,0,0,609,612,1,0,0,0,610,608,1,0,0,0,610,611,1,0,0,0,
|
|
611,614,1,0,0,0,612,610,1,0,0,0,613,605,1,0,0,0,613,614,1,0,0,0,
|
|
614,615,1,0,0,0,615,617,5,116,0,0,616,598,1,0,0,0,616,599,1,0,0,
|
|
0,616,601,1,0,0,0,616,603,1,0,0,0,617,69,1,0,0,0,618,623,3,134,67,
|
|
0,619,620,5,111,0,0,620,622,3,134,67,0,621,619,1,0,0,0,622,625,1,
|
|
0,0,0,623,621,1,0,0,0,623,624,1,0,0,0,624,71,1,0,0,0,625,623,1,0,
|
|
0,0,626,627,5,65,0,0,627,631,5,113,0,0,628,630,3,74,37,0,629,628,
|
|
1,0,0,0,630,633,1,0,0,0,631,629,1,0,0,0,631,632,1,0,0,0,632,634,
|
|
1,0,0,0,633,631,1,0,0,0,634,635,5,114,0,0,635,73,1,0,0,0,636,637,
|
|
5,39,0,0,637,638,3,134,67,0,638,639,5,60,0,0,639,640,3,136,68,0,
|
|
640,641,5,109,0,0,641,642,3,118,59,0,642,643,3,76,38,0,643,644,5,
|
|
110,0,0,644,679,1,0,0,0,645,646,5,40,0,0,646,647,3,134,67,0,647,
|
|
648,5,60,0,0,648,649,3,136,68,0,649,650,5,109,0,0,650,651,3,124,
|
|
62,0,651,652,3,48,24,0,652,653,3,76,38,0,653,654,5,110,0,0,654,679,
|
|
1,0,0,0,655,656,5,22,0,0,656,657,3,134,67,0,657,658,5,60,0,0,658,
|
|
659,3,136,68,0,659,660,5,109,0,0,660,662,3,134,67,0,661,663,3,28,
|
|
14,0,662,661,1,0,0,0,662,663,1,0,0,0,663,664,1,0,0,0,664,665,5,110,
|
|
0,0,665,679,1,0,0,0,666,667,5,29,0,0,667,668,3,134,67,0,668,669,
|
|
5,60,0,0,669,670,3,136,68,0,670,671,5,109,0,0,671,674,3,134,67,0,
|
|
672,673,5,31,0,0,673,675,3,118,59,0,674,672,1,0,0,0,674,675,1,0,
|
|
0,0,675,676,1,0,0,0,676,677,5,110,0,0,677,679,1,0,0,0,678,636,1,
|
|
0,0,0,678,645,1,0,0,0,678,655,1,0,0,0,678,666,1,0,0,0,679,75,1,0,
|
|
0,0,680,681,5,115,0,0,681,686,3,78,39,0,682,683,5,111,0,0,683,685,
|
|
3,78,39,0,684,682,1,0,0,0,685,688,1,0,0,0,686,684,1,0,0,0,686,687,
|
|
1,0,0,0,687,689,1,0,0,0,688,686,1,0,0,0,689,690,5,116,0,0,690,77,
|
|
1,0,0,0,691,692,7,1,0,0,692,79,1,0,0,0,693,694,5,38,0,0,694,695,
|
|
3,82,41,0,695,81,1,0,0,0,696,699,3,84,42,0,697,699,3,88,44,0,698,
|
|
696,1,0,0,0,698,697,1,0,0,0,699,83,1,0,0,0,700,701,5,39,0,0,701,
|
|
702,3,134,67,0,702,703,5,60,0,0,703,704,3,136,68,0,704,705,5,48,
|
|
0,0,705,706,3,134,67,0,706,707,5,109,0,0,707,708,3,118,59,0,708,
|
|
709,5,49,0,0,709,712,3,86,43,0,710,711,5,50,0,0,711,713,3,126,63,
|
|
0,712,710,1,0,0,0,712,713,1,0,0,0,713,714,1,0,0,0,714,715,5,110,
|
|
0,0,715,85,1,0,0,0,716,723,5,82,0,0,717,718,5,83,0,0,718,719,5,117,
|
|
0,0,719,720,3,118,59,0,720,721,5,118,0,0,721,723,1,0,0,0,722,716,
|
|
1,0,0,0,722,717,1,0,0,0,723,87,1,0,0,0,724,725,5,40,0,0,725,726,
|
|
3,134,67,0,726,727,5,60,0,0,727,728,3,136,68,0,728,729,5,113,0,0,
|
|
729,730,3,90,45,0,730,731,3,90,45,0,731,732,5,114,0,0,732,89,1,0,
|
|
0,0,733,734,3,48,24,0,734,735,5,41,0,0,735,736,3,134,67,0,736,737,
|
|
5,60,0,0,737,738,3,136,68,0,738,740,3,124,62,0,739,741,5,88,0,0,
|
|
740,739,1,0,0,0,740,741,1,0,0,0,741,744,1,0,0,0,742,743,5,56,0,0,
|
|
743,745,3,136,68,0,744,742,1,0,0,0,744,745,1,0,0,0,745,747,1,0,0,
|
|
0,746,748,5,57,0,0,747,746,1,0,0,0,747,748,1,0,0,0,748,751,1,0,0,
|
|
0,749,750,5,58,0,0,750,752,3,136,68,0,751,749,1,0,0,0,751,752,1,
|
|
0,0,0,752,754,1,0,0,0,753,755,5,59,0,0,754,753,1,0,0,0,754,755,1,
|
|
0,0,0,755,756,1,0,0,0,756,757,5,110,0,0,757,91,1,0,0,0,758,759,5,
|
|
32,0,0,759,760,3,134,67,0,760,761,5,33,0,0,761,763,3,134,67,0,762,
|
|
764,3,28,14,0,763,762,1,0,0,0,763,764,1,0,0,0,764,767,1,0,0,0,765,
|
|
766,5,60,0,0,766,768,3,136,68,0,767,765,1,0,0,0,767,768,1,0,0,0,
|
|
768,771,1,0,0,0,769,770,5,55,0,0,770,772,5,123,0,0,771,769,1,0,0,
|
|
0,771,772,1,0,0,0,772,773,1,0,0,0,773,777,5,113,0,0,774,776,3,94,
|
|
47,0,775,774,1,0,0,0,776,779,1,0,0,0,777,775,1,0,0,0,777,778,1,0,
|
|
0,0,778,780,1,0,0,0,779,777,1,0,0,0,780,781,5,114,0,0,781,93,1,0,
|
|
0,0,782,783,5,37,0,0,783,788,3,82,41,0,784,788,3,100,50,0,785,788,
|
|
3,96,48,0,786,788,3,98,49,0,787,782,1,0,0,0,787,784,1,0,0,0,787,
|
|
785,1,0,0,0,787,786,1,0,0,0,788,95,1,0,0,0,789,790,5,34,0,0,790,
|
|
791,3,134,67,0,791,792,5,36,0,0,792,793,5,39,0,0,793,794,3,134,67,
|
|
0,794,795,5,110,0,0,795,97,1,0,0,0,796,797,5,45,0,0,797,798,3,134,
|
|
67,0,798,799,5,46,0,0,799,800,5,47,0,0,800,801,5,43,0,0,801,802,
|
|
5,29,0,0,802,803,3,134,67,0,803,804,5,44,0,0,804,805,5,40,0,0,805,
|
|
806,3,134,67,0,806,807,5,112,0,0,807,808,3,134,67,0,808,809,5,110,
|
|
0,0,809,99,1,0,0,0,810,811,5,34,0,0,811,812,3,102,51,0,812,813,5,
|
|
36,0,0,813,816,3,106,53,0,814,815,5,12,0,0,815,817,3,136,68,0,816,
|
|
814,1,0,0,0,816,817,1,0,0,0,817,818,1,0,0,0,818,819,5,110,0,0,819,
|
|
101,1,0,0,0,820,821,3,134,67,0,821,822,5,112,0,0,822,823,3,104,52,
|
|
0,823,103,1,0,0,0,824,836,3,134,67,0,825,836,5,77,0,0,826,836,5,
|
|
67,0,0,827,836,5,68,0,0,828,836,5,74,0,0,829,836,5,75,0,0,830,836,
|
|
5,76,0,0,831,836,5,78,0,0,832,836,5,79,0,0,833,836,5,80,0,0,834,
|
|
836,5,81,0,0,835,824,1,0,0,0,835,825,1,0,0,0,835,826,1,0,0,0,835,
|
|
827,1,0,0,0,835,828,1,0,0,0,835,829,1,0,0,0,835,830,1,0,0,0,835,
|
|
831,1,0,0,0,835,832,1,0,0,0,835,833,1,0,0,0,835,834,1,0,0,0,836,
|
|
105,1,0,0,0,837,838,5,39,0,0,838,839,3,134,67,0,839,840,5,112,0,
|
|
0,840,841,3,108,54,0,841,860,1,0,0,0,842,843,5,40,0,0,843,844,3,
|
|
134,67,0,844,845,5,112,0,0,845,846,3,134,67,0,846,847,5,112,0,0,
|
|
847,848,3,110,55,0,848,860,1,0,0,0,849,850,5,24,0,0,850,851,3,134,
|
|
67,0,851,852,5,112,0,0,852,854,3,134,67,0,853,855,3,28,14,0,854,
|
|
853,1,0,0,0,854,855,1,0,0,0,855,857,1,0,0,0,856,858,3,112,56,0,857,
|
|
856,1,0,0,0,857,858,1,0,0,0,858,860,1,0,0,0,859,837,1,0,0,0,859,
|
|
842,1,0,0,0,859,849,1,0,0,0,860,107,1,0,0,0,861,862,7,2,0,0,862,
|
|
109,1,0,0,0,863,864,7,3,0,0,864,111,1,0,0,0,865,866,5,42,0,0,866,
|
|
870,5,113,0,0,867,869,3,114,57,0,868,867,1,0,0,0,869,872,1,0,0,0,
|
|
870,868,1,0,0,0,870,871,1,0,0,0,871,873,1,0,0,0,872,870,1,0,0,0,
|
|
873,874,5,114,0,0,874,113,1,0,0,0,875,876,3,134,67,0,876,877,5,36,
|
|
0,0,877,878,5,39,0,0,878,885,3,134,67,0,879,880,5,44,0,0,880,881,
|
|
5,40,0,0,881,882,3,134,67,0,882,883,5,112,0,0,883,884,3,134,67,0,
|
|
884,886,1,0,0,0,885,879,1,0,0,0,885,886,1,0,0,0,886,887,1,0,0,0,
|
|
887,888,5,110,0,0,888,929,1,0,0,0,889,890,3,134,67,0,890,891,5,36,
|
|
0,0,891,892,5,40,0,0,892,893,3,134,67,0,893,894,5,112,0,0,894,901,
|
|
3,134,67,0,895,896,5,44,0,0,896,897,5,40,0,0,897,898,3,134,67,0,
|
|
898,899,5,112,0,0,899,900,3,134,67,0,900,902,1,0,0,0,901,895,1,0,
|
|
0,0,901,902,1,0,0,0,902,903,1,0,0,0,903,904,5,110,0,0,904,929,1,
|
|
0,0,0,905,906,3,134,67,0,906,907,5,36,0,0,907,908,5,22,0,0,908,910,
|
|
3,134,67,0,909,911,3,28,14,0,910,909,1,0,0,0,910,911,1,0,0,0,911,
|
|
918,1,0,0,0,912,913,5,44,0,0,913,914,5,40,0,0,914,915,3,134,67,0,
|
|
915,916,5,112,0,0,916,917,3,134,67,0,917,919,1,0,0,0,918,912,1,0,
|
|
0,0,918,919,1,0,0,0,919,920,1,0,0,0,920,921,5,110,0,0,921,929,1,
|
|
0,0,0,922,923,3,134,67,0,923,924,5,36,0,0,924,925,5,29,0,0,925,926,
|
|
3,134,67,0,926,927,5,110,0,0,927,929,1,0,0,0,928,875,1,0,0,0,928,
|
|
889,1,0,0,0,928,905,1,0,0,0,928,922,1,0,0,0,929,115,1,0,0,0,930,
|
|
931,5,29,0,0,931,932,3,134,67,0,932,933,5,36,0,0,933,934,3,134,67,
|
|
0,934,935,5,112,0,0,935,937,3,134,67,0,936,938,3,112,56,0,937,936,
|
|
1,0,0,0,937,938,1,0,0,0,938,939,1,0,0,0,939,940,5,110,0,0,940,117,
|
|
1,0,0,0,941,988,3,122,61,0,942,988,5,89,0,0,943,988,5,90,0,0,944,
|
|
945,5,91,0,0,945,988,3,136,68,0,946,947,5,92,0,0,947,948,5,119,0,
|
|
0,948,949,3,134,67,0,949,950,5,120,0,0,950,988,1,0,0,0,951,952,5,
|
|
93,0,0,952,953,5,119,0,0,953,955,3,134,67,0,954,956,3,28,14,0,955,
|
|
954,1,0,0,0,955,956,1,0,0,0,956,957,1,0,0,0,957,958,5,120,0,0,958,
|
|
988,1,0,0,0,959,960,5,17,0,0,960,961,5,119,0,0,961,962,3,134,67,
|
|
0,962,963,5,120,0,0,963,988,1,0,0,0,964,965,5,94,0,0,965,966,5,119,
|
|
0,0,966,967,3,118,59,0,967,968,5,120,0,0,968,988,1,0,0,0,969,970,
|
|
5,95,0,0,970,971,5,119,0,0,971,972,3,118,59,0,972,973,5,120,0,0,
|
|
973,988,1,0,0,0,974,975,5,96,0,0,975,979,5,113,0,0,976,978,3,120,
|
|
60,0,977,976,1,0,0,0,978,981,1,0,0,0,979,977,1,0,0,0,979,980,1,0,
|
|
0,0,980,982,1,0,0,0,981,979,1,0,0,0,982,988,5,114,0,0,983,985,3,
|
|
134,67,0,984,986,3,28,14,0,985,984,1,0,0,0,985,986,1,0,0,0,986,988,
|
|
1,0,0,0,987,941,1,0,0,0,987,942,1,0,0,0,987,943,1,0,0,0,987,944,
|
|
1,0,0,0,987,946,1,0,0,0,987,951,1,0,0,0,987,959,1,0,0,0,987,964,
|
|
1,0,0,0,987,969,1,0,0,0,987,974,1,0,0,0,987,983,1,0,0,0,988,119,
|
|
1,0,0,0,989,990,3,134,67,0,990,991,5,109,0,0,991,992,3,118,59,0,
|
|
992,993,5,110,0,0,993,121,1,0,0,0,994,995,7,4,0,0,995,123,1,0,0,
|
|
0,996,997,7,5,0,0,997,125,1,0,0,0,998,1007,3,136,68,0,999,1007,5,
|
|
123,0,0,1000,1007,5,124,0,0,1001,1007,5,105,0,0,1002,1007,5,106,
|
|
0,0,1003,1007,5,107,0,0,1004,1007,3,128,64,0,1005,1007,3,132,66,
|
|
0,1006,998,1,0,0,0,1006,999,1,0,0,0,1006,1000,1,0,0,0,1006,1001,
|
|
1,0,0,0,1006,1002,1,0,0,0,1006,1003,1,0,0,0,1006,1004,1,0,0,0,1006,
|
|
1005,1,0,0,0,1007,127,1,0,0,0,1008,1017,5,113,0,0,1009,1014,3,130,
|
|
65,0,1010,1011,5,111,0,0,1011,1013,3,130,65,0,1012,1010,1,0,0,0,
|
|
1013,1016,1,0,0,0,1014,1012,1,0,0,0,1014,1015,1,0,0,0,1015,1018,
|
|
1,0,0,0,1016,1014,1,0,0,0,1017,1009,1,0,0,0,1017,1018,1,0,0,0,1018,
|
|
1019,1,0,0,0,1019,1020,5,114,0,0,1020,129,1,0,0,0,1021,1022,3,136,
|
|
68,0,1022,1023,5,109,0,0,1023,1024,3,126,63,0,1024,131,1,0,0,0,1025,
|
|
1034,5,115,0,0,1026,1031,3,126,63,0,1027,1028,5,111,0,0,1028,1030,
|
|
3,126,63,0,1029,1027,1,0,0,0,1030,1033,1,0,0,0,1031,1029,1,0,0,0,
|
|
1031,1032,1,0,0,0,1032,1035,1,0,0,0,1033,1031,1,0,0,0,1034,1026,
|
|
1,0,0,0,1034,1035,1,0,0,0,1035,1036,1,0,0,0,1036,1037,5,116,0,0,
|
|
1037,133,1,0,0,0,1038,1039,7,6,0,0,1039,135,1,0,0,0,1040,1041,5,
|
|
126,0,0,1041,137,1,0,0,0,88,150,157,178,190,202,222,230,237,243,
|
|
255,258,264,275,284,294,297,299,303,311,323,328,337,340,358,370,
|
|
394,397,407,413,420,446,453,457,462,473,479,488,504,539,544,555,
|
|
560,567,576,589,610,613,616,623,631,662,674,678,686,698,712,722,
|
|
740,744,747,751,754,763,767,771,777,787,816,835,854,857,859,870,
|
|
885,901,910,918,928,937,955,979,985,987,1006,1014,1017,1031,1034
|
|
];
|
|
|
|
private static __ATN: antlr.ATN;
|
|
public static get _ATN(): antlr.ATN {
|
|
if (!QuixosCapabilityParser.__ATN) {
|
|
QuixosCapabilityParser.__ATN = new antlr.ATNDeserializer().deserialize(QuixosCapabilityParser._serializedATN);
|
|
}
|
|
|
|
return QuixosCapabilityParser.__ATN;
|
|
}
|
|
|
|
|
|
private static readonly vocabulary = new antlr.Vocabulary(QuixosCapabilityParser.literalNames, QuixosCapabilityParser.symbolicNames, []);
|
|
|
|
public override get vocabulary(): antlr.Vocabulary {
|
|
return QuixosCapabilityParser.vocabulary;
|
|
}
|
|
|
|
private static readonly decisionsToDFA = QuixosCapabilityParser._ATN.decisionToState.map( (ds: antlr.DecisionState, index: number) => new antlr.DFA(ds, index) );
|
|
}
|
|
|
|
export class DocumentContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public workspaceDecl(): WorkspaceDeclContext | null {
|
|
return this.getRuleContext(0, WorkspaceDeclContext);
|
|
}
|
|
public EOF(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.EOF, 0)!;
|
|
}
|
|
public interfaceResourceDecl(): InterfaceResourceDeclContext | null {
|
|
return this.getRuleContext(0, InterfaceResourceDeclContext);
|
|
}
|
|
public packageResourceDecl(): PackageResourceDeclContext | null {
|
|
return this.getRuleContext(0, PackageResourceDeclContext);
|
|
}
|
|
public fragmentDecl(): FragmentDeclContext | null {
|
|
return this.getRuleContext(0, FragmentDeclContext);
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_document;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitDocument) {
|
|
return visitor.visitDocument(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class FragmentDeclContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public FRAGMENT(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.FRAGMENT, 0)!;
|
|
}
|
|
public LBRACE(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.LBRACE, 0)!;
|
|
}
|
|
public RBRACE(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.RBRACE, 0)!;
|
|
}
|
|
public workspaceItem(): WorkspaceItemContext[];
|
|
public workspaceItem(i: number): WorkspaceItemContext | null;
|
|
public workspaceItem(i?: number): WorkspaceItemContext[] | WorkspaceItemContext | null {
|
|
if (i === undefined) {
|
|
return this.getRuleContexts(WorkspaceItemContext);
|
|
}
|
|
|
|
return this.getRuleContext(i, WorkspaceItemContext);
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_fragmentDecl;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitFragmentDecl) {
|
|
return visitor.visitFragmentDecl(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class SourceImportDeclContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public IMPORT(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.IMPORT, 0)!;
|
|
}
|
|
public stringLiteral(): StringLiteralContext {
|
|
return this.getRuleContext(0, StringLiteralContext)!;
|
|
}
|
|
public SEMI(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.SEMI, 0)!;
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_sourceImportDecl;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitSourceImportDecl) {
|
|
return visitor.visitSourceImportDecl(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class WorkspaceDeclContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public WORKSPACE(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.WORKSPACE, 0)!;
|
|
}
|
|
public identifier(): IdentifierContext {
|
|
return this.getRuleContext(0, IdentifierContext)!;
|
|
}
|
|
public ID(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.ID, 0)!;
|
|
}
|
|
public stringLiteral(): StringLiteralContext[];
|
|
public stringLiteral(i: number): StringLiteralContext | null;
|
|
public stringLiteral(i?: number): StringLiteralContext[] | StringLiteralContext | null {
|
|
if (i === undefined) {
|
|
return this.getRuleContexts(StringLiteralContext);
|
|
}
|
|
|
|
return this.getRuleContext(i, StringLiteralContext);
|
|
}
|
|
public REVISION(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.REVISION, 0)!;
|
|
}
|
|
public COMMIT(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.COMMIT, 0)!;
|
|
}
|
|
public LBRACE(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.LBRACE, 0)!;
|
|
}
|
|
public RBRACE(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.RBRACE, 0)!;
|
|
}
|
|
public workspaceItem(): WorkspaceItemContext[];
|
|
public workspaceItem(i: number): WorkspaceItemContext | null;
|
|
public workspaceItem(i?: number): WorkspaceItemContext[] | WorkspaceItemContext | null {
|
|
if (i === undefined) {
|
|
return this.getRuleContexts(WorkspaceItemContext);
|
|
}
|
|
|
|
return this.getRuleContext(i, WorkspaceItemContext);
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_workspaceDecl;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitWorkspaceDecl) {
|
|
return visitor.visitWorkspaceDecl(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class WorkspaceItemContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public sourceImportDecl(): SourceImportDeclContext | null {
|
|
return this.getRuleContext(0, SourceImportDeclContext);
|
|
}
|
|
public atomDecl(): AtomDeclContext | null {
|
|
return this.getRuleContext(0, AtomDeclContext);
|
|
}
|
|
public resourceImportDecl(): ResourceImportDeclContext | null {
|
|
return this.getRuleContext(0, ResourceImportDeclContext);
|
|
}
|
|
public sharedAttachmentDecl(): SharedAttachmentDeclContext | null {
|
|
return this.getRuleContext(0, SharedAttachmentDeclContext);
|
|
}
|
|
public conformanceDecl(): ConformanceDeclContext | null {
|
|
return this.getRuleContext(0, ConformanceDeclContext);
|
|
}
|
|
public constructorBindingDecl(): ConstructorBindingDeclContext | null {
|
|
return this.getRuleContext(0, ConstructorBindingDeclContext);
|
|
}
|
|
public typeAliasDecl(): TypeAliasDeclContext | null {
|
|
return this.getRuleContext(0, TypeAliasDeclContext);
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_workspaceItem;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitWorkspaceItem) {
|
|
return visitor.visitWorkspaceItem(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class ResourceImportDeclContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public IMPORT(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.IMPORT, 0)!;
|
|
}
|
|
public INTERFACE(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.INTERFACE, 0);
|
|
}
|
|
public identifier(): IdentifierContext {
|
|
return this.getRuleContext(0, IdentifierContext)!;
|
|
}
|
|
public SEMI(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.SEMI, 0)!;
|
|
}
|
|
public PACKAGE(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.PACKAGE, 0);
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_resourceImportDecl;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitResourceImportDecl) {
|
|
return visitor.visitResourceImportDecl(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class ExternalAtomDeclContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public EXTERNAL(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.EXTERNAL, 0)!;
|
|
}
|
|
public ATOM(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.ATOM, 0)!;
|
|
}
|
|
public identifier(): IdentifierContext {
|
|
return this.getRuleContext(0, IdentifierContext)!;
|
|
}
|
|
public ID(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.ID, 0)!;
|
|
}
|
|
public stringLiteral(): StringLiteralContext {
|
|
return this.getRuleContext(0, StringLiteralContext)!;
|
|
}
|
|
public SEMI(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.SEMI, 0)!;
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_externalAtomDecl;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitExternalAtomDecl) {
|
|
return visitor.visitExternalAtomDecl(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class ExternalInterfaceDeclContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public EXTERNAL(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.EXTERNAL, 0)!;
|
|
}
|
|
public INTERFACE(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.INTERFACE, 0)!;
|
|
}
|
|
public identifier(): IdentifierContext {
|
|
return this.getRuleContext(0, IdentifierContext)!;
|
|
}
|
|
public REVISION(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.REVISION, 0)!;
|
|
}
|
|
public stringLiteral(): StringLiteralContext {
|
|
return this.getRuleContext(0, StringLiteralContext)!;
|
|
}
|
|
public SEMI(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.SEMI, 0)!;
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_externalInterfaceDecl;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitExternalInterfaceDecl) {
|
|
return visitor.visitExternalInterfaceDecl(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class ResourcePreambleContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public resourceImportDecl(): ResourceImportDeclContext | null {
|
|
return this.getRuleContext(0, ResourceImportDeclContext);
|
|
}
|
|
public externalAtomDecl(): ExternalAtomDeclContext | null {
|
|
return this.getRuleContext(0, ExternalAtomDeclContext);
|
|
}
|
|
public externalInterfaceDecl(): ExternalInterfaceDeclContext | null {
|
|
return this.getRuleContext(0, ExternalInterfaceDeclContext);
|
|
}
|
|
public typeAliasDecl(): TypeAliasDeclContext | null {
|
|
return this.getRuleContext(0, TypeAliasDeclContext);
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_resourcePreamble;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitResourcePreamble) {
|
|
return visitor.visitResourcePreamble(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class AtomDeclContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public ATOM(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.ATOM, 0)!;
|
|
}
|
|
public identifier(): IdentifierContext {
|
|
return this.getRuleContext(0, IdentifierContext)!;
|
|
}
|
|
public ID(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.ID, 0)!;
|
|
}
|
|
public stringLiteral(): StringLiteralContext[];
|
|
public stringLiteral(i: number): StringLiteralContext | null;
|
|
public stringLiteral(i?: number): StringLiteralContext[] | StringLiteralContext | null {
|
|
if (i === undefined) {
|
|
return this.getRuleContexts(StringLiteralContext);
|
|
}
|
|
|
|
return this.getRuleContext(i, StringLiteralContext);
|
|
}
|
|
public SEMI(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.SEMI, 0)!;
|
|
}
|
|
public DOC(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.DOC, 0);
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_atomDecl;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitAtomDecl) {
|
|
return visitor.visitAtomDecl(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class InterfaceResourceDeclContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public INTERFACE(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.INTERFACE, 0)!;
|
|
}
|
|
public identifier(): IdentifierContext {
|
|
return this.getRuleContext(0, IdentifierContext)!;
|
|
}
|
|
public ID(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.ID, 0)!;
|
|
}
|
|
public stringLiteral(): StringLiteralContext[];
|
|
public stringLiteral(i: number): StringLiteralContext | null;
|
|
public stringLiteral(i?: number): StringLiteralContext[] | StringLiteralContext | null {
|
|
if (i === undefined) {
|
|
return this.getRuleContexts(StringLiteralContext);
|
|
}
|
|
|
|
return this.getRuleContext(i, StringLiteralContext);
|
|
}
|
|
public REVISION(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.REVISION, 0)!;
|
|
}
|
|
public LBRACE(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.LBRACE, 0)!;
|
|
}
|
|
public RBRACE(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.RBRACE, 0)!;
|
|
}
|
|
public resourcePreamble(): ResourcePreambleContext[];
|
|
public resourcePreamble(i: number): ResourcePreambleContext | null;
|
|
public resourcePreamble(i?: number): ResourcePreambleContext[] | ResourcePreambleContext | null {
|
|
if (i === undefined) {
|
|
return this.getRuleContexts(ResourcePreambleContext);
|
|
}
|
|
|
|
return this.getRuleContext(i, ResourcePreambleContext);
|
|
}
|
|
public typeParameters(): TypeParametersContext | null {
|
|
return this.getRuleContext(0, TypeParametersContext);
|
|
}
|
|
public REQUIRES(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.REQUIRES, 0);
|
|
}
|
|
public interfaceType(): InterfaceTypeContext[];
|
|
public interfaceType(i: number): InterfaceTypeContext | null;
|
|
public interfaceType(i?: number): InterfaceTypeContext[] | InterfaceTypeContext | null {
|
|
if (i === undefined) {
|
|
return this.getRuleContexts(InterfaceTypeContext);
|
|
}
|
|
|
|
return this.getRuleContext(i, InterfaceTypeContext);
|
|
}
|
|
public interfaceMember(): InterfaceMemberContext[];
|
|
public interfaceMember(i: number): InterfaceMemberContext | null;
|
|
public interfaceMember(i?: number): InterfaceMemberContext[] | InterfaceMemberContext | null {
|
|
if (i === undefined) {
|
|
return this.getRuleContexts(InterfaceMemberContext);
|
|
}
|
|
|
|
return this.getRuleContext(i, InterfaceMemberContext);
|
|
}
|
|
public COMMA(): antlr.TerminalNode[];
|
|
public COMMA(i: number): antlr.TerminalNode | null;
|
|
public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] {
|
|
if (i === undefined) {
|
|
return this.getTokens(QuixosCapabilityParser.COMMA);
|
|
} else {
|
|
return this.getToken(QuixosCapabilityParser.COMMA, i);
|
|
}
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_interfaceResourceDecl;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitInterfaceResourceDecl) {
|
|
return visitor.visitInterfaceResourceDecl(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class TypeParametersContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public LT(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.LT, 0)!;
|
|
}
|
|
public typeParameter(): TypeParameterContext[];
|
|
public typeParameter(i: number): TypeParameterContext | null;
|
|
public typeParameter(i?: number): TypeParameterContext[] | TypeParameterContext | null {
|
|
if (i === undefined) {
|
|
return this.getRuleContexts(TypeParameterContext);
|
|
}
|
|
|
|
return this.getRuleContext(i, TypeParameterContext);
|
|
}
|
|
public GT(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.GT, 0)!;
|
|
}
|
|
public COMMA(): antlr.TerminalNode[];
|
|
public COMMA(i: number): antlr.TerminalNode | null;
|
|
public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] {
|
|
if (i === undefined) {
|
|
return this.getTokens(QuixosCapabilityParser.COMMA);
|
|
} else {
|
|
return this.getToken(QuixosCapabilityParser.COMMA, i);
|
|
}
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_typeParameters;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitTypeParameters) {
|
|
return visitor.visitTypeParameters(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class TypeParameterContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public VALUE(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.VALUE, 0);
|
|
}
|
|
public identifier(): IdentifierContext {
|
|
return this.getRuleContext(0, IdentifierContext)!;
|
|
}
|
|
public COLON(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.COLON, 0);
|
|
}
|
|
public STORABLE(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.STORABLE, 0);
|
|
}
|
|
public OBJECT(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.OBJECT, 0);
|
|
}
|
|
public IMPLEMENTS(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.IMPLEMENTS, 0);
|
|
}
|
|
public interfaceType(): InterfaceTypeContext[];
|
|
public interfaceType(i: number): InterfaceTypeContext | null;
|
|
public interfaceType(i?: number): InterfaceTypeContext[] | InterfaceTypeContext | null {
|
|
if (i === undefined) {
|
|
return this.getRuleContexts(InterfaceTypeContext);
|
|
}
|
|
|
|
return this.getRuleContext(i, InterfaceTypeContext);
|
|
}
|
|
public AMP(): antlr.TerminalNode[];
|
|
public AMP(i: number): antlr.TerminalNode | null;
|
|
public AMP(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] {
|
|
if (i === undefined) {
|
|
return this.getTokens(QuixosCapabilityParser.AMP);
|
|
} else {
|
|
return this.getToken(QuixosCapabilityParser.AMP, i);
|
|
}
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_typeParameter;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitTypeParameter) {
|
|
return visitor.visitTypeParameter(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class InterfaceTypeContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public identifier(): IdentifierContext {
|
|
return this.getRuleContext(0, IdentifierContext)!;
|
|
}
|
|
public typeArguments(): TypeArgumentsContext | null {
|
|
return this.getRuleContext(0, TypeArgumentsContext);
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_interfaceType;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitInterfaceType) {
|
|
return visitor.visitInterfaceType(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class TypeArgumentsContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public LT(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.LT, 0)!;
|
|
}
|
|
public typeArgument(): TypeArgumentContext[];
|
|
public typeArgument(i: number): TypeArgumentContext | null;
|
|
public typeArgument(i?: number): TypeArgumentContext[] | TypeArgumentContext | null {
|
|
if (i === undefined) {
|
|
return this.getRuleContexts(TypeArgumentContext);
|
|
}
|
|
|
|
return this.getRuleContext(i, TypeArgumentContext);
|
|
}
|
|
public GT(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.GT, 0)!;
|
|
}
|
|
public COMMA(): antlr.TerminalNode[];
|
|
public COMMA(i: number): antlr.TerminalNode | null;
|
|
public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] {
|
|
if (i === undefined) {
|
|
return this.getTokens(QuixosCapabilityParser.COMMA);
|
|
} else {
|
|
return this.getToken(QuixosCapabilityParser.COMMA, i);
|
|
}
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_typeArguments;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitTypeArguments) {
|
|
return visitor.visitTypeArguments(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class TypeArgumentContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public ATOM(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.ATOM, 0);
|
|
}
|
|
public identifier(): IdentifierContext | null {
|
|
return this.getRuleContext(0, IdentifierContext);
|
|
}
|
|
public INTERFACE(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.INTERFACE, 0);
|
|
}
|
|
public interfaceType(): InterfaceTypeContext | null {
|
|
return this.getRuleContext(0, InterfaceTypeContext);
|
|
}
|
|
public OBJECT(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.OBJECT, 0);
|
|
}
|
|
public valueType(): ValueTypeContext | null {
|
|
return this.getRuleContext(0, ValueTypeContext);
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_typeArgument;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitTypeArgument) {
|
|
return visitor.visitTypeArgument(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class TypeAliasDeclContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public TYPE(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.TYPE, 0)!;
|
|
}
|
|
public identifier(): IdentifierContext {
|
|
return this.getRuleContext(0, IdentifierContext)!;
|
|
}
|
|
public EQUAL(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.EQUAL, 0)!;
|
|
}
|
|
public valueType(): ValueTypeContext {
|
|
return this.getRuleContext(0, ValueTypeContext)!;
|
|
}
|
|
public SEMI(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.SEMI, 0)!;
|
|
}
|
|
public typeParameters(): TypeParametersContext | null {
|
|
return this.getRuleContext(0, TypeParametersContext);
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_typeAliasDecl;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitTypeAliasDecl) {
|
|
return visitor.visitTypeAliasDecl(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class InterfaceMemberContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public valueMember(): ValueMemberContext | null {
|
|
return this.getRuleContext(0, ValueMemberContext);
|
|
}
|
|
public relationshipMember(): RelationshipMemberContext | null {
|
|
return this.getRuleContext(0, RelationshipMemberContext);
|
|
}
|
|
public operationMember(): OperationMemberContext | null {
|
|
return this.getRuleContext(0, OperationMemberContext);
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_interfaceMember;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitInterfaceMember) {
|
|
return visitor.visitInterfaceMember(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class OperationMemberContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public OPERATION(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.OPERATION, 0)!;
|
|
}
|
|
public identifier(): IdentifierContext {
|
|
return this.getRuleContext(0, IdentifierContext)!;
|
|
}
|
|
public ID(): antlr.TerminalNode[];
|
|
public ID(i: number): antlr.TerminalNode | null;
|
|
public ID(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] {
|
|
if (i === undefined) {
|
|
return this.getTokens(QuixosCapabilityParser.ID);
|
|
} else {
|
|
return this.getToken(QuixosCapabilityParser.ID, i);
|
|
}
|
|
}
|
|
public stringLiteral(): StringLiteralContext[];
|
|
public stringLiteral(i: number): StringLiteralContext | null;
|
|
public stringLiteral(i?: number): StringLiteralContext[] | StringLiteralContext | null {
|
|
if (i === undefined) {
|
|
return this.getRuleContexts(StringLiteralContext);
|
|
}
|
|
|
|
return this.getRuleContext(i, StringLiteralContext);
|
|
}
|
|
public COLON(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.COLON, 0)!;
|
|
}
|
|
public valueType(): ValueTypeContext[];
|
|
public valueType(i: number): ValueTypeContext | null;
|
|
public valueType(i?: number): ValueTypeContext[] | ValueTypeContext | null {
|
|
if (i === undefined) {
|
|
return this.getRuleContexts(ValueTypeContext);
|
|
}
|
|
|
|
return this.getRuleContext(i, ValueTypeContext);
|
|
}
|
|
public ARROW(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.ARROW, 0)!;
|
|
}
|
|
public LBRACE(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.LBRACE, 0)!;
|
|
}
|
|
public CALL(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.CALL, 0)!;
|
|
}
|
|
public SEMI(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.SEMI, 0)!;
|
|
}
|
|
public RBRACE(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.RBRACE, 0)!;
|
|
}
|
|
public STATIC(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.STATIC, 0);
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_operationMember;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitOperationMember) {
|
|
return visitor.visitOperationMember(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class ValueMemberContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public VALUE(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.VALUE, 0)!;
|
|
}
|
|
public identifier(): IdentifierContext {
|
|
return this.getRuleContext(0, IdentifierContext)!;
|
|
}
|
|
public ID(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.ID, 0)!;
|
|
}
|
|
public stringLiteral(): StringLiteralContext {
|
|
return this.getRuleContext(0, StringLiteralContext)!;
|
|
}
|
|
public COLON(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.COLON, 0)!;
|
|
}
|
|
public valueType(): ValueTypeContext {
|
|
return this.getRuleContext(0, ValueTypeContext)!;
|
|
}
|
|
public LBRACE(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.LBRACE, 0)!;
|
|
}
|
|
public RBRACE(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.RBRACE, 0)!;
|
|
}
|
|
public queryReadContract(): QueryReadContractContext | null {
|
|
return this.getRuleContext(0, QueryReadContractContext);
|
|
}
|
|
public valueMemberOperation(): ValueMemberOperationContext[];
|
|
public valueMemberOperation(i: number): ValueMemberOperationContext | null;
|
|
public valueMemberOperation(i?: number): ValueMemberOperationContext[] | ValueMemberOperationContext | null {
|
|
if (i === undefined) {
|
|
return this.getRuleContexts(ValueMemberOperationContext);
|
|
}
|
|
|
|
return this.getRuleContext(i, ValueMemberOperationContext);
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_valueMember;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitValueMember) {
|
|
return visitor.visitValueMember(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class ValueMemberOperationContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public GET(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.GET, 0);
|
|
}
|
|
public ID(): antlr.TerminalNode[];
|
|
public ID(i: number): antlr.TerminalNode | null;
|
|
public ID(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] {
|
|
if (i === undefined) {
|
|
return this.getTokens(QuixosCapabilityParser.ID);
|
|
} else {
|
|
return this.getToken(QuixosCapabilityParser.ID, i);
|
|
}
|
|
}
|
|
public stringLiteral(): StringLiteralContext[];
|
|
public stringLiteral(i: number): StringLiteralContext | null;
|
|
public stringLiteral(i?: number): StringLiteralContext[] | StringLiteralContext | null {
|
|
if (i === undefined) {
|
|
return this.getRuleContexts(StringLiteralContext);
|
|
}
|
|
|
|
return this.getRuleContext(i, StringLiteralContext);
|
|
}
|
|
public SEMI(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.SEMI, 0)!;
|
|
}
|
|
public SET(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.SET, 0);
|
|
}
|
|
public WATCH(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.WATCH, 0);
|
|
}
|
|
public START(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.START, 0);
|
|
}
|
|
public STOP(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.STOP, 0);
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_valueMemberOperation;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitValueMemberOperation) {
|
|
return visitor.visitValueMemberOperation(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class RelationshipMemberContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public RELATION(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.RELATION, 0)!;
|
|
}
|
|
public identifier(): IdentifierContext {
|
|
return this.getRuleContext(0, IdentifierContext)!;
|
|
}
|
|
public ID(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.ID, 0)!;
|
|
}
|
|
public stringLiteral(): StringLiteralContext {
|
|
return this.getRuleContext(0, StringLiteralContext)!;
|
|
}
|
|
public COLON(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.COLON, 0)!;
|
|
}
|
|
public cardinality(): CardinalityContext {
|
|
return this.getRuleContext(0, CardinalityContext)!;
|
|
}
|
|
public targetConstraint(): TargetConstraintContext {
|
|
return this.getRuleContext(0, TargetConstraintContext)!;
|
|
}
|
|
public LBRACE(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.LBRACE, 0)!;
|
|
}
|
|
public RBRACE(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.RBRACE, 0)!;
|
|
}
|
|
public queryReadContract(): QueryReadContractContext | null {
|
|
return this.getRuleContext(0, QueryReadContractContext);
|
|
}
|
|
public ORDERED(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.ORDERED, 0);
|
|
}
|
|
public relationshipOperation(): RelationshipOperationContext[];
|
|
public relationshipOperation(i: number): RelationshipOperationContext | null;
|
|
public relationshipOperation(i?: number): RelationshipOperationContext[] | RelationshipOperationContext | null {
|
|
if (i === undefined) {
|
|
return this.getRuleContexts(RelationshipOperationContext);
|
|
}
|
|
|
|
return this.getRuleContext(i, RelationshipOperationContext);
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_relationshipMember;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitRelationshipMember) {
|
|
return visitor.visitRelationshipMember(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class QueryReadContractContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public QUERYABLE(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.QUERYABLE, 0)!;
|
|
}
|
|
public RPC(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.RPC, 0);
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_queryReadContract;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitQueryReadContract) {
|
|
return visitor.visitQueryReadContract(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class RelationshipOperationContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public RESOLVE(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.RESOLVE, 0);
|
|
}
|
|
public ID(): antlr.TerminalNode[];
|
|
public ID(i: number): antlr.TerminalNode | null;
|
|
public ID(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] {
|
|
if (i === undefined) {
|
|
return this.getTokens(QuixosCapabilityParser.ID);
|
|
} else {
|
|
return this.getToken(QuixosCapabilityParser.ID, i);
|
|
}
|
|
}
|
|
public stringLiteral(): StringLiteralContext[];
|
|
public stringLiteral(i: number): StringLiteralContext | null;
|
|
public stringLiteral(i?: number): StringLiteralContext[] | StringLiteralContext | null {
|
|
if (i === undefined) {
|
|
return this.getRuleContexts(StringLiteralContext);
|
|
}
|
|
|
|
return this.getRuleContext(i, StringLiteralContext);
|
|
}
|
|
public SEMI(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.SEMI, 0)!;
|
|
}
|
|
public CONNECT(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.CONNECT, 0);
|
|
}
|
|
public DISCONNECT(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.DISCONNECT, 0);
|
|
}
|
|
public WATCH(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.WATCH, 0);
|
|
}
|
|
public START(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.START, 0);
|
|
}
|
|
public STOP(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.STOP, 0);
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_relationshipOperation;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitRelationshipOperation) {
|
|
return visitor.visitRelationshipOperation(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class TargetConstraintContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public ATOM(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.ATOM, 0);
|
|
}
|
|
public identifier(): IdentifierContext {
|
|
return this.getRuleContext(0, IdentifierContext)!;
|
|
}
|
|
public INTERFACE(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.INTERFACE, 0);
|
|
}
|
|
public typeArguments(): TypeArgumentsContext | null {
|
|
return this.getRuleContext(0, TypeArgumentsContext);
|
|
}
|
|
public OBJECT(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.OBJECT, 0);
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_targetConstraint;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitTargetConstraint) {
|
|
return visitor.visitTargetConstraint(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class PackageResourceDeclContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public PACKAGE(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.PACKAGE, 0)!;
|
|
}
|
|
public identifier(): IdentifierContext {
|
|
return this.getRuleContext(0, IdentifierContext)!;
|
|
}
|
|
public ID(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.ID, 0)!;
|
|
}
|
|
public stringLiteral(): StringLiteralContext[];
|
|
public stringLiteral(i: number): StringLiteralContext | null;
|
|
public stringLiteral(i?: number): StringLiteralContext[] | StringLiteralContext | null {
|
|
if (i === undefined) {
|
|
return this.getRuleContexts(StringLiteralContext);
|
|
}
|
|
|
|
return this.getRuleContext(i, StringLiteralContext);
|
|
}
|
|
public REVISION(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.REVISION, 0)!;
|
|
}
|
|
public LBRACE(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.LBRACE, 0)!;
|
|
}
|
|
public RBRACE(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.RBRACE, 0)!;
|
|
}
|
|
public resourcePreamble(): ResourcePreambleContext[];
|
|
public resourcePreamble(i: number): ResourcePreambleContext | null;
|
|
public resourcePreamble(i?: number): ResourcePreambleContext[] | ResourcePreambleContext | null {
|
|
if (i === undefined) {
|
|
return this.getRuleContexts(ResourcePreambleContext);
|
|
}
|
|
|
|
return this.getRuleContext(i, ResourcePreambleContext);
|
|
}
|
|
public SEMANTIC_MAJOR(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.SEMANTIC_MAJOR, 0);
|
|
}
|
|
public INTEGER(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.INTEGER, 0);
|
|
}
|
|
public packageExport(): PackageExportContext[];
|
|
public packageExport(i: number): PackageExportContext | null;
|
|
public packageExport(i?: number): PackageExportContext[] | PackageExportContext | null {
|
|
if (i === undefined) {
|
|
return this.getRuleContexts(PackageExportContext);
|
|
}
|
|
|
|
return this.getRuleContext(i, PackageExportContext);
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_packageResourceDecl;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitPackageResourceDecl) {
|
|
return visitor.visitPackageResourceDecl(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class PackageExportContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public packageOperationExport(): PackageOperationExportContext | null {
|
|
return this.getRuleContext(0, PackageOperationExportContext);
|
|
}
|
|
public packageFunctionExport(): PackageFunctionExportContext | null {
|
|
return this.getRuleContext(0, PackageFunctionExportContext);
|
|
}
|
|
public packageConstructorExport(): PackageConstructorExportContext | null {
|
|
return this.getRuleContext(0, PackageConstructorExportContext);
|
|
}
|
|
public packageQuery(): PackageQueryContext | null {
|
|
return this.getRuleContext(0, PackageQueryContext);
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_packageExport;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitPackageExport) {
|
|
return visitor.visitPackageExport(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class PackageQueryContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public QUERY(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.QUERY, 0)!;
|
|
}
|
|
public identifier(): IdentifierContext {
|
|
return this.getRuleContext(0, IdentifierContext)!;
|
|
}
|
|
public ID(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.ID, 0)!;
|
|
}
|
|
public stringLiteral(): StringLiteralContext[];
|
|
public stringLiteral(i: number): StringLiteralContext | null;
|
|
public stringLiteral(i?: number): StringLiteralContext[] | StringLiteralContext | null {
|
|
if (i === undefined) {
|
|
return this.getRuleContexts(StringLiteralContext);
|
|
}
|
|
|
|
return this.getRuleContext(i, StringLiteralContext);
|
|
}
|
|
public ROOT(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.ROOT, 0)!;
|
|
}
|
|
public interfaceType(): InterfaceTypeContext {
|
|
return this.getRuleContext(0, InterfaceTypeContext)!;
|
|
}
|
|
public DOCUMENT(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.DOCUMENT, 0)!;
|
|
}
|
|
public OPERATION(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.OPERATION, 0)!;
|
|
}
|
|
public LBRACE(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.LBRACE, 0)!;
|
|
}
|
|
public RBRACE(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.RBRACE, 0)!;
|
|
}
|
|
public queryClause(): QueryClauseContext[];
|
|
public queryClause(i: number): QueryClauseContext | null;
|
|
public queryClause(i?: number): QueryClauseContext[] | QueryClauseContext | null {
|
|
if (i === undefined) {
|
|
return this.getRuleContexts(QueryClauseContext);
|
|
}
|
|
|
|
return this.getRuleContext(i, QueryClauseContext);
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_packageQuery;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitPackageQuery) {
|
|
return visitor.visitPackageQuery(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class QueryClauseContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public FRAGMENTS(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.FRAGMENTS, 0);
|
|
}
|
|
public stringLiteral(): StringLiteralContext | null {
|
|
return this.getRuleContext(0, StringLiteralContext);
|
|
}
|
|
public SEMI(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.SEMI, 0)!;
|
|
}
|
|
public VIEW(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.VIEW, 0);
|
|
}
|
|
public identifier(): IdentifierContext[];
|
|
public identifier(i: number): IdentifierContext | null;
|
|
public identifier(i?: number): IdentifierContext[] | IdentifierContext | null {
|
|
if (i === undefined) {
|
|
return this.getRuleContexts(IdentifierContext);
|
|
}
|
|
|
|
return this.getRuleContext(i, IdentifierContext);
|
|
}
|
|
public AS(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.AS, 0);
|
|
}
|
|
public interfaceType(): InterfaceTypeContext | null {
|
|
return this.getRuleContext(0, InterfaceTypeContext);
|
|
}
|
|
public MAX(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.MAX, 0);
|
|
}
|
|
public INTEGER(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.INTEGER, 0);
|
|
}
|
|
public ALLOW(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.ALLOW, 0);
|
|
}
|
|
public DOT(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.DOT, 0);
|
|
}
|
|
public WATCH(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.WATCH, 0);
|
|
}
|
|
public POLL(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.POLL, 0);
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_queryClause;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitQueryClause) {
|
|
return visitor.visitQueryClause(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class PackageOperationExportContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public OPERATION(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.OPERATION, 0)!;
|
|
}
|
|
public identifier(): IdentifierContext {
|
|
return this.getRuleContext(0, IdentifierContext)!;
|
|
}
|
|
public ID(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.ID, 0)!;
|
|
}
|
|
public stringLiteral(): StringLiteralContext {
|
|
return this.getRuleContext(0, StringLiteralContext)!;
|
|
}
|
|
public COLON(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.COLON, 0)!;
|
|
}
|
|
public valueType(): ValueTypeContext[];
|
|
public valueType(i: number): ValueTypeContext | null;
|
|
public valueType(i?: number): ValueTypeContext[] | ValueTypeContext | null {
|
|
if (i === undefined) {
|
|
return this.getRuleContexts(ValueTypeContext);
|
|
}
|
|
|
|
return this.getRuleContext(i, ValueTypeContext);
|
|
}
|
|
public ARROW(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.ARROW, 0)!;
|
|
}
|
|
public MODE(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.MODE, 0)!;
|
|
}
|
|
public operationMode(): OperationModeContext {
|
|
return this.getRuleContext(0, OperationModeContext)!;
|
|
}
|
|
public RECEIVER(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.RECEIVER, 0)!;
|
|
}
|
|
public receiverRequirement(): ReceiverRequirementContext {
|
|
return this.getRuleContext(0, ReceiverRequirementContext)!;
|
|
}
|
|
public SEMI(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.SEMI, 0)!;
|
|
}
|
|
public typeParameters(): TypeParametersContext | null {
|
|
return this.getRuleContext(0, TypeParametersContext);
|
|
}
|
|
public eventClause(): EventClauseContext | null {
|
|
return this.getRuleContext(0, EventClauseContext);
|
|
}
|
|
public dependencyBlock(): DependencyBlockContext | null {
|
|
return this.getRuleContext(0, DependencyBlockContext);
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_packageOperationExport;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitPackageOperationExport) {
|
|
return visitor.visitPackageOperationExport(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class PackageFunctionExportContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public FUNCTION(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.FUNCTION, 0)!;
|
|
}
|
|
public identifier(): IdentifierContext {
|
|
return this.getRuleContext(0, IdentifierContext)!;
|
|
}
|
|
public ID(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.ID, 0)!;
|
|
}
|
|
public stringLiteral(): StringLiteralContext {
|
|
return this.getRuleContext(0, StringLiteralContext)!;
|
|
}
|
|
public COLON(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.COLON, 0)!;
|
|
}
|
|
public valueType(): ValueTypeContext[];
|
|
public valueType(i: number): ValueTypeContext | null;
|
|
public valueType(i?: number): ValueTypeContext[] | ValueTypeContext | null {
|
|
if (i === undefined) {
|
|
return this.getRuleContexts(ValueTypeContext);
|
|
}
|
|
|
|
return this.getRuleContext(i, ValueTypeContext);
|
|
}
|
|
public ARROW(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.ARROW, 0)!;
|
|
}
|
|
public SEMI(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.SEMI, 0)!;
|
|
}
|
|
public typeParameters(): TypeParametersContext | null {
|
|
return this.getRuleContext(0, TypeParametersContext);
|
|
}
|
|
public dependencyBlock(): DependencyBlockContext | null {
|
|
return this.getRuleContext(0, DependencyBlockContext);
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_packageFunctionExport;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitPackageFunctionExport) {
|
|
return visitor.visitPackageFunctionExport(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class PackageConstructorExportContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public CONSTRUCTOR(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.CONSTRUCTOR, 0)!;
|
|
}
|
|
public identifier(): IdentifierContext[];
|
|
public identifier(i: number): IdentifierContext | null;
|
|
public identifier(i?: number): IdentifierContext[] | IdentifierContext | null {
|
|
if (i === undefined) {
|
|
return this.getRuleContexts(IdentifierContext);
|
|
}
|
|
|
|
return this.getRuleContext(i, IdentifierContext);
|
|
}
|
|
public ID(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.ID, 0)!;
|
|
}
|
|
public stringLiteral(): StringLiteralContext {
|
|
return this.getRuleContext(0, StringLiteralContext)!;
|
|
}
|
|
public CONSTRUCTS(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.CONSTRUCTS, 0)!;
|
|
}
|
|
public COLON(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.COLON, 0)!;
|
|
}
|
|
public valueType(): ValueTypeContext {
|
|
return this.getRuleContext(0, ValueTypeContext)!;
|
|
}
|
|
public SEMI(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.SEMI, 0)!;
|
|
}
|
|
public dependencyBlock(): DependencyBlockContext | null {
|
|
return this.getRuleContext(0, DependencyBlockContext);
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_packageConstructorExport;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitPackageConstructorExport) {
|
|
return visitor.visitPackageConstructorExport(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class EventClauseContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public EMITS(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.EMITS, 0)!;
|
|
}
|
|
public valueType(): ValueTypeContext {
|
|
return this.getRuleContext(0, ValueTypeContext)!;
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_eventClause;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitEventClause) {
|
|
return visitor.visitEventClause(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class OperationModeContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public CALL(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.CALL, 0);
|
|
}
|
|
public WATCH_START(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.WATCH_START, 0);
|
|
}
|
|
public WATCH_STOP(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.WATCH_STOP, 0);
|
|
}
|
|
public SUBSCRIBE(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.SUBSCRIBE, 0);
|
|
}
|
|
public UNSUBSCRIBE(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.UNSUBSCRIBE, 0);
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_operationMode;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitOperationMode) {
|
|
return visitor.visitOperationMode(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class ReceiverRequirementContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public ANY(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.ANY, 0);
|
|
}
|
|
public ATOM(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.ATOM, 0);
|
|
}
|
|
public identifier(): IdentifierContext | null {
|
|
return this.getRuleContext(0, IdentifierContext);
|
|
}
|
|
public OBJECT(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.OBJECT, 0);
|
|
}
|
|
public INTERFACES(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.INTERFACES, 0);
|
|
}
|
|
public LBRACK(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.LBRACK, 0);
|
|
}
|
|
public RBRACK(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.RBRACK, 0);
|
|
}
|
|
public interfaceType(): InterfaceTypeContext[];
|
|
public interfaceType(i: number): InterfaceTypeContext | null;
|
|
public interfaceType(i?: number): InterfaceTypeContext[] | InterfaceTypeContext | null {
|
|
if (i === undefined) {
|
|
return this.getRuleContexts(InterfaceTypeContext);
|
|
}
|
|
|
|
return this.getRuleContext(i, InterfaceTypeContext);
|
|
}
|
|
public COMMA(): antlr.TerminalNode[];
|
|
public COMMA(i: number): antlr.TerminalNode | null;
|
|
public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] {
|
|
if (i === undefined) {
|
|
return this.getTokens(QuixosCapabilityParser.COMMA);
|
|
} else {
|
|
return this.getToken(QuixosCapabilityParser.COMMA, i);
|
|
}
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_receiverRequirement;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitReceiverRequirement) {
|
|
return visitor.visitReceiverRequirement(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class IdentifierListContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public identifier(): IdentifierContext[];
|
|
public identifier(i: number): IdentifierContext | null;
|
|
public identifier(i?: number): IdentifierContext[] | IdentifierContext | null {
|
|
if (i === undefined) {
|
|
return this.getRuleContexts(IdentifierContext);
|
|
}
|
|
|
|
return this.getRuleContext(i, IdentifierContext);
|
|
}
|
|
public COMMA(): antlr.TerminalNode[];
|
|
public COMMA(i: number): antlr.TerminalNode | null;
|
|
public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] {
|
|
if (i === undefined) {
|
|
return this.getTokens(QuixosCapabilityParser.COMMA);
|
|
} else {
|
|
return this.getToken(QuixosCapabilityParser.COMMA, i);
|
|
}
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_identifierList;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitIdentifierList) {
|
|
return visitor.visitIdentifierList(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class DependencyBlockContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public REQUIRES(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.REQUIRES, 0)!;
|
|
}
|
|
public LBRACE(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.LBRACE, 0)!;
|
|
}
|
|
public RBRACE(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.RBRACE, 0)!;
|
|
}
|
|
public dependencyPort(): DependencyPortContext[];
|
|
public dependencyPort(i: number): DependencyPortContext | null;
|
|
public dependencyPort(i?: number): DependencyPortContext[] | DependencyPortContext | null {
|
|
if (i === undefined) {
|
|
return this.getRuleContexts(DependencyPortContext);
|
|
}
|
|
|
|
return this.getRuleContext(i, DependencyPortContext);
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_dependencyBlock;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitDependencyBlock) {
|
|
return visitor.visitDependencyBlock(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class DependencyPortContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public STATE(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.STATE, 0);
|
|
}
|
|
public identifier(): IdentifierContext[];
|
|
public identifier(i: number): IdentifierContext | null;
|
|
public identifier(i?: number): IdentifierContext[] | IdentifierContext | null {
|
|
if (i === undefined) {
|
|
return this.getRuleContexts(IdentifierContext);
|
|
}
|
|
|
|
return this.getRuleContext(i, IdentifierContext);
|
|
}
|
|
public ID(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.ID, 0)!;
|
|
}
|
|
public stringLiteral(): StringLiteralContext {
|
|
return this.getRuleContext(0, StringLiteralContext)!;
|
|
}
|
|
public COLON(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.COLON, 0)!;
|
|
}
|
|
public valueType(): ValueTypeContext | null {
|
|
return this.getRuleContext(0, ValueTypeContext);
|
|
}
|
|
public primitiveList(): PrimitiveListContext | null {
|
|
return this.getRuleContext(0, PrimitiveListContext);
|
|
}
|
|
public SEMI(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.SEMI, 0)!;
|
|
}
|
|
public EDGE(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.EDGE, 0);
|
|
}
|
|
public cardinality(): CardinalityContext | null {
|
|
return this.getRuleContext(0, CardinalityContext);
|
|
}
|
|
public targetConstraint(): TargetConstraintContext | null {
|
|
return this.getRuleContext(0, TargetConstraintContext);
|
|
}
|
|
public INTERFACE(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.INTERFACE, 0);
|
|
}
|
|
public typeArguments(): TypeArgumentsContext | null {
|
|
return this.getRuleContext(0, TypeArgumentsContext);
|
|
}
|
|
public CONSTRUCTOR(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.CONSTRUCTOR, 0);
|
|
}
|
|
public INPUT(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.INPUT, 0);
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_dependencyPort;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitDependencyPort) {
|
|
return visitor.visitDependencyPort(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class PrimitiveListContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public LBRACK(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.LBRACK, 0)!;
|
|
}
|
|
public primitive(): PrimitiveContext[];
|
|
public primitive(i: number): PrimitiveContext | null;
|
|
public primitive(i?: number): PrimitiveContext[] | PrimitiveContext | null {
|
|
if (i === undefined) {
|
|
return this.getRuleContexts(PrimitiveContext);
|
|
}
|
|
|
|
return this.getRuleContext(i, PrimitiveContext);
|
|
}
|
|
public RBRACK(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.RBRACK, 0)!;
|
|
}
|
|
public COMMA(): antlr.TerminalNode[];
|
|
public COMMA(i: number): antlr.TerminalNode | null;
|
|
public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] {
|
|
if (i === undefined) {
|
|
return this.getTokens(QuixosCapabilityParser.COMMA);
|
|
} else {
|
|
return this.getToken(QuixosCapabilityParser.COMMA, i);
|
|
}
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_primitiveList;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitPrimitiveList) {
|
|
return visitor.visitPrimitiveList(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class PrimitiveContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public READ(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.READ, 0);
|
|
}
|
|
public WRITE(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.WRITE, 0);
|
|
}
|
|
public RESOLVE(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.RESOLVE, 0);
|
|
}
|
|
public CONNECT(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.CONNECT, 0);
|
|
}
|
|
public DISCONNECT(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.DISCONNECT, 0);
|
|
}
|
|
public WATCH_START(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.WATCH_START, 0);
|
|
}
|
|
public WATCH_STOP(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.WATCH_STOP, 0);
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_primitive;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitPrimitive) {
|
|
return visitor.visitPrimitive(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class SharedAttachmentDeclContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public SHARED(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.SHARED, 0)!;
|
|
}
|
|
public attachmentDecl(): AttachmentDeclContext {
|
|
return this.getRuleContext(0, AttachmentDeclContext)!;
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_sharedAttachmentDecl;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitSharedAttachmentDecl) {
|
|
return visitor.visitSharedAttachmentDecl(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class AttachmentDeclContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public stateDecl(): StateDeclContext | null {
|
|
return this.getRuleContext(0, StateDeclContext);
|
|
}
|
|
public edgeDecl(): EdgeDeclContext | null {
|
|
return this.getRuleContext(0, EdgeDeclContext);
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_attachmentDecl;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitAttachmentDecl) {
|
|
return visitor.visitAttachmentDecl(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class StateDeclContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public STATE(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.STATE, 0)!;
|
|
}
|
|
public identifier(): IdentifierContext[];
|
|
public identifier(i: number): IdentifierContext | null;
|
|
public identifier(i?: number): IdentifierContext[] | IdentifierContext | null {
|
|
if (i === undefined) {
|
|
return this.getRuleContexts(IdentifierContext);
|
|
}
|
|
|
|
return this.getRuleContext(i, IdentifierContext);
|
|
}
|
|
public ID(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.ID, 0)!;
|
|
}
|
|
public stringLiteral(): StringLiteralContext {
|
|
return this.getRuleContext(0, StringLiteralContext)!;
|
|
}
|
|
public ON(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.ON, 0)!;
|
|
}
|
|
public COLON(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.COLON, 0)!;
|
|
}
|
|
public valueType(): ValueTypeContext {
|
|
return this.getRuleContext(0, ValueTypeContext)!;
|
|
}
|
|
public POLICY(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.POLICY, 0)!;
|
|
}
|
|
public storagePolicy(): StoragePolicyContext {
|
|
return this.getRuleContext(0, StoragePolicyContext)!;
|
|
}
|
|
public SEMI(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.SEMI, 0)!;
|
|
}
|
|
public DEFAULT(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.DEFAULT, 0);
|
|
}
|
|
public jsonLiteral(): JsonLiteralContext | null {
|
|
return this.getRuleContext(0, JsonLiteralContext);
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_stateDecl;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitStateDecl) {
|
|
return visitor.visitStateDecl(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class StoragePolicyContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public OPTIMISTIC_REGISTER(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.OPTIMISTIC_REGISTER, 0);
|
|
}
|
|
public CRDT(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.CRDT, 0);
|
|
}
|
|
public LPAREN(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.LPAREN, 0);
|
|
}
|
|
public valueType(): ValueTypeContext | null {
|
|
return this.getRuleContext(0, ValueTypeContext);
|
|
}
|
|
public RPAREN(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.RPAREN, 0);
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_storagePolicy;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitStoragePolicy) {
|
|
return visitor.visitStoragePolicy(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class EdgeDeclContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public EDGE(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.EDGE, 0)!;
|
|
}
|
|
public identifier(): IdentifierContext {
|
|
return this.getRuleContext(0, IdentifierContext)!;
|
|
}
|
|
public ID(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.ID, 0)!;
|
|
}
|
|
public stringLiteral(): StringLiteralContext {
|
|
return this.getRuleContext(0, StringLiteralContext)!;
|
|
}
|
|
public LBRACE(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.LBRACE, 0)!;
|
|
}
|
|
public edgeEndpoint(): EdgeEndpointContext[];
|
|
public edgeEndpoint(i: number): EdgeEndpointContext | null;
|
|
public edgeEndpoint(i?: number): EdgeEndpointContext[] | EdgeEndpointContext | null {
|
|
if (i === undefined) {
|
|
return this.getRuleContexts(EdgeEndpointContext);
|
|
}
|
|
|
|
return this.getRuleContext(i, EdgeEndpointContext);
|
|
}
|
|
public RBRACE(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.RBRACE, 0)!;
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_edgeDecl;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitEdgeDecl) {
|
|
return visitor.visitEdgeDecl(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class EdgeEndpointContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public targetConstraint(): TargetConstraintContext {
|
|
return this.getRuleContext(0, TargetConstraintContext)!;
|
|
}
|
|
public PROJECTION(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.PROJECTION, 0)!;
|
|
}
|
|
public identifier(): IdentifierContext {
|
|
return this.getRuleContext(0, IdentifierContext)!;
|
|
}
|
|
public ID(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.ID, 0)!;
|
|
}
|
|
public stringLiteral(): StringLiteralContext[];
|
|
public stringLiteral(i: number): StringLiteralContext | null;
|
|
public stringLiteral(i?: number): StringLiteralContext[] | StringLiteralContext | null {
|
|
if (i === undefined) {
|
|
return this.getRuleContexts(StringLiteralContext);
|
|
}
|
|
|
|
return this.getRuleContext(i, StringLiteralContext);
|
|
}
|
|
public cardinality(): CardinalityContext {
|
|
return this.getRuleContext(0, CardinalityContext)!;
|
|
}
|
|
public SEMI(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.SEMI, 0)!;
|
|
}
|
|
public ORDERED(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.ORDERED, 0);
|
|
}
|
|
public ON_DELETE(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.ON_DELETE, 0);
|
|
}
|
|
public RETAIN_OTHER(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.RETAIN_OTHER, 0);
|
|
}
|
|
public KEYED(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.KEYED, 0);
|
|
}
|
|
public PUBLIC_TRAVERSAL(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.PUBLIC_TRAVERSAL, 0);
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_edgeEndpoint;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitEdgeEndpoint) {
|
|
return visitor.visitEdgeEndpoint(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class ConformanceDeclContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public CONFORM(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.CONFORM, 0)!;
|
|
}
|
|
public identifier(): IdentifierContext[];
|
|
public identifier(i: number): IdentifierContext | null;
|
|
public identifier(i?: number): IdentifierContext[] | IdentifierContext | null {
|
|
if (i === undefined) {
|
|
return this.getRuleContexts(IdentifierContext);
|
|
}
|
|
|
|
return this.getRuleContext(i, IdentifierContext);
|
|
}
|
|
public AS(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.AS, 0)!;
|
|
}
|
|
public LBRACE(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.LBRACE, 0)!;
|
|
}
|
|
public RBRACE(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.RBRACE, 0)!;
|
|
}
|
|
public typeArguments(): TypeArgumentsContext | null {
|
|
return this.getRuleContext(0, TypeArgumentsContext);
|
|
}
|
|
public ID(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.ID, 0);
|
|
}
|
|
public stringLiteral(): StringLiteralContext | null {
|
|
return this.getRuleContext(0, StringLiteralContext);
|
|
}
|
|
public SEMANTIC_MAJOR(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.SEMANTIC_MAJOR, 0);
|
|
}
|
|
public INTEGER(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.INTEGER, 0);
|
|
}
|
|
public conformanceItem(): ConformanceItemContext[];
|
|
public conformanceItem(i: number): ConformanceItemContext | null;
|
|
public conformanceItem(i?: number): ConformanceItemContext[] | ConformanceItemContext | null {
|
|
if (i === undefined) {
|
|
return this.getRuleContexts(ConformanceItemContext);
|
|
}
|
|
|
|
return this.getRuleContext(i, ConformanceItemContext);
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_conformanceDecl;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitConformanceDecl) {
|
|
return visitor.visitConformanceDecl(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class ConformanceItemContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public PRIVATE(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.PRIVATE, 0);
|
|
}
|
|
public attachmentDecl(): AttachmentDeclContext | null {
|
|
return this.getRuleContext(0, AttachmentDeclContext);
|
|
}
|
|
public operationBindingDecl(): OperationBindingDeclContext | null {
|
|
return this.getRuleContext(0, OperationBindingDeclContext);
|
|
}
|
|
public stateFieldBindingDecl(): StateFieldBindingDeclContext | null {
|
|
return this.getRuleContext(0, StateFieldBindingDeclContext);
|
|
}
|
|
public relationshipMaterializationDecl(): RelationshipMaterializationDeclContext | null {
|
|
return this.getRuleContext(0, RelationshipMaterializationDeclContext);
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_conformanceItem;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitConformanceItem) {
|
|
return visitor.visitConformanceItem(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class StateFieldBindingDeclContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public BIND(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.BIND, 0)!;
|
|
}
|
|
public identifier(): IdentifierContext[];
|
|
public identifier(i: number): IdentifierContext | null;
|
|
public identifier(i?: number): IdentifierContext[] | IdentifierContext | null {
|
|
if (i === undefined) {
|
|
return this.getRuleContexts(IdentifierContext);
|
|
}
|
|
|
|
return this.getRuleContext(i, IdentifierContext);
|
|
}
|
|
public TO(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.TO, 0)!;
|
|
}
|
|
public STATE(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.STATE, 0)!;
|
|
}
|
|
public SEMI(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.SEMI, 0)!;
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_stateFieldBindingDecl;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitStateFieldBindingDecl) {
|
|
return visitor.visitStateFieldBindingDecl(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class RelationshipMaterializationDeclContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public MATERIALIZE(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.MATERIALIZE, 0)!;
|
|
}
|
|
public identifier(): IdentifierContext[];
|
|
public identifier(i: number): IdentifierContext | null;
|
|
public identifier(i?: number): IdentifierContext[] | IdentifierContext | null {
|
|
if (i === undefined) {
|
|
return this.getRuleContexts(IdentifierContext);
|
|
}
|
|
|
|
return this.getRuleContext(i, IdentifierContext);
|
|
}
|
|
public IF(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.IF, 0)!;
|
|
}
|
|
public ABSENT(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.ABSENT, 0)!;
|
|
}
|
|
public USING(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.USING, 0)!;
|
|
}
|
|
public CONSTRUCTOR(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.CONSTRUCTOR, 0)!;
|
|
}
|
|
public VIA(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.VIA, 0)!;
|
|
}
|
|
public EDGE(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.EDGE, 0)!;
|
|
}
|
|
public DOT(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.DOT, 0)!;
|
|
}
|
|
public SEMI(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.SEMI, 0)!;
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_relationshipMaterializationDecl;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitRelationshipMaterializationDecl) {
|
|
return visitor.visitRelationshipMaterializationDecl(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class OperationBindingDeclContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public BIND(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.BIND, 0)!;
|
|
}
|
|
public memberOperationRef(): MemberOperationRefContext {
|
|
return this.getRuleContext(0, MemberOperationRefContext)!;
|
|
}
|
|
public TO(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.TO, 0)!;
|
|
}
|
|
public operationProvider(): OperationProviderContext {
|
|
return this.getRuleContext(0, OperationProviderContext)!;
|
|
}
|
|
public SEMI(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.SEMI, 0)!;
|
|
}
|
|
public QUERY_REASON(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.QUERY_REASON, 0);
|
|
}
|
|
public stringLiteral(): StringLiteralContext | null {
|
|
return this.getRuleContext(0, StringLiteralContext);
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_operationBindingDecl;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitOperationBindingDecl) {
|
|
return visitor.visitOperationBindingDecl(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class MemberOperationRefContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public identifier(): IdentifierContext {
|
|
return this.getRuleContext(0, IdentifierContext)!;
|
|
}
|
|
public DOT(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.DOT, 0)!;
|
|
}
|
|
public operationName(): OperationNameContext {
|
|
return this.getRuleContext(0, OperationNameContext)!;
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_memberOperationRef;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitMemberOperationRef) {
|
|
return visitor.visitMemberOperationRef(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class OperationNameContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public identifier(): IdentifierContext | null {
|
|
return this.getRuleContext(0, IdentifierContext);
|
|
}
|
|
public CALL(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.CALL, 0);
|
|
}
|
|
public GET(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.GET, 0);
|
|
}
|
|
public SET(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.SET, 0);
|
|
}
|
|
public RESOLVE(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.RESOLVE, 0);
|
|
}
|
|
public CONNECT(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.CONNECT, 0);
|
|
}
|
|
public DISCONNECT(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.DISCONNECT, 0);
|
|
}
|
|
public WATCH_START(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.WATCH_START, 0);
|
|
}
|
|
public WATCH_STOP(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.WATCH_STOP, 0);
|
|
}
|
|
public SUBSCRIBE(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.SUBSCRIBE, 0);
|
|
}
|
|
public UNSUBSCRIBE(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.UNSUBSCRIBE, 0);
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_operationName;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitOperationName) {
|
|
return visitor.visitOperationName(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class OperationProviderContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public STATE(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.STATE, 0);
|
|
}
|
|
public identifier(): IdentifierContext[];
|
|
public identifier(i: number): IdentifierContext | null;
|
|
public identifier(i?: number): IdentifierContext[] | IdentifierContext | null {
|
|
if (i === undefined) {
|
|
return this.getRuleContexts(IdentifierContext);
|
|
}
|
|
|
|
return this.getRuleContext(i, IdentifierContext);
|
|
}
|
|
public DOT(): antlr.TerminalNode[];
|
|
public DOT(i: number): antlr.TerminalNode | null;
|
|
public DOT(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] {
|
|
if (i === undefined) {
|
|
return this.getTokens(QuixosCapabilityParser.DOT);
|
|
} else {
|
|
return this.getToken(QuixosCapabilityParser.DOT, i);
|
|
}
|
|
}
|
|
public statePrimitive(): StatePrimitiveContext | null {
|
|
return this.getRuleContext(0, StatePrimitiveContext);
|
|
}
|
|
public EDGE(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.EDGE, 0);
|
|
}
|
|
public edgePrimitive(): EdgePrimitiveContext | null {
|
|
return this.getRuleContext(0, EdgePrimitiveContext);
|
|
}
|
|
public PACKAGE(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.PACKAGE, 0);
|
|
}
|
|
public typeArguments(): TypeArgumentsContext | null {
|
|
return this.getRuleContext(0, TypeArgumentsContext);
|
|
}
|
|
public dependencyBindingBlock(): DependencyBindingBlockContext | null {
|
|
return this.getRuleContext(0, DependencyBindingBlockContext);
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_operationProvider;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitOperationProvider) {
|
|
return visitor.visitOperationProvider(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class StatePrimitiveContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public READ(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.READ, 0);
|
|
}
|
|
public WRITE(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.WRITE, 0);
|
|
}
|
|
public WATCH_START(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.WATCH_START, 0);
|
|
}
|
|
public WATCH_STOP(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.WATCH_STOP, 0);
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_statePrimitive;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitStatePrimitive) {
|
|
return visitor.visitStatePrimitive(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class EdgePrimitiveContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public RESOLVE(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.RESOLVE, 0);
|
|
}
|
|
public CONNECT(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.CONNECT, 0);
|
|
}
|
|
public DISCONNECT(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.DISCONNECT, 0);
|
|
}
|
|
public WATCH_START(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.WATCH_START, 0);
|
|
}
|
|
public WATCH_STOP(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.WATCH_STOP, 0);
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_edgePrimitive;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitEdgePrimitive) {
|
|
return visitor.visitEdgePrimitive(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class DependencyBindingBlockContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public WITH(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.WITH, 0)!;
|
|
}
|
|
public LBRACE(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.LBRACE, 0)!;
|
|
}
|
|
public RBRACE(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.RBRACE, 0)!;
|
|
}
|
|
public dependencyBinding(): DependencyBindingContext[];
|
|
public dependencyBinding(i: number): DependencyBindingContext | null;
|
|
public dependencyBinding(i?: number): DependencyBindingContext[] | DependencyBindingContext | null {
|
|
if (i === undefined) {
|
|
return this.getRuleContexts(DependencyBindingContext);
|
|
}
|
|
|
|
return this.getRuleContext(i, DependencyBindingContext);
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_dependencyBindingBlock;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitDependencyBindingBlock) {
|
|
return visitor.visitDependencyBindingBlock(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class DependencyBindingContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public identifier(): IdentifierContext[];
|
|
public identifier(i: number): IdentifierContext | null;
|
|
public identifier(i?: number): IdentifierContext[] | IdentifierContext | null {
|
|
if (i === undefined) {
|
|
return this.getRuleContexts(IdentifierContext);
|
|
}
|
|
|
|
return this.getRuleContext(i, IdentifierContext);
|
|
}
|
|
public TO(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.TO, 0)!;
|
|
}
|
|
public STATE(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.STATE, 0);
|
|
}
|
|
public SEMI(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.SEMI, 0)!;
|
|
}
|
|
public VIA(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.VIA, 0);
|
|
}
|
|
public EDGE(): antlr.TerminalNode[];
|
|
public EDGE(i: number): antlr.TerminalNode | null;
|
|
public EDGE(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] {
|
|
if (i === undefined) {
|
|
return this.getTokens(QuixosCapabilityParser.EDGE);
|
|
} else {
|
|
return this.getToken(QuixosCapabilityParser.EDGE, i);
|
|
}
|
|
}
|
|
public DOT(): antlr.TerminalNode[];
|
|
public DOT(i: number): antlr.TerminalNode | null;
|
|
public DOT(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] {
|
|
if (i === undefined) {
|
|
return this.getTokens(QuixosCapabilityParser.DOT);
|
|
} else {
|
|
return this.getToken(QuixosCapabilityParser.DOT, i);
|
|
}
|
|
}
|
|
public INTERFACE(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.INTERFACE, 0);
|
|
}
|
|
public typeArguments(): TypeArgumentsContext | null {
|
|
return this.getRuleContext(0, TypeArgumentsContext);
|
|
}
|
|
public CONSTRUCTOR(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.CONSTRUCTOR, 0);
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_dependencyBinding;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitDependencyBinding) {
|
|
return visitor.visitDependencyBinding(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class ConstructorBindingDeclContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public CONSTRUCTOR(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.CONSTRUCTOR, 0)!;
|
|
}
|
|
public identifier(): IdentifierContext[];
|
|
public identifier(i: number): IdentifierContext | null;
|
|
public identifier(i?: number): IdentifierContext[] | IdentifierContext | null {
|
|
if (i === undefined) {
|
|
return this.getRuleContexts(IdentifierContext);
|
|
}
|
|
|
|
return this.getRuleContext(i, IdentifierContext);
|
|
}
|
|
public TO(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.TO, 0)!;
|
|
}
|
|
public DOT(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.DOT, 0)!;
|
|
}
|
|
public SEMI(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.SEMI, 0)!;
|
|
}
|
|
public dependencyBindingBlock(): DependencyBindingBlockContext | null {
|
|
return this.getRuleContext(0, DependencyBindingBlockContext);
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_constructorBindingDecl;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitConstructorBindingDecl) {
|
|
return visitor.visitConstructorBindingDecl(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class ValueTypeContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public scalarType(): ScalarTypeContext | null {
|
|
return this.getRuleContext(0, ScalarTypeContext);
|
|
}
|
|
public UNIT(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.UNIT, 0);
|
|
}
|
|
public WATCH_HANDLE(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.WATCH_HANDLE, 0);
|
|
}
|
|
public MESSAGE(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.MESSAGE, 0);
|
|
}
|
|
public stringLiteral(): StringLiteralContext | null {
|
|
return this.getRuleContext(0, StringLiteralContext);
|
|
}
|
|
public ATOM_REF(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.ATOM_REF, 0);
|
|
}
|
|
public LT(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.LT, 0);
|
|
}
|
|
public identifier(): IdentifierContext | null {
|
|
return this.getRuleContext(0, IdentifierContext);
|
|
}
|
|
public GT(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.GT, 0);
|
|
}
|
|
public INTERFACE_REF(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.INTERFACE_REF, 0);
|
|
}
|
|
public typeArguments(): TypeArgumentsContext | null {
|
|
return this.getRuleContext(0, TypeArgumentsContext);
|
|
}
|
|
public REF(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.REF, 0);
|
|
}
|
|
public OPTIONAL(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.OPTIONAL, 0);
|
|
}
|
|
public valueType(): ValueTypeContext | null {
|
|
return this.getRuleContext(0, ValueTypeContext);
|
|
}
|
|
public LIST(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.LIST, 0);
|
|
}
|
|
public RECORD(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.RECORD, 0);
|
|
}
|
|
public LBRACE(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.LBRACE, 0);
|
|
}
|
|
public RBRACE(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.RBRACE, 0);
|
|
}
|
|
public recordField(): RecordFieldContext[];
|
|
public recordField(i: number): RecordFieldContext | null;
|
|
public recordField(i?: number): RecordFieldContext[] | RecordFieldContext | null {
|
|
if (i === undefined) {
|
|
return this.getRuleContexts(RecordFieldContext);
|
|
}
|
|
|
|
return this.getRuleContext(i, RecordFieldContext);
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_valueType;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitValueType) {
|
|
return visitor.visitValueType(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class RecordFieldContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public identifier(): IdentifierContext {
|
|
return this.getRuleContext(0, IdentifierContext)!;
|
|
}
|
|
public COLON(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.COLON, 0)!;
|
|
}
|
|
public valueType(): ValueTypeContext {
|
|
return this.getRuleContext(0, ValueTypeContext)!;
|
|
}
|
|
public SEMI(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.SEMI, 0)!;
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_recordField;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitRecordField) {
|
|
return visitor.visitRecordField(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class ScalarTypeContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public BOOL(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.BOOL, 0);
|
|
}
|
|
public BYTES(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.BYTES, 0);
|
|
}
|
|
public DOUBLE(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.DOUBLE, 0);
|
|
}
|
|
public INT32(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.INT32, 0);
|
|
}
|
|
public INT64(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.INT64, 0);
|
|
}
|
|
public STRING(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.STRING, 0);
|
|
}
|
|
public UINT32(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.UINT32, 0);
|
|
}
|
|
public UINT64(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.UINT64, 0);
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_scalarType;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitScalarType) {
|
|
return visitor.visitScalarType(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class CardinalityContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public OPTIONAL_ONE(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.OPTIONAL_ONE, 0);
|
|
}
|
|
public EXACTLY_ONE(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.EXACTLY_ONE, 0);
|
|
}
|
|
public MANY(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.MANY, 0);
|
|
}
|
|
public MANY_UNIQUE(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.MANY_UNIQUE, 0);
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_cardinality;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitCardinality) {
|
|
return visitor.visitCardinality(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class JsonLiteralContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public stringLiteral(): StringLiteralContext | null {
|
|
return this.getRuleContext(0, StringLiteralContext);
|
|
}
|
|
public INTEGER(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.INTEGER, 0);
|
|
}
|
|
public JSON_NUMBER(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.JSON_NUMBER, 0);
|
|
}
|
|
public TRUE(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.TRUE, 0);
|
|
}
|
|
public FALSE(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.FALSE, 0);
|
|
}
|
|
public NULL(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.NULL, 0);
|
|
}
|
|
public jsonObject(): JsonObjectContext | null {
|
|
return this.getRuleContext(0, JsonObjectContext);
|
|
}
|
|
public jsonArray(): JsonArrayContext | null {
|
|
return this.getRuleContext(0, JsonArrayContext);
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_jsonLiteral;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitJsonLiteral) {
|
|
return visitor.visitJsonLiteral(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class JsonObjectContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public LBRACE(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.LBRACE, 0)!;
|
|
}
|
|
public RBRACE(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.RBRACE, 0)!;
|
|
}
|
|
public jsonMember(): JsonMemberContext[];
|
|
public jsonMember(i: number): JsonMemberContext | null;
|
|
public jsonMember(i?: number): JsonMemberContext[] | JsonMemberContext | null {
|
|
if (i === undefined) {
|
|
return this.getRuleContexts(JsonMemberContext);
|
|
}
|
|
|
|
return this.getRuleContext(i, JsonMemberContext);
|
|
}
|
|
public COMMA(): antlr.TerminalNode[];
|
|
public COMMA(i: number): antlr.TerminalNode | null;
|
|
public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] {
|
|
if (i === undefined) {
|
|
return this.getTokens(QuixosCapabilityParser.COMMA);
|
|
} else {
|
|
return this.getToken(QuixosCapabilityParser.COMMA, i);
|
|
}
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_jsonObject;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitJsonObject) {
|
|
return visitor.visitJsonObject(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class JsonMemberContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public stringLiteral(): StringLiteralContext {
|
|
return this.getRuleContext(0, StringLiteralContext)!;
|
|
}
|
|
public COLON(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.COLON, 0)!;
|
|
}
|
|
public jsonLiteral(): JsonLiteralContext {
|
|
return this.getRuleContext(0, JsonLiteralContext)!;
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_jsonMember;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitJsonMember) {
|
|
return visitor.visitJsonMember(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class JsonArrayContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public LBRACK(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.LBRACK, 0)!;
|
|
}
|
|
public RBRACK(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.RBRACK, 0)!;
|
|
}
|
|
public jsonLiteral(): JsonLiteralContext[];
|
|
public jsonLiteral(i: number): JsonLiteralContext | null;
|
|
public jsonLiteral(i?: number): JsonLiteralContext[] | JsonLiteralContext | null {
|
|
if (i === undefined) {
|
|
return this.getRuleContexts(JsonLiteralContext);
|
|
}
|
|
|
|
return this.getRuleContext(i, JsonLiteralContext);
|
|
}
|
|
public COMMA(): antlr.TerminalNode[];
|
|
public COMMA(i: number): antlr.TerminalNode | null;
|
|
public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] {
|
|
if (i === undefined) {
|
|
return this.getTokens(QuixosCapabilityParser.COMMA);
|
|
} else {
|
|
return this.getToken(QuixosCapabilityParser.COMMA, i);
|
|
}
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_jsonArray;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitJsonArray) {
|
|
return visitor.visitJsonArray(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class IdentifierContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public IDENTIFIER(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.IDENTIFIER, 0);
|
|
}
|
|
public SOURCE(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.SOURCE, 0);
|
|
}
|
|
public QUERY(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.QUERY, 0);
|
|
}
|
|
public ROOT(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.ROOT, 0);
|
|
}
|
|
public DOCUMENT(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.DOCUMENT, 0);
|
|
}
|
|
public FRAGMENTS(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.FRAGMENTS, 0);
|
|
}
|
|
public VIEW(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.VIEW, 0);
|
|
}
|
|
public MAX(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.MAX, 0);
|
|
}
|
|
public ALLOW(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.ALLOW, 0);
|
|
}
|
|
public POLL(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.POLL, 0);
|
|
}
|
|
public RPC(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.RPC, 0);
|
|
}
|
|
public QUERYABLE(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.QUERYABLE, 0);
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_identifier;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitIdentifier) {
|
|
return visitor.visitIdentifier(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class StringLiteralContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public STRING_LITERAL(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.STRING_LITERAL, 0)!;
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_stringLiteral;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitStringLiteral) {
|
|
return visitor.visitStringLiteral(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|