10086 lines
383 KiB
TypeScript
10086 lines
383 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 EDIT = 1;
|
|
public static readonly MODULE = 2;
|
|
public static readonly CONTRACT = 3;
|
|
public static readonly PRESENTATION = 4;
|
|
public static readonly SUBJECT = 5;
|
|
public static readonly FOR = 6;
|
|
public static readonly CREATION = 7;
|
|
public static readonly VARIANT = 8;
|
|
public static readonly PREPARES = 9;
|
|
public static readonly INITIALIZE = 10;
|
|
public static readonly WORKSPACE = 11;
|
|
public static readonly EXECUTION = 12;
|
|
public static readonly SNAPSHOT = 13;
|
|
public static readonly TRANSACTION = 14;
|
|
public static readonly REMOTE = 15;
|
|
public static readonly TARGETS = 16;
|
|
public static readonly PORTABLE = 17;
|
|
public static readonly REPLICA = 18;
|
|
public static readonly LOCAL = 19;
|
|
public static readonly FROM = 20;
|
|
public static readonly RESULT_BYTES = 21;
|
|
public static readonly RPC_CALLS = 22;
|
|
public static readonly DEADLINE_MS = 23;
|
|
public static readonly QUERY = 24;
|
|
public static readonly REFLECTION = 25;
|
|
public static readonly SPECIALIZE = 26;
|
|
public static readonly ROOT = 27;
|
|
public static readonly DOCUMENT = 28;
|
|
public static readonly FRAGMENTS = 29;
|
|
public static readonly VIEW = 30;
|
|
public static readonly MAX = 31;
|
|
public static readonly ALLOW = 32;
|
|
public static readonly POLL = 33;
|
|
public static readonly QUERYABLE = 34;
|
|
public static readonly RPC = 35;
|
|
public static readonly QUERY_REASON = 36;
|
|
public static readonly TYPE = 37;
|
|
public static readonly OBJECT = 38;
|
|
public static readonly STORABLE = 39;
|
|
public static readonly IMPLEMENTS = 40;
|
|
public static readonly REF = 41;
|
|
public static readonly FRAGMENT = 42;
|
|
public static readonly IMPORT = 43;
|
|
public static readonly EXTERNAL = 44;
|
|
public static readonly ATOM = 45;
|
|
public static readonly INTERFACE = 46;
|
|
public static readonly INTERFACES = 47;
|
|
public static readonly PACKAGE = 48;
|
|
public static readonly VALUE = 49;
|
|
public static readonly FIELD = 50;
|
|
public static readonly RELATION = 51;
|
|
public static readonly OPERATION = 52;
|
|
public static readonly FUNCTION = 53;
|
|
public static readonly CONSTRUCTOR = 54;
|
|
public static readonly CONSTRUCTS = 55;
|
|
public static readonly INPUT = 56;
|
|
public static readonly CONFORM = 57;
|
|
public static readonly AS = 58;
|
|
public static readonly BIND = 59;
|
|
public static readonly STATIC = 60;
|
|
public static readonly TO = 61;
|
|
public static readonly PRIVATE = 62;
|
|
public static readonly SHARED = 63;
|
|
public static readonly STATE = 64;
|
|
public static readonly EDGE = 65;
|
|
public static readonly PROJECTION = 66;
|
|
public static readonly WITH = 67;
|
|
public static readonly USING = 68;
|
|
public static readonly ACCEPT = 69;
|
|
public static readonly VIA = 70;
|
|
public static readonly MATERIALIZE = 71;
|
|
public static readonly IF = 72;
|
|
public static readonly ABSENT = 73;
|
|
public static readonly ON = 74;
|
|
public static readonly POLICY = 75;
|
|
public static readonly DEFAULT = 76;
|
|
public static readonly SOURCE = 77;
|
|
public static readonly REPOSITORY = 78;
|
|
public static readonly COMMIT = 79;
|
|
public static readonly REVISION = 80;
|
|
public static readonly SEMANTIC_MAJOR = 81;
|
|
public static readonly ON_DELETE = 82;
|
|
public static readonly LIFECYCLE = 83;
|
|
public static readonly RETAIN_OTHER = 84;
|
|
public static readonly KEYED = 85;
|
|
public static readonly PUBLIC_TRAVERSAL = 86;
|
|
public static readonly ID = 87;
|
|
public static readonly DOC = 88;
|
|
public static readonly MODE = 89;
|
|
public static readonly EMITS = 90;
|
|
public static readonly RECEIVER = 91;
|
|
public static readonly REQUIRES = 92;
|
|
public static readonly ANY = 93;
|
|
public static readonly GET = 94;
|
|
public static readonly SET = 95;
|
|
public static readonly WATCH = 96;
|
|
public static readonly START = 97;
|
|
public static readonly STOP = 98;
|
|
public static readonly READ = 99;
|
|
public static readonly WRITE = 100;
|
|
public static readonly RESOLVE = 101;
|
|
public static readonly CONNECT = 102;
|
|
public static readonly DISCONNECT = 103;
|
|
public static readonly CALL = 104;
|
|
public static readonly WATCH_START = 105;
|
|
public static readonly WATCH_STOP = 106;
|
|
public static readonly SUBSCRIBE = 107;
|
|
public static readonly UNSUBSCRIBE = 108;
|
|
public static readonly REGISTER = 109;
|
|
public static readonly CRDT = 110;
|
|
public static readonly OPTIONAL_ONE = 111;
|
|
public static readonly EXACTLY_ONE = 112;
|
|
public static readonly MANY_UNIQUE = 113;
|
|
public static readonly MANY = 114;
|
|
public static readonly ORDERED = 115;
|
|
public static readonly UNIT = 116;
|
|
public static readonly WATCH_HANDLE = 117;
|
|
public static readonly MESSAGE = 118;
|
|
public static readonly ATOM_REF = 119;
|
|
public static readonly INTERFACE_REF = 120;
|
|
public static readonly OPTIONAL = 121;
|
|
public static readonly LIST = 122;
|
|
public static readonly RECORD = 123;
|
|
public static readonly BOOL = 124;
|
|
public static readonly BYTES = 125;
|
|
public static readonly DOUBLE = 126;
|
|
public static readonly INT32 = 127;
|
|
public static readonly INT64 = 128;
|
|
public static readonly STRING = 129;
|
|
public static readonly UINT32 = 130;
|
|
public static readonly UINT64 = 131;
|
|
public static readonly TRUE = 132;
|
|
public static readonly FALSE = 133;
|
|
public static readonly NULL = 134;
|
|
public static readonly ARROW = 135;
|
|
public static readonly COLON = 136;
|
|
public static readonly SEMI = 137;
|
|
public static readonly COMMA = 138;
|
|
public static readonly DOT = 139;
|
|
public static readonly LBRACE = 140;
|
|
public static readonly RBRACE = 141;
|
|
public static readonly LBRACK = 142;
|
|
public static readonly RBRACK = 143;
|
|
public static readonly LPAREN = 144;
|
|
public static readonly RPAREN = 145;
|
|
public static readonly LT = 146;
|
|
public static readonly GT = 147;
|
|
public static readonly AMP = 148;
|
|
public static readonly EQUAL = 149;
|
|
public static readonly INTEGER = 150;
|
|
public static readonly JSON_NUMBER = 151;
|
|
public static readonly IDENTIFIER = 152;
|
|
public static readonly STRING_LITERAL = 153;
|
|
public static readonly LINE_COMMENT = 154;
|
|
public static readonly BLOCK_COMMENT = 155;
|
|
public static readonly WS = 156;
|
|
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_moduleMember = 18;
|
|
public static readonly RULE_operationMember = 19;
|
|
public static readonly RULE_valueMember = 20;
|
|
public static readonly RULE_valueMemberOperation = 21;
|
|
public static readonly RULE_relationshipMember = 22;
|
|
public static readonly RULE_queryReadContract = 23;
|
|
public static readonly RULE_relationshipOperation = 24;
|
|
public static readonly RULE_targetConstraint = 25;
|
|
public static readonly RULE_packageResourceDecl = 26;
|
|
public static readonly RULE_packageExport = 27;
|
|
public static readonly RULE_moduleExport = 28;
|
|
public static readonly RULE_presentationDecl = 29;
|
|
public static readonly RULE_packageQuery = 30;
|
|
public static readonly RULE_packageQuerySpecialization = 31;
|
|
public static readonly RULE_queryClause = 32;
|
|
public static readonly RULE_fragmentVariable = 33;
|
|
public static readonly RULE_packageOperationExport = 34;
|
|
public static readonly RULE_packageFunctionExport = 35;
|
|
public static readonly RULE_acceptanceClause = 36;
|
|
public static readonly RULE_preparationClause = 37;
|
|
public static readonly RULE_executionClause = 38;
|
|
public static readonly RULE_selectedOperations = 39;
|
|
public static readonly RULE_packageConstructorExport = 40;
|
|
public static readonly RULE_eventClause = 41;
|
|
public static readonly RULE_operationMode = 42;
|
|
public static readonly RULE_receiverRequirement = 43;
|
|
public static readonly RULE_identifierList = 44;
|
|
public static readonly RULE_dependencyBlock = 45;
|
|
public static readonly RULE_dependencyPort = 46;
|
|
public static readonly RULE_primitiveList = 47;
|
|
public static readonly RULE_primitive = 48;
|
|
public static readonly RULE_sharedAttachmentDecl = 49;
|
|
public static readonly RULE_attachmentDecl = 50;
|
|
public static readonly RULE_stateDecl = 51;
|
|
public static readonly RULE_storagePolicy = 52;
|
|
public static readonly RULE_edgeDecl = 53;
|
|
public static readonly RULE_edgeEndpoint = 54;
|
|
public static readonly RULE_conformanceDecl = 55;
|
|
public static readonly RULE_conformanceSourceArguments = 56;
|
|
public static readonly RULE_conformanceItem = 57;
|
|
public static readonly RULE_moduleBindingDecl = 58;
|
|
public static readonly RULE_initializationDecl = 59;
|
|
public static readonly RULE_initializationField = 60;
|
|
public static readonly RULE_creationOwnerMapping = 61;
|
|
public static readonly RULE_stateFieldBindingDecl = 62;
|
|
public static readonly RULE_relationshipMaterializationDecl = 63;
|
|
public static readonly RULE_operationBindingDecl = 64;
|
|
public static readonly RULE_memberOperationRef = 65;
|
|
public static readonly RULE_operationName = 66;
|
|
public static readonly RULE_operationProvider = 67;
|
|
public static readonly RULE_acceptanceBinding = 68;
|
|
public static readonly RULE_statePrimitive = 69;
|
|
public static readonly RULE_edgePrimitive = 70;
|
|
public static readonly RULE_dependencyBindingBlock = 71;
|
|
public static readonly RULE_dependencyBinding = 72;
|
|
public static readonly RULE_constructorBindingDecl = 73;
|
|
public static readonly RULE_valueType = 74;
|
|
public static readonly RULE_recordField = 75;
|
|
public static readonly RULE_variantCase = 76;
|
|
public static readonly RULE_scalarType = 77;
|
|
public static readonly RULE_cardinality = 78;
|
|
public static readonly RULE_jsonLiteral = 79;
|
|
public static readonly RULE_jsonObject = 80;
|
|
public static readonly RULE_jsonMember = 81;
|
|
public static readonly RULE_jsonArray = 82;
|
|
public static readonly RULE_identifier = 83;
|
|
public static readonly RULE_stringLiteral = 84;
|
|
|
|
public static readonly literalNames = [
|
|
null, "'edit'", "'module'", "'contract'", "'presentation'", "'subject'",
|
|
"'for'", "'creation'", "'variant'", "'prepares'", "'initialize'",
|
|
"'workspace'", "'execution'", "'snapshot'", "'transaction'", "'remote'",
|
|
"'targets'", "'portable'", "'replica'", "'local'", "'from'", "'result-bytes'",
|
|
"'rpc-calls'", "'deadline-ms'", "'query'", "'reflection'", "'specialize'",
|
|
"'root'", "'document'", "'fragments'", "'view'", "'max'", "'allow'",
|
|
"'poll'", "'queryable'", "'rpc'", "'query-reason'", "'type'", "'object'",
|
|
"'storable'", "'implements'", "'ref'", "'fragment'", "'import'",
|
|
"'external'", "'atom'", "'interface'", "'interfaces'", "'package'",
|
|
"'value'", "'field'", "'relation'", "'operation'", "'function'",
|
|
"'constructor'", "'constructs'", "'input'", "'conform'", "'as'",
|
|
"'bind'", "'static'", "'to'", "'private'", "'shared'", "'state'",
|
|
"'edge'", "'projection'", "'with'", "'using'", "'accept'", "'via'",
|
|
"'materialize'", "'if'", "'absent'", "'on'", "'policy'", "'default'",
|
|
"'source'", "'repository'", "'commit'", "'revision'", "'semantic-major'",
|
|
"'on-delete'", "'lifecycle'", "'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'", "'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, "EDIT", "MODULE", "CONTRACT", "PRESENTATION", "SUBJECT", "FOR",
|
|
"CREATION", "VARIANT", "PREPARES", "INITIALIZE", "WORKSPACE", "EXECUTION",
|
|
"SNAPSHOT", "TRANSACTION", "REMOTE", "TARGETS", "PORTABLE", "REPLICA",
|
|
"LOCAL", "FROM", "RESULT_BYTES", "RPC_CALLS", "DEADLINE_MS", "QUERY",
|
|
"REFLECTION", "SPECIALIZE", "ROOT", "DOCUMENT", "FRAGMENTS", "VIEW",
|
|
"MAX", "ALLOW", "POLL", "QUERYABLE", "RPC", "QUERY_REASON", "TYPE",
|
|
"OBJECT", "STORABLE", "IMPLEMENTS", "REF", "FRAGMENT", "IMPORT",
|
|
"EXTERNAL", "ATOM", "INTERFACE", "INTERFACES", "PACKAGE", "VALUE",
|
|
"FIELD", "RELATION", "OPERATION", "FUNCTION", "CONSTRUCTOR", "CONSTRUCTS",
|
|
"INPUT", "CONFORM", "AS", "BIND", "STATIC", "TO", "PRIVATE", "SHARED",
|
|
"STATE", "EDGE", "PROJECTION", "WITH", "USING", "ACCEPT", "VIA",
|
|
"MATERIALIZE", "IF", "ABSENT", "ON", "POLICY", "DEFAULT", "SOURCE",
|
|
"REPOSITORY", "COMMIT", "REVISION", "SEMANTIC_MAJOR", "ON_DELETE",
|
|
"LIFECYCLE", "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", "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", "moduleMember", "operationMember",
|
|
"valueMember", "valueMemberOperation", "relationshipMember", "queryReadContract",
|
|
"relationshipOperation", "targetConstraint", "packageResourceDecl",
|
|
"packageExport", "moduleExport", "presentationDecl", "packageQuery",
|
|
"packageQuerySpecialization", "queryClause", "fragmentVariable",
|
|
"packageOperationExport", "packageFunctionExport", "acceptanceClause",
|
|
"preparationClause", "executionClause", "selectedOperations", "packageConstructorExport",
|
|
"eventClause", "operationMode", "receiverRequirement", "identifierList",
|
|
"dependencyBlock", "dependencyPort", "primitiveList", "primitive",
|
|
"sharedAttachmentDecl", "attachmentDecl", "stateDecl", "storagePolicy",
|
|
"edgeDecl", "edgeEndpoint", "conformanceDecl", "conformanceSourceArguments",
|
|
"conformanceItem", "moduleBindingDecl", "initializationDecl", "initializationField",
|
|
"creationOwnerMapping", "stateFieldBindingDecl", "relationshipMaterializationDecl",
|
|
"operationBindingDecl", "memberOperationRef", "operationName", "operationProvider",
|
|
"acceptanceBinding", "statePrimitive", "edgePrimitive", "dependencyBindingBlock",
|
|
"dependencyBinding", "constructorBindingDecl", "valueType", "recordField",
|
|
"variantCase", "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 = 182;
|
|
this.errorHandler.sync(this);
|
|
switch (this.interpreter.adaptivePredict(this.tokenStream, 0, this.context) ) {
|
|
case 1:
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 170;
|
|
this.workspaceDecl();
|
|
this.state = 171;
|
|
this.match(QuixosCapabilityParser.EOF);
|
|
}
|
|
break;
|
|
case 2:
|
|
this.enterOuterAlt(localContext, 2);
|
|
{
|
|
this.state = 173;
|
|
this.interfaceResourceDecl();
|
|
this.state = 174;
|
|
this.match(QuixosCapabilityParser.EOF);
|
|
}
|
|
break;
|
|
case 3:
|
|
this.enterOuterAlt(localContext, 3);
|
|
{
|
|
this.state = 176;
|
|
this.packageResourceDecl();
|
|
this.state = 177;
|
|
this.match(QuixosCapabilityParser.EOF);
|
|
}
|
|
break;
|
|
case 4:
|
|
this.enterOuterAlt(localContext, 4);
|
|
{
|
|
this.state = 179;
|
|
this.fragmentDecl();
|
|
this.state = 180;
|
|
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 = 184;
|
|
this.match(QuixosCapabilityParser.FRAGMENT);
|
|
this.state = 185;
|
|
this.match(QuixosCapabilityParser.LBRACE);
|
|
this.state = 189;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
while (_la === 4 || ((((_la - 37)) & ~0x1F) === 0 && ((1 << (_la - 37)) & 68288833) !== 0)) {
|
|
{
|
|
{
|
|
this.state = 186;
|
|
this.workspaceItem();
|
|
}
|
|
}
|
|
this.state = 191;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
}
|
|
this.state = 192;
|
|
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 = 194;
|
|
this.match(QuixosCapabilityParser.IMPORT);
|
|
this.state = 195;
|
|
this.stringLiteral();
|
|
this.state = 196;
|
|
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 = 198;
|
|
this.match(QuixosCapabilityParser.WORKSPACE);
|
|
this.state = 199;
|
|
this.identifier();
|
|
this.state = 200;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 201;
|
|
this.stringLiteral();
|
|
this.state = 202;
|
|
this.match(QuixosCapabilityParser.REVISION);
|
|
this.state = 203;
|
|
this.stringLiteral();
|
|
this.state = 204;
|
|
this.match(QuixosCapabilityParser.COMMIT);
|
|
this.state = 205;
|
|
this.stringLiteral();
|
|
this.state = 206;
|
|
this.match(QuixosCapabilityParser.LBRACE);
|
|
this.state = 210;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
while (_la === 4 || ((((_la - 37)) & ~0x1F) === 0 && ((1 << (_la - 37)) & 68288833) !== 0)) {
|
|
{
|
|
{
|
|
this.state = 207;
|
|
this.workspaceItem();
|
|
}
|
|
}
|
|
this.state = 212;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
}
|
|
this.state = 213;
|
|
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 = 223;
|
|
this.errorHandler.sync(this);
|
|
switch (this.interpreter.adaptivePredict(this.tokenStream, 3, this.context) ) {
|
|
case 1:
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 215;
|
|
this.sourceImportDecl();
|
|
}
|
|
break;
|
|
case 2:
|
|
this.enterOuterAlt(localContext, 2);
|
|
{
|
|
this.state = 216;
|
|
this.atomDecl();
|
|
}
|
|
break;
|
|
case 3:
|
|
this.enterOuterAlt(localContext, 3);
|
|
{
|
|
this.state = 217;
|
|
this.resourceImportDecl();
|
|
}
|
|
break;
|
|
case 4:
|
|
this.enterOuterAlt(localContext, 4);
|
|
{
|
|
this.state = 218;
|
|
this.sharedAttachmentDecl();
|
|
}
|
|
break;
|
|
case 5:
|
|
this.enterOuterAlt(localContext, 5);
|
|
{
|
|
this.state = 219;
|
|
this.conformanceDecl();
|
|
}
|
|
break;
|
|
case 6:
|
|
this.enterOuterAlt(localContext, 6);
|
|
{
|
|
this.state = 220;
|
|
this.constructorBindingDecl();
|
|
}
|
|
break;
|
|
case 7:
|
|
this.enterOuterAlt(localContext, 7);
|
|
{
|
|
this.state = 221;
|
|
this.presentationDecl();
|
|
}
|
|
break;
|
|
case 8:
|
|
this.enterOuterAlt(localContext, 8);
|
|
{
|
|
this.state = 222;
|
|
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 = 235;
|
|
this.errorHandler.sync(this);
|
|
switch (this.interpreter.adaptivePredict(this.tokenStream, 4, this.context) ) {
|
|
case 1:
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 225;
|
|
this.match(QuixosCapabilityParser.IMPORT);
|
|
this.state = 226;
|
|
this.match(QuixosCapabilityParser.INTERFACE);
|
|
this.state = 227;
|
|
this.identifier();
|
|
this.state = 228;
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
}
|
|
break;
|
|
case 2:
|
|
this.enterOuterAlt(localContext, 2);
|
|
{
|
|
this.state = 230;
|
|
this.match(QuixosCapabilityParser.IMPORT);
|
|
this.state = 231;
|
|
this.match(QuixosCapabilityParser.PACKAGE);
|
|
this.state = 232;
|
|
this.identifier();
|
|
this.state = 233;
|
|
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 = 237;
|
|
this.match(QuixosCapabilityParser.EXTERNAL);
|
|
this.state = 238;
|
|
this.match(QuixosCapabilityParser.ATOM);
|
|
this.state = 239;
|
|
this.identifier();
|
|
this.state = 240;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 241;
|
|
this.stringLiteral();
|
|
this.state = 242;
|
|
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 = 244;
|
|
this.match(QuixosCapabilityParser.EXTERNAL);
|
|
this.state = 245;
|
|
this.match(QuixosCapabilityParser.INTERFACE);
|
|
this.state = 246;
|
|
this.identifier();
|
|
this.state = 247;
|
|
this.match(QuixosCapabilityParser.REVISION);
|
|
this.state = 248;
|
|
this.stringLiteral();
|
|
this.state = 249;
|
|
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 = 255;
|
|
this.errorHandler.sync(this);
|
|
switch (this.interpreter.adaptivePredict(this.tokenStream, 5, this.context) ) {
|
|
case 1:
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 251;
|
|
this.resourceImportDecl();
|
|
}
|
|
break;
|
|
case 2:
|
|
this.enterOuterAlt(localContext, 2);
|
|
{
|
|
this.state = 252;
|
|
this.externalAtomDecl();
|
|
}
|
|
break;
|
|
case 3:
|
|
this.enterOuterAlt(localContext, 3);
|
|
{
|
|
this.state = 253;
|
|
this.externalInterfaceDecl();
|
|
}
|
|
break;
|
|
case 4:
|
|
this.enterOuterAlt(localContext, 4);
|
|
{
|
|
this.state = 254;
|
|
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 = 257;
|
|
this.match(QuixosCapabilityParser.ATOM);
|
|
this.state = 258;
|
|
this.identifier();
|
|
this.state = 259;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 260;
|
|
this.stringLiteral();
|
|
this.state = 263;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 88) {
|
|
{
|
|
this.state = 261;
|
|
this.match(QuixosCapabilityParser.DOC);
|
|
this.state = 262;
|
|
this.stringLiteral();
|
|
}
|
|
}
|
|
|
|
this.state = 265;
|
|
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 = 270;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
while (((((_la - 37)) & ~0x1F) === 0 && ((1 << (_la - 37)) & 193) !== 0)) {
|
|
{
|
|
{
|
|
this.state = 267;
|
|
this.resourcePreamble();
|
|
}
|
|
}
|
|
this.state = 272;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
}
|
|
this.state = 273;
|
|
this.match(QuixosCapabilityParser.INTERFACE);
|
|
this.state = 274;
|
|
this.identifier();
|
|
this.state = 276;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 146) {
|
|
{
|
|
this.state = 275;
|
|
this.typeParameters();
|
|
}
|
|
}
|
|
|
|
this.state = 278;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 279;
|
|
this.stringLiteral();
|
|
this.state = 280;
|
|
this.match(QuixosCapabilityParser.REVISION);
|
|
this.state = 281;
|
|
this.stringLiteral();
|
|
this.state = 291;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 92) {
|
|
{
|
|
this.state = 282;
|
|
this.match(QuixosCapabilityParser.REQUIRES);
|
|
this.state = 283;
|
|
this.interfaceType();
|
|
this.state = 288;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
while (_la === 138) {
|
|
{
|
|
{
|
|
this.state = 284;
|
|
this.match(QuixosCapabilityParser.COMMA);
|
|
this.state = 285;
|
|
this.interfaceType();
|
|
}
|
|
}
|
|
this.state = 290;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
}
|
|
}
|
|
}
|
|
|
|
this.state = 293;
|
|
this.match(QuixosCapabilityParser.LBRACE);
|
|
this.state = 297;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
while (_la === 2 || ((((_la - 34)) & ~0x1F) === 0 && ((1 << (_la - 34)) & 67600385) !== 0)) {
|
|
{
|
|
{
|
|
this.state = 294;
|
|
this.interfaceMember();
|
|
}
|
|
}
|
|
this.state = 299;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
}
|
|
this.state = 300;
|
|
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 = 302;
|
|
this.match(QuixosCapabilityParser.LT);
|
|
this.state = 303;
|
|
this.typeParameter();
|
|
this.state = 308;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
while (_la === 138) {
|
|
{
|
|
{
|
|
this.state = 304;
|
|
this.match(QuixosCapabilityParser.COMMA);
|
|
this.state = 305;
|
|
this.typeParameter();
|
|
}
|
|
}
|
|
this.state = 310;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
}
|
|
this.state = 311;
|
|
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 = 332;
|
|
this.errorHandler.sync(this);
|
|
switch (this.tokenStream.LA(1)) {
|
|
case QuixosCapabilityParser.VALUE:
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 313;
|
|
this.match(QuixosCapabilityParser.VALUE);
|
|
this.state = 314;
|
|
this.identifier();
|
|
this.state = 317;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 136) {
|
|
{
|
|
this.state = 315;
|
|
this.match(QuixosCapabilityParser.COLON);
|
|
this.state = 316;
|
|
this.match(QuixosCapabilityParser.STORABLE);
|
|
}
|
|
}
|
|
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.OBJECT:
|
|
this.enterOuterAlt(localContext, 2);
|
|
{
|
|
this.state = 319;
|
|
this.match(QuixosCapabilityParser.OBJECT);
|
|
this.state = 320;
|
|
this.identifier();
|
|
this.state = 330;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 40) {
|
|
{
|
|
this.state = 321;
|
|
this.match(QuixosCapabilityParser.IMPLEMENTS);
|
|
this.state = 322;
|
|
this.interfaceType();
|
|
this.state = 327;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
while (_la === 148) {
|
|
{
|
|
{
|
|
this.state = 323;
|
|
this.match(QuixosCapabilityParser.AMP);
|
|
this.state = 324;
|
|
this.interfaceType();
|
|
}
|
|
}
|
|
this.state = 329;
|
|
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 = 334;
|
|
this.identifier();
|
|
this.state = 336;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 146) {
|
|
{
|
|
this.state = 335;
|
|
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 = 338;
|
|
this.match(QuixosCapabilityParser.LT);
|
|
this.state = 339;
|
|
this.typeArgument();
|
|
this.state = 344;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
while (_la === 138) {
|
|
{
|
|
{
|
|
this.state = 340;
|
|
this.match(QuixosCapabilityParser.COMMA);
|
|
this.state = 341;
|
|
this.typeArgument();
|
|
}
|
|
}
|
|
this.state = 346;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
}
|
|
this.state = 347;
|
|
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 = 356;
|
|
this.errorHandler.sync(this);
|
|
switch (this.tokenStream.LA(1)) {
|
|
case QuixosCapabilityParser.ATOM:
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 349;
|
|
this.match(QuixosCapabilityParser.ATOM);
|
|
this.state = 350;
|
|
this.identifier();
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.INTERFACE:
|
|
this.enterOuterAlt(localContext, 2);
|
|
{
|
|
this.state = 351;
|
|
this.match(QuixosCapabilityParser.INTERFACE);
|
|
this.state = 352;
|
|
this.interfaceType();
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.OBJECT:
|
|
this.enterOuterAlt(localContext, 3);
|
|
{
|
|
this.state = 353;
|
|
this.match(QuixosCapabilityParser.OBJECT);
|
|
this.state = 354;
|
|
this.identifier();
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.EDIT:
|
|
case QuixosCapabilityParser.PRESENTATION:
|
|
case QuixosCapabilityParser.SUBJECT:
|
|
case QuixosCapabilityParser.FOR:
|
|
case QuixosCapabilityParser.CREATION:
|
|
case QuixosCapabilityParser.VARIANT:
|
|
case QuixosCapabilityParser.INITIALIZE:
|
|
case QuixosCapabilityParser.EXECUTION:
|
|
case QuixosCapabilityParser.SNAPSHOT:
|
|
case QuixosCapabilityParser.TRANSACTION:
|
|
case QuixosCapabilityParser.REMOTE:
|
|
case QuixosCapabilityParser.TARGETS:
|
|
case QuixosCapabilityParser.PORTABLE:
|
|
case QuixosCapabilityParser.REPLICA:
|
|
case QuixosCapabilityParser.LOCAL:
|
|
case QuixosCapabilityParser.FROM:
|
|
case QuixosCapabilityParser.RESULT_BYTES:
|
|
case QuixosCapabilityParser.RPC_CALLS:
|
|
case QuixosCapabilityParser.DEADLINE_MS:
|
|
case QuixosCapabilityParser.QUERY:
|
|
case QuixosCapabilityParser.REFLECTION:
|
|
case QuixosCapabilityParser.SPECIALIZE:
|
|
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.FRAGMENT:
|
|
case QuixosCapabilityParser.INTERFACES:
|
|
case QuixosCapabilityParser.SOURCE:
|
|
case QuixosCapabilityParser.START:
|
|
case QuixosCapabilityParser.STOP:
|
|
case QuixosCapabilityParser.REGISTER:
|
|
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 = 355;
|
|
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 = 358;
|
|
this.match(QuixosCapabilityParser.TYPE);
|
|
this.state = 359;
|
|
this.identifier();
|
|
this.state = 361;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 146) {
|
|
{
|
|
this.state = 360;
|
|
this.typeParameters();
|
|
}
|
|
}
|
|
|
|
this.state = 363;
|
|
this.match(QuixosCapabilityParser.EQUAL);
|
|
this.state = 364;
|
|
this.valueType();
|
|
this.state = 365;
|
|
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 = 371;
|
|
this.errorHandler.sync(this);
|
|
switch (this.interpreter.adaptivePredict(this.tokenStream, 21, this.context) ) {
|
|
case 1:
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 367;
|
|
this.valueMember();
|
|
}
|
|
break;
|
|
case 2:
|
|
this.enterOuterAlt(localContext, 2);
|
|
{
|
|
this.state = 368;
|
|
this.relationshipMember();
|
|
}
|
|
break;
|
|
case 3:
|
|
this.enterOuterAlt(localContext, 3);
|
|
{
|
|
this.state = 369;
|
|
this.operationMember();
|
|
}
|
|
break;
|
|
case 4:
|
|
this.enterOuterAlt(localContext, 4);
|
|
{
|
|
this.state = 370;
|
|
this.moduleMember();
|
|
}
|
|
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 moduleMember(): ModuleMemberContext {
|
|
let localContext = new ModuleMemberContext(this.context, this.state);
|
|
this.enterRule(localContext, 36, QuixosCapabilityParser.RULE_moduleMember);
|
|
let _la: number;
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 373;
|
|
this.match(QuixosCapabilityParser.MODULE);
|
|
this.state = 374;
|
|
this.identifier();
|
|
this.state = 375;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 376;
|
|
this.stringLiteral();
|
|
this.state = 377;
|
|
this.match(QuixosCapabilityParser.CONTRACT);
|
|
this.state = 378;
|
|
this.stringLiteral();
|
|
this.state = 381;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 5) {
|
|
{
|
|
this.state = 379;
|
|
this.match(QuixosCapabilityParser.SUBJECT);
|
|
this.state = 380;
|
|
this.targetConstraint();
|
|
}
|
|
}
|
|
|
|
this.state = 383;
|
|
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 operationMember(): OperationMemberContext {
|
|
let localContext = new OperationMemberContext(this.context, this.state);
|
|
this.enterRule(localContext, 38, QuixosCapabilityParser.RULE_operationMember);
|
|
let _la: number;
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 386;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 60) {
|
|
{
|
|
this.state = 385;
|
|
this.match(QuixosCapabilityParser.STATIC);
|
|
}
|
|
}
|
|
|
|
this.state = 388;
|
|
this.match(QuixosCapabilityParser.OPERATION);
|
|
this.state = 389;
|
|
this.identifier();
|
|
this.state = 390;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 391;
|
|
this.stringLiteral();
|
|
this.state = 392;
|
|
this.match(QuixosCapabilityParser.COLON);
|
|
this.state = 393;
|
|
this.valueType();
|
|
this.state = 394;
|
|
this.match(QuixosCapabilityParser.ARROW);
|
|
this.state = 395;
|
|
this.valueType();
|
|
this.state = 396;
|
|
this.match(QuixosCapabilityParser.LBRACE);
|
|
this.state = 397;
|
|
this.match(QuixosCapabilityParser.CALL);
|
|
this.state = 398;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 399;
|
|
this.stringLiteral();
|
|
this.state = 401;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 12) {
|
|
{
|
|
this.state = 400;
|
|
this.executionClause();
|
|
}
|
|
}
|
|
|
|
this.state = 403;
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
this.state = 404;
|
|
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, 40, QuixosCapabilityParser.RULE_valueMember);
|
|
let _la: number;
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 407;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 34) {
|
|
{
|
|
this.state = 406;
|
|
this.queryReadContract();
|
|
}
|
|
}
|
|
|
|
this.state = 409;
|
|
_la = this.tokenStream.LA(1);
|
|
if(!(_la === 49 || _la === 50)) {
|
|
this.errorHandler.recoverInline(this);
|
|
}
|
|
else {
|
|
this.errorHandler.reportMatch(this);
|
|
this.consume();
|
|
}
|
|
this.state = 410;
|
|
this.identifier();
|
|
this.state = 411;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 412;
|
|
this.stringLiteral();
|
|
this.state = 413;
|
|
this.match(QuixosCapabilityParser.COLON);
|
|
this.state = 414;
|
|
this.valueType();
|
|
this.state = 415;
|
|
this.match(QuixosCapabilityParser.LBRACE);
|
|
this.state = 419;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
while (_la === 1 || ((((_la - 94)) & ~0x1F) === 0 && ((1 << (_la - 94)) & 7) !== 0)) {
|
|
{
|
|
{
|
|
this.state = 416;
|
|
this.valueMemberOperation();
|
|
}
|
|
}
|
|
this.state = 421;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
}
|
|
this.state = 422;
|
|
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, 42, QuixosCapabilityParser.RULE_valueMemberOperation);
|
|
let _la: number;
|
|
try {
|
|
this.state = 457;
|
|
this.errorHandler.sync(this);
|
|
switch (this.tokenStream.LA(1)) {
|
|
case QuixosCapabilityParser.GET:
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 424;
|
|
this.match(QuixosCapabilityParser.GET);
|
|
this.state = 425;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 426;
|
|
this.stringLiteral();
|
|
this.state = 428;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 12) {
|
|
{
|
|
this.state = 427;
|
|
this.executionClause();
|
|
}
|
|
}
|
|
|
|
this.state = 430;
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.SET:
|
|
this.enterOuterAlt(localContext, 2);
|
|
{
|
|
this.state = 432;
|
|
this.match(QuixosCapabilityParser.SET);
|
|
this.state = 433;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 434;
|
|
this.stringLiteral();
|
|
this.state = 436;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 12) {
|
|
{
|
|
this.state = 435;
|
|
this.executionClause();
|
|
}
|
|
}
|
|
|
|
this.state = 438;
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.EDIT:
|
|
this.enterOuterAlt(localContext, 3);
|
|
{
|
|
this.state = 440;
|
|
this.match(QuixosCapabilityParser.EDIT);
|
|
this.state = 441;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 442;
|
|
this.stringLiteral();
|
|
this.state = 444;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 12) {
|
|
{
|
|
this.state = 443;
|
|
this.executionClause();
|
|
}
|
|
}
|
|
|
|
this.state = 446;
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.WATCH:
|
|
this.enterOuterAlt(localContext, 4);
|
|
{
|
|
this.state = 448;
|
|
this.match(QuixosCapabilityParser.WATCH);
|
|
this.state = 449;
|
|
this.match(QuixosCapabilityParser.START);
|
|
this.state = 450;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 451;
|
|
this.stringLiteral();
|
|
this.state = 452;
|
|
this.match(QuixosCapabilityParser.STOP);
|
|
this.state = 453;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 454;
|
|
this.stringLiteral();
|
|
this.state = 455;
|
|
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, 44, QuixosCapabilityParser.RULE_relationshipMember);
|
|
let _la: number;
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 460;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 34) {
|
|
{
|
|
this.state = 459;
|
|
this.queryReadContract();
|
|
}
|
|
}
|
|
|
|
this.state = 462;
|
|
this.match(QuixosCapabilityParser.RELATION);
|
|
this.state = 463;
|
|
this.identifier();
|
|
this.state = 464;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 465;
|
|
this.stringLiteral();
|
|
this.state = 466;
|
|
this.match(QuixosCapabilityParser.COLON);
|
|
this.state = 467;
|
|
this.cardinality();
|
|
this.state = 468;
|
|
this.targetConstraint();
|
|
this.state = 470;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 115) {
|
|
{
|
|
this.state = 469;
|
|
this.match(QuixosCapabilityParser.ORDERED);
|
|
}
|
|
}
|
|
|
|
this.state = 474;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 85) {
|
|
{
|
|
this.state = 472;
|
|
this.match(QuixosCapabilityParser.KEYED);
|
|
this.state = 473;
|
|
this.stringLiteral();
|
|
}
|
|
}
|
|
|
|
this.state = 476;
|
|
this.match(QuixosCapabilityParser.LBRACE);
|
|
this.state = 480;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
while (((((_la - 96)) & ~0x1F) === 0 && ((1 << (_la - 96)) & 225) !== 0)) {
|
|
{
|
|
{
|
|
this.state = 477;
|
|
this.relationshipOperation();
|
|
}
|
|
}
|
|
this.state = 482;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
}
|
|
this.state = 483;
|
|
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, 46, QuixosCapabilityParser.RULE_queryReadContract);
|
|
let _la: number;
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 485;
|
|
this.match(QuixosCapabilityParser.QUERYABLE);
|
|
this.state = 487;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 17 || _la === 35) {
|
|
{
|
|
this.state = 486;
|
|
_la = this.tokenStream.LA(1);
|
|
if(!(_la === 17 || _la === 35)) {
|
|
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 relationshipOperation(): RelationshipOperationContext {
|
|
let localContext = new RelationshipOperationContext(this.context, this.state);
|
|
this.enterRule(localContext, 48, QuixosCapabilityParser.RULE_relationshipOperation);
|
|
let _la: number;
|
|
try {
|
|
this.state = 522;
|
|
this.errorHandler.sync(this);
|
|
switch (this.tokenStream.LA(1)) {
|
|
case QuixosCapabilityParser.RESOLVE:
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 489;
|
|
this.match(QuixosCapabilityParser.RESOLVE);
|
|
this.state = 490;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 491;
|
|
this.stringLiteral();
|
|
this.state = 493;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 12) {
|
|
{
|
|
this.state = 492;
|
|
this.executionClause();
|
|
}
|
|
}
|
|
|
|
this.state = 495;
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.CONNECT:
|
|
this.enterOuterAlt(localContext, 2);
|
|
{
|
|
this.state = 497;
|
|
this.match(QuixosCapabilityParser.CONNECT);
|
|
this.state = 498;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 499;
|
|
this.stringLiteral();
|
|
this.state = 501;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 12) {
|
|
{
|
|
this.state = 500;
|
|
this.executionClause();
|
|
}
|
|
}
|
|
|
|
this.state = 503;
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.DISCONNECT:
|
|
this.enterOuterAlt(localContext, 3);
|
|
{
|
|
this.state = 505;
|
|
this.match(QuixosCapabilityParser.DISCONNECT);
|
|
this.state = 506;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 507;
|
|
this.stringLiteral();
|
|
this.state = 509;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 12) {
|
|
{
|
|
this.state = 508;
|
|
this.executionClause();
|
|
}
|
|
}
|
|
|
|
this.state = 511;
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.WATCH:
|
|
this.enterOuterAlt(localContext, 4);
|
|
{
|
|
this.state = 513;
|
|
this.match(QuixosCapabilityParser.WATCH);
|
|
this.state = 514;
|
|
this.match(QuixosCapabilityParser.START);
|
|
this.state = 515;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 516;
|
|
this.stringLiteral();
|
|
this.state = 517;
|
|
this.match(QuixosCapabilityParser.STOP);
|
|
this.state = 518;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 519;
|
|
this.stringLiteral();
|
|
this.state = 520;
|
|
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, 50, QuixosCapabilityParser.RULE_targetConstraint);
|
|
let _la: number;
|
|
try {
|
|
this.state = 533;
|
|
this.errorHandler.sync(this);
|
|
switch (this.tokenStream.LA(1)) {
|
|
case QuixosCapabilityParser.ATOM:
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 524;
|
|
this.match(QuixosCapabilityParser.ATOM);
|
|
this.state = 525;
|
|
this.identifier();
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.INTERFACE:
|
|
this.enterOuterAlt(localContext, 2);
|
|
{
|
|
this.state = 526;
|
|
this.match(QuixosCapabilityParser.INTERFACE);
|
|
this.state = 527;
|
|
this.identifier();
|
|
this.state = 529;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 146) {
|
|
{
|
|
this.state = 528;
|
|
this.typeArguments();
|
|
}
|
|
}
|
|
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.OBJECT:
|
|
this.enterOuterAlt(localContext, 3);
|
|
{
|
|
this.state = 531;
|
|
this.match(QuixosCapabilityParser.OBJECT);
|
|
this.state = 532;
|
|
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, 52, QuixosCapabilityParser.RULE_packageResourceDecl);
|
|
let _la: number;
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 538;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
while (((((_la - 37)) & ~0x1F) === 0 && ((1 << (_la - 37)) & 193) !== 0)) {
|
|
{
|
|
{
|
|
this.state = 535;
|
|
this.resourcePreamble();
|
|
}
|
|
}
|
|
this.state = 540;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
}
|
|
this.state = 541;
|
|
this.match(QuixosCapabilityParser.PACKAGE);
|
|
this.state = 542;
|
|
this.identifier();
|
|
this.state = 543;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 544;
|
|
this.stringLiteral();
|
|
this.state = 545;
|
|
this.match(QuixosCapabilityParser.REVISION);
|
|
this.state = 546;
|
|
this.stringLiteral();
|
|
this.state = 549;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 81) {
|
|
{
|
|
this.state = 547;
|
|
this.match(QuixosCapabilityParser.SEMANTIC_MAJOR);
|
|
this.state = 548;
|
|
this.match(QuixosCapabilityParser.INTEGER);
|
|
}
|
|
}
|
|
|
|
this.state = 551;
|
|
this.match(QuixosCapabilityParser.LBRACE);
|
|
this.state = 555;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
while (_la === 2 || _la === 24 || ((((_la - 52)) & ~0x1F) === 0 && ((1 << (_la - 52)) & 7) !== 0)) {
|
|
{
|
|
{
|
|
this.state = 552;
|
|
this.packageExport();
|
|
}
|
|
}
|
|
this.state = 557;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
}
|
|
this.state = 558;
|
|
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, 54, QuixosCapabilityParser.RULE_packageExport);
|
|
try {
|
|
this.state = 566;
|
|
this.errorHandler.sync(this);
|
|
switch (this.interpreter.adaptivePredict(this.tokenStream, 45, this.context) ) {
|
|
case 1:
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 560;
|
|
this.packageOperationExport();
|
|
}
|
|
break;
|
|
case 2:
|
|
this.enterOuterAlt(localContext, 2);
|
|
{
|
|
this.state = 561;
|
|
this.packageFunctionExport();
|
|
}
|
|
break;
|
|
case 3:
|
|
this.enterOuterAlt(localContext, 3);
|
|
{
|
|
this.state = 562;
|
|
this.packageConstructorExport();
|
|
}
|
|
break;
|
|
case 4:
|
|
this.enterOuterAlt(localContext, 4);
|
|
{
|
|
this.state = 563;
|
|
this.packageQuery();
|
|
}
|
|
break;
|
|
case 5:
|
|
this.enterOuterAlt(localContext, 5);
|
|
{
|
|
this.state = 564;
|
|
this.packageQuerySpecialization();
|
|
}
|
|
break;
|
|
case 6:
|
|
this.enterOuterAlt(localContext, 6);
|
|
{
|
|
this.state = 565;
|
|
this.moduleExport();
|
|
}
|
|
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 moduleExport(): ModuleExportContext {
|
|
let localContext = new ModuleExportContext(this.context, this.state);
|
|
this.enterRule(localContext, 56, QuixosCapabilityParser.RULE_moduleExport);
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 568;
|
|
this.match(QuixosCapabilityParser.MODULE);
|
|
this.state = 569;
|
|
this.identifier();
|
|
this.state = 570;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 571;
|
|
this.stringLiteral();
|
|
this.state = 572;
|
|
this.match(QuixosCapabilityParser.IMPLEMENTS);
|
|
this.state = 573;
|
|
this.interfaceType();
|
|
this.state = 574;
|
|
this.match(QuixosCapabilityParser.DOT);
|
|
this.state = 575;
|
|
this.identifier();
|
|
this.state = 576;
|
|
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 presentationDecl(): PresentationDeclContext {
|
|
let localContext = new PresentationDeclContext(this.context, this.state);
|
|
this.enterRule(localContext, 58, QuixosCapabilityParser.RULE_presentationDecl);
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 578;
|
|
this.match(QuixosCapabilityParser.PRESENTATION);
|
|
this.state = 579;
|
|
this.identifier();
|
|
this.state = 580;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 581;
|
|
this.stringLiteral();
|
|
this.state = 582;
|
|
this.match(QuixosCapabilityParser.FOR);
|
|
this.state = 583;
|
|
this.interfaceType();
|
|
this.state = 584;
|
|
this.match(QuixosCapabilityParser.USING);
|
|
this.state = 585;
|
|
this.identifier();
|
|
this.state = 586;
|
|
this.match(QuixosCapabilityParser.DOT);
|
|
this.state = 587;
|
|
this.identifier();
|
|
this.state = 588;
|
|
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 packageQuery(): PackageQueryContext {
|
|
let localContext = new PackageQueryContext(this.context, this.state);
|
|
this.enterRule(localContext, 60, QuixosCapabilityParser.RULE_packageQuery);
|
|
let _la: number;
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 590;
|
|
this.match(QuixosCapabilityParser.QUERY);
|
|
this.state = 592;
|
|
this.errorHandler.sync(this);
|
|
switch (this.interpreter.adaptivePredict(this.tokenStream, 46, this.context) ) {
|
|
case 1:
|
|
{
|
|
this.state = 591;
|
|
this.match(QuixosCapabilityParser.FRAGMENT);
|
|
}
|
|
break;
|
|
}
|
|
this.state = 594;
|
|
this.identifier();
|
|
this.state = 596;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 146) {
|
|
{
|
|
this.state = 595;
|
|
this.typeParameters();
|
|
}
|
|
}
|
|
|
|
this.state = 598;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 599;
|
|
this.stringLiteral();
|
|
this.state = 600;
|
|
this.match(QuixosCapabilityParser.ROOT);
|
|
this.state = 602;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 11) {
|
|
{
|
|
this.state = 601;
|
|
this.match(QuixosCapabilityParser.WORKSPACE);
|
|
}
|
|
}
|
|
|
|
this.state = 604;
|
|
this.interfaceType();
|
|
this.state = 605;
|
|
this.match(QuixosCapabilityParser.DOCUMENT);
|
|
this.state = 606;
|
|
this.stringLiteral();
|
|
this.state = 635;
|
|
this.errorHandler.sync(this);
|
|
switch (this.tokenStream.LA(1)) {
|
|
case QuixosCapabilityParser.OPERATION:
|
|
{
|
|
this.state = 607;
|
|
this.match(QuixosCapabilityParser.OPERATION);
|
|
this.state = 608;
|
|
this.stringLiteral();
|
|
this.state = 609;
|
|
this.match(QuixosCapabilityParser.LBRACE);
|
|
this.state = 613;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
while (((((_la - 18)) & ~0x1F) === 0 && ((1 << (_la - 18)) & 63491) !== 0) || _la === 96) {
|
|
{
|
|
{
|
|
this.state = 610;
|
|
this.queryClause();
|
|
}
|
|
}
|
|
this.state = 615;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
}
|
|
this.state = 616;
|
|
this.match(QuixosCapabilityParser.RBRACE);
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.FRAGMENT:
|
|
{
|
|
this.state = 618;
|
|
this.match(QuixosCapabilityParser.FRAGMENT);
|
|
this.state = 619;
|
|
this.stringLiteral();
|
|
this.state = 622;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 52) {
|
|
{
|
|
this.state = 620;
|
|
this.match(QuixosCapabilityParser.OPERATION);
|
|
this.state = 621;
|
|
this.stringLiteral();
|
|
}
|
|
}
|
|
|
|
this.state = 633;
|
|
this.errorHandler.sync(this);
|
|
switch (this.tokenStream.LA(1)) {
|
|
case QuixosCapabilityParser.LBRACE:
|
|
{
|
|
this.state = 624;
|
|
this.match(QuixosCapabilityParser.LBRACE);
|
|
this.state = 628;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
while (((((_la - 18)) & ~0x1F) === 0 && ((1 << (_la - 18)) & 63491) !== 0) || _la === 96) {
|
|
{
|
|
{
|
|
this.state = 625;
|
|
this.queryClause();
|
|
}
|
|
}
|
|
this.state = 630;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
}
|
|
this.state = 631;
|
|
this.match(QuixosCapabilityParser.RBRACE);
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.SEMI:
|
|
{
|
|
this.state = 632;
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
}
|
|
break;
|
|
default:
|
|
throw new antlr.NoViableAltException(this);
|
|
}
|
|
}
|
|
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 packageQuerySpecialization(): PackageQuerySpecializationContext {
|
|
let localContext = new PackageQuerySpecializationContext(this.context, this.state);
|
|
this.enterRule(localContext, 62, QuixosCapabilityParser.RULE_packageQuerySpecialization);
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 637;
|
|
this.match(QuixosCapabilityParser.QUERY);
|
|
this.state = 638;
|
|
this.identifier();
|
|
this.state = 639;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 640;
|
|
this.stringLiteral();
|
|
this.state = 641;
|
|
this.match(QuixosCapabilityParser.SPECIALIZE);
|
|
this.state = 642;
|
|
this.identifier();
|
|
this.state = 643;
|
|
this.typeArguments();
|
|
this.state = 644;
|
|
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 queryClause(): QueryClauseContext {
|
|
let localContext = new QueryClauseContext(this.context, this.state);
|
|
this.enterRule(localContext, 64, QuixosCapabilityParser.RULE_queryClause);
|
|
let _la: number;
|
|
try {
|
|
this.state = 703;
|
|
this.errorHandler.sync(this);
|
|
switch (this.interpreter.adaptivePredict(this.tokenStream, 57, this.context) ) {
|
|
case 1:
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 646;
|
|
this.match(QuixosCapabilityParser.REPLICA);
|
|
this.state = 647;
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
}
|
|
break;
|
|
case 2:
|
|
this.enterOuterAlt(localContext, 2);
|
|
{
|
|
this.state = 648;
|
|
this.match(QuixosCapabilityParser.LOCAL);
|
|
this.state = 649;
|
|
this.match(QuixosCapabilityParser.FROM);
|
|
this.state = 650;
|
|
this.identifier();
|
|
this.state = 651;
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
}
|
|
break;
|
|
case 3:
|
|
this.enterOuterAlt(localContext, 3);
|
|
{
|
|
this.state = 653;
|
|
this.match(QuixosCapabilityParser.FRAGMENTS);
|
|
this.state = 654;
|
|
this.stringLiteral();
|
|
this.state = 655;
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
}
|
|
break;
|
|
case 4:
|
|
this.enterOuterAlt(localContext, 4);
|
|
{
|
|
this.state = 657;
|
|
this.match(QuixosCapabilityParser.FRAGMENTS);
|
|
this.state = 658;
|
|
this.identifier();
|
|
this.state = 659;
|
|
this.match(QuixosCapabilityParser.DOT);
|
|
this.state = 660;
|
|
this.identifier();
|
|
this.state = 670;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 67) {
|
|
{
|
|
this.state = 661;
|
|
this.match(QuixosCapabilityParser.WITH);
|
|
this.state = 662;
|
|
this.match(QuixosCapabilityParser.LBRACE);
|
|
this.state = 666;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 4294964466) !== 0) || ((((_la - 32)) & ~0x1F) === 0 && ((1 << (_la - 32)) & 33807) !== 0) || ((((_la - 77)) & ~0x1F) === 0 && ((1 << (_la - 77)) & 3145729) !== 0) || _la === 109 || _la === 152) {
|
|
{
|
|
{
|
|
this.state = 663;
|
|
this.fragmentVariable();
|
|
}
|
|
}
|
|
this.state = 668;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
}
|
|
this.state = 669;
|
|
this.match(QuixosCapabilityParser.RBRACE);
|
|
}
|
|
}
|
|
|
|
this.state = 672;
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
}
|
|
break;
|
|
case 5:
|
|
this.enterOuterAlt(localContext, 5);
|
|
{
|
|
this.state = 674;
|
|
this.match(QuixosCapabilityParser.VIEW);
|
|
this.state = 676;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 38) {
|
|
{
|
|
this.state = 675;
|
|
this.match(QuixosCapabilityParser.OBJECT);
|
|
}
|
|
}
|
|
|
|
this.state = 678;
|
|
this.identifier();
|
|
this.state = 679;
|
|
this.match(QuixosCapabilityParser.AS);
|
|
this.state = 680;
|
|
this.interfaceType();
|
|
this.state = 681;
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
}
|
|
break;
|
|
case 6:
|
|
this.enterOuterAlt(localContext, 6);
|
|
{
|
|
this.state = 683;
|
|
this.match(QuixosCapabilityParser.MAX);
|
|
this.state = 684;
|
|
this.identifier();
|
|
this.state = 685;
|
|
this.match(QuixosCapabilityParser.INTEGER);
|
|
this.state = 686;
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
}
|
|
break;
|
|
case 7:
|
|
this.enterOuterAlt(localContext, 7);
|
|
{
|
|
this.state = 688;
|
|
this.match(QuixosCapabilityParser.ALLOW);
|
|
this.state = 689;
|
|
this.interfaceType();
|
|
this.state = 690;
|
|
this.match(QuixosCapabilityParser.DOT);
|
|
this.state = 691;
|
|
this.identifier();
|
|
this.state = 692;
|
|
this.identifier();
|
|
this.state = 693;
|
|
this.stringLiteral();
|
|
this.state = 694;
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
}
|
|
break;
|
|
case 8:
|
|
this.enterOuterAlt(localContext, 8);
|
|
{
|
|
this.state = 696;
|
|
this.match(QuixosCapabilityParser.WATCH);
|
|
this.state = 697;
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
}
|
|
break;
|
|
case 9:
|
|
this.enterOuterAlt(localContext, 9);
|
|
{
|
|
this.state = 698;
|
|
this.match(QuixosCapabilityParser.POLL);
|
|
this.state = 699;
|
|
this.match(QuixosCapabilityParser.INTEGER);
|
|
this.state = 700;
|
|
this.stringLiteral();
|
|
this.state = 701;
|
|
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 fragmentVariable(): FragmentVariableContext {
|
|
let localContext = new FragmentVariableContext(this.context, this.state);
|
|
this.enterRule(localContext, 66, QuixosCapabilityParser.RULE_fragmentVariable);
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 705;
|
|
this.identifier();
|
|
this.state = 706;
|
|
this.match(QuixosCapabilityParser.TO);
|
|
this.state = 707;
|
|
this.identifier();
|
|
this.state = 708;
|
|
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 packageOperationExport(): PackageOperationExportContext {
|
|
let localContext = new PackageOperationExportContext(this.context, this.state);
|
|
this.enterRule(localContext, 68, QuixosCapabilityParser.RULE_packageOperationExport);
|
|
let _la: number;
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 710;
|
|
this.match(QuixosCapabilityParser.OPERATION);
|
|
this.state = 711;
|
|
this.identifier();
|
|
this.state = 713;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 146) {
|
|
{
|
|
this.state = 712;
|
|
this.typeParameters();
|
|
}
|
|
}
|
|
|
|
this.state = 715;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 716;
|
|
this.stringLiteral();
|
|
this.state = 717;
|
|
this.match(QuixosCapabilityParser.COLON);
|
|
this.state = 718;
|
|
this.valueType();
|
|
this.state = 719;
|
|
this.match(QuixosCapabilityParser.ARROW);
|
|
this.state = 720;
|
|
this.valueType();
|
|
this.state = 721;
|
|
this.match(QuixosCapabilityParser.MODE);
|
|
this.state = 722;
|
|
this.operationMode();
|
|
this.state = 724;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 12) {
|
|
{
|
|
this.state = 723;
|
|
this.executionClause();
|
|
}
|
|
}
|
|
|
|
this.state = 727;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 90) {
|
|
{
|
|
this.state = 726;
|
|
this.eventClause();
|
|
}
|
|
}
|
|
|
|
this.state = 729;
|
|
this.match(QuixosCapabilityParser.RECEIVER);
|
|
this.state = 730;
|
|
this.receiverRequirement();
|
|
this.state = 732;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 92) {
|
|
{
|
|
this.state = 731;
|
|
this.dependencyBlock();
|
|
}
|
|
}
|
|
|
|
this.state = 735;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 9) {
|
|
{
|
|
this.state = 734;
|
|
this.preparationClause();
|
|
}
|
|
}
|
|
|
|
this.state = 738;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 69) {
|
|
{
|
|
this.state = 737;
|
|
this.acceptanceClause();
|
|
}
|
|
}
|
|
|
|
this.state = 740;
|
|
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, 70, QuixosCapabilityParser.RULE_packageFunctionExport);
|
|
let _la: number;
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 742;
|
|
this.match(QuixosCapabilityParser.FUNCTION);
|
|
this.state = 743;
|
|
this.identifier();
|
|
this.state = 745;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 146) {
|
|
{
|
|
this.state = 744;
|
|
this.typeParameters();
|
|
}
|
|
}
|
|
|
|
this.state = 747;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 748;
|
|
this.stringLiteral();
|
|
this.state = 749;
|
|
this.match(QuixosCapabilityParser.COLON);
|
|
this.state = 750;
|
|
this.valueType();
|
|
this.state = 751;
|
|
this.match(QuixosCapabilityParser.ARROW);
|
|
this.state = 752;
|
|
this.valueType();
|
|
this.state = 754;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 12) {
|
|
{
|
|
this.state = 753;
|
|
this.executionClause();
|
|
}
|
|
}
|
|
|
|
this.state = 757;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 92) {
|
|
{
|
|
this.state = 756;
|
|
this.dependencyBlock();
|
|
}
|
|
}
|
|
|
|
this.state = 760;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 9) {
|
|
{
|
|
this.state = 759;
|
|
this.preparationClause();
|
|
}
|
|
}
|
|
|
|
this.state = 763;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 69) {
|
|
{
|
|
this.state = 762;
|
|
this.acceptanceClause();
|
|
}
|
|
}
|
|
|
|
this.state = 765;
|
|
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 acceptanceClause(): AcceptanceClauseContext {
|
|
let localContext = new AcceptanceClauseContext(this.context, this.state);
|
|
this.enterRule(localContext, 72, QuixosCapabilityParser.RULE_acceptanceClause);
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 767;
|
|
this.match(QuixosCapabilityParser.ACCEPT);
|
|
this.state = 768;
|
|
this.match(QuixosCapabilityParser.USING);
|
|
this.state = 769;
|
|
this.identifier();
|
|
}
|
|
}
|
|
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 preparationClause(): PreparationClauseContext {
|
|
let localContext = new PreparationClauseContext(this.context, this.state);
|
|
this.enterRule(localContext, 74, QuixosCapabilityParser.RULE_preparationClause);
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 771;
|
|
this.match(QuixosCapabilityParser.PREPARES);
|
|
this.state = 772;
|
|
this.match(QuixosCapabilityParser.CREATION);
|
|
this.state = 773;
|
|
this.identifier();
|
|
this.state = 774;
|
|
this.match(QuixosCapabilityParser.USING);
|
|
this.state = 775;
|
|
this.stringLiteral();
|
|
}
|
|
}
|
|
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 executionClause(): ExecutionClauseContext {
|
|
let localContext = new ExecutionClauseContext(this.context, this.state);
|
|
this.enterRule(localContext, 76, QuixosCapabilityParser.RULE_executionClause);
|
|
let _la: number;
|
|
try {
|
|
this.state = 786;
|
|
this.errorHandler.sync(this);
|
|
switch (this.interpreter.adaptivePredict(this.tokenStream, 69, this.context) ) {
|
|
case 1:
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 777;
|
|
this.match(QuixosCapabilityParser.EXECUTION);
|
|
this.state = 778;
|
|
this.match(QuixosCapabilityParser.REMOTE);
|
|
}
|
|
break;
|
|
case 2:
|
|
this.enterOuterAlt(localContext, 2);
|
|
{
|
|
this.state = 779;
|
|
this.match(QuixosCapabilityParser.EXECUTION);
|
|
this.state = 780;
|
|
_la = this.tokenStream.LA(1);
|
|
if(!(_la === 13 || _la === 14)) {
|
|
this.errorHandler.recoverInline(this);
|
|
}
|
|
else {
|
|
this.errorHandler.reportMatch(this);
|
|
this.consume();
|
|
}
|
|
this.state = 781;
|
|
this.match(QuixosCapabilityParser.TARGETS);
|
|
this.state = 782;
|
|
this.match(QuixosCapabilityParser.LBRACK);
|
|
this.state = 783;
|
|
this.identifierList();
|
|
this.state = 784;
|
|
this.match(QuixosCapabilityParser.RBRACK);
|
|
}
|
|
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 selectedOperations(): SelectedOperationsContext {
|
|
let localContext = new SelectedOperationsContext(this.context, this.state);
|
|
this.enterRule(localContext, 78, QuixosCapabilityParser.RULE_selectedOperations);
|
|
let _la: number;
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 788;
|
|
this.match(QuixosCapabilityParser.USING);
|
|
this.state = 789;
|
|
this.match(QuixosCapabilityParser.LBRACK);
|
|
this.state = 790;
|
|
this.memberOperationRef();
|
|
this.state = 795;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
while (_la === 138) {
|
|
{
|
|
{
|
|
this.state = 791;
|
|
this.match(QuixosCapabilityParser.COMMA);
|
|
this.state = 792;
|
|
this.memberOperationRef();
|
|
}
|
|
}
|
|
this.state = 797;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
}
|
|
this.state = 798;
|
|
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 packageConstructorExport(): PackageConstructorExportContext {
|
|
let localContext = new PackageConstructorExportContext(this.context, this.state);
|
|
this.enterRule(localContext, 80, QuixosCapabilityParser.RULE_packageConstructorExport);
|
|
let _la: number;
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 800;
|
|
this.match(QuixosCapabilityParser.CONSTRUCTOR);
|
|
this.state = 801;
|
|
this.identifier();
|
|
this.state = 802;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 803;
|
|
this.stringLiteral();
|
|
this.state = 804;
|
|
this.match(QuixosCapabilityParser.CONSTRUCTS);
|
|
this.state = 805;
|
|
this.identifier();
|
|
this.state = 806;
|
|
this.match(QuixosCapabilityParser.COLON);
|
|
this.state = 807;
|
|
this.valueType();
|
|
this.state = 809;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 92) {
|
|
{
|
|
this.state = 808;
|
|
this.dependencyBlock();
|
|
}
|
|
}
|
|
|
|
this.state = 811;
|
|
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, 82, QuixosCapabilityParser.RULE_eventClause);
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 813;
|
|
this.match(QuixosCapabilityParser.EMITS);
|
|
this.state = 814;
|
|
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, 84, QuixosCapabilityParser.RULE_operationMode);
|
|
let _la: number;
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 816;
|
|
_la = this.tokenStream.LA(1);
|
|
if(!(((((_la - 104)) & ~0x1F) === 0 && ((1 << (_la - 104)) & 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, 86, QuixosCapabilityParser.RULE_receiverRequirement);
|
|
let _la: number;
|
|
try {
|
|
this.state = 836;
|
|
this.errorHandler.sync(this);
|
|
switch (this.tokenStream.LA(1)) {
|
|
case QuixosCapabilityParser.ANY:
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 818;
|
|
this.match(QuixosCapabilityParser.ANY);
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.ATOM:
|
|
this.enterOuterAlt(localContext, 2);
|
|
{
|
|
this.state = 819;
|
|
this.match(QuixosCapabilityParser.ATOM);
|
|
this.state = 820;
|
|
this.identifier();
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.OBJECT:
|
|
this.enterOuterAlt(localContext, 3);
|
|
{
|
|
this.state = 821;
|
|
this.match(QuixosCapabilityParser.OBJECT);
|
|
this.state = 822;
|
|
this.identifier();
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.INTERFACES:
|
|
this.enterOuterAlt(localContext, 4);
|
|
{
|
|
this.state = 823;
|
|
this.match(QuixosCapabilityParser.INTERFACES);
|
|
this.state = 824;
|
|
this.match(QuixosCapabilityParser.LBRACK);
|
|
this.state = 833;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if ((((_la) & ~0x1F) === 0 && ((1 << _la) & 4294964466) !== 0) || ((((_la - 32)) & ~0x1F) === 0 && ((1 << (_la - 32)) & 33807) !== 0) || ((((_la - 77)) & ~0x1F) === 0 && ((1 << (_la - 77)) & 3145729) !== 0) || _la === 109 || _la === 152) {
|
|
{
|
|
this.state = 825;
|
|
this.interfaceType();
|
|
this.state = 830;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
while (_la === 138) {
|
|
{
|
|
{
|
|
this.state = 826;
|
|
this.match(QuixosCapabilityParser.COMMA);
|
|
this.state = 827;
|
|
this.interfaceType();
|
|
}
|
|
}
|
|
this.state = 832;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
}
|
|
}
|
|
}
|
|
|
|
this.state = 835;
|
|
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, 88, QuixosCapabilityParser.RULE_identifierList);
|
|
let _la: number;
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 838;
|
|
this.identifier();
|
|
this.state = 843;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
while (_la === 138) {
|
|
{
|
|
{
|
|
this.state = 839;
|
|
this.match(QuixosCapabilityParser.COMMA);
|
|
this.state = 840;
|
|
this.identifier();
|
|
}
|
|
}
|
|
this.state = 845;
|
|
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, 90, QuixosCapabilityParser.RULE_dependencyBlock);
|
|
let _la: number;
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 846;
|
|
this.match(QuixosCapabilityParser.REQUIRES);
|
|
this.state = 847;
|
|
this.match(QuixosCapabilityParser.LBRACE);
|
|
this.state = 851;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 50331776) !== 0) || ((((_la - 46)) & ~0x1F) === 0 && ((1 << (_la - 46)) & 786689) !== 0)) {
|
|
{
|
|
{
|
|
this.state = 848;
|
|
this.dependencyPort();
|
|
}
|
|
}
|
|
this.state = 853;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
}
|
|
this.state = 854;
|
|
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, 92, QuixosCapabilityParser.RULE_dependencyPort);
|
|
let _la: number;
|
|
try {
|
|
this.state = 938;
|
|
this.errorHandler.sync(this);
|
|
switch (this.tokenStream.LA(1)) {
|
|
case QuixosCapabilityParser.REFLECTION:
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 856;
|
|
this.match(QuixosCapabilityParser.REFLECTION);
|
|
this.state = 857;
|
|
this.identifier();
|
|
this.state = 858;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 859;
|
|
this.stringLiteral();
|
|
this.state = 860;
|
|
this.match(QuixosCapabilityParser.LBRACK);
|
|
this.state = 861;
|
|
this.identifierList();
|
|
this.state = 862;
|
|
this.match(QuixosCapabilityParser.RBRACK);
|
|
this.state = 863;
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.STATE:
|
|
this.enterOuterAlt(localContext, 2);
|
|
{
|
|
this.state = 865;
|
|
this.match(QuixosCapabilityParser.STATE);
|
|
this.state = 866;
|
|
this.identifier();
|
|
this.state = 867;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 868;
|
|
this.stringLiteral();
|
|
this.state = 869;
|
|
this.match(QuixosCapabilityParser.COLON);
|
|
this.state = 870;
|
|
this.valueType();
|
|
this.state = 871;
|
|
this.primitiveList();
|
|
this.state = 872;
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.EDGE:
|
|
this.enterOuterAlt(localContext, 3);
|
|
{
|
|
this.state = 874;
|
|
this.match(QuixosCapabilityParser.EDGE);
|
|
this.state = 875;
|
|
this.identifier();
|
|
this.state = 876;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 877;
|
|
this.stringLiteral();
|
|
this.state = 878;
|
|
this.match(QuixosCapabilityParser.COLON);
|
|
this.state = 879;
|
|
this.cardinality();
|
|
this.state = 880;
|
|
this.targetConstraint();
|
|
this.state = 883;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 85) {
|
|
{
|
|
this.state = 881;
|
|
this.match(QuixosCapabilityParser.KEYED);
|
|
this.state = 882;
|
|
this.stringLiteral();
|
|
}
|
|
}
|
|
|
|
this.state = 885;
|
|
this.primitiveList();
|
|
this.state = 886;
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.INTERFACE:
|
|
this.enterOuterAlt(localContext, 4);
|
|
{
|
|
this.state = 888;
|
|
this.match(QuixosCapabilityParser.INTERFACE);
|
|
this.state = 889;
|
|
this.identifier();
|
|
this.state = 890;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 891;
|
|
this.stringLiteral();
|
|
this.state = 892;
|
|
this.match(QuixosCapabilityParser.COLON);
|
|
this.state = 893;
|
|
this.identifier();
|
|
this.state = 895;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 146) {
|
|
{
|
|
this.state = 894;
|
|
this.typeArguments();
|
|
}
|
|
}
|
|
|
|
this.state = 898;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 68) {
|
|
{
|
|
this.state = 897;
|
|
this.selectedOperations();
|
|
}
|
|
}
|
|
|
|
this.state = 902;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 20) {
|
|
{
|
|
this.state = 900;
|
|
this.match(QuixosCapabilityParser.FROM);
|
|
this.state = 901;
|
|
this.match(QuixosCapabilityParser.INPUT);
|
|
}
|
|
}
|
|
|
|
this.state = 904;
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.CREATION:
|
|
this.enterOuterAlt(localContext, 5);
|
|
{
|
|
this.state = 906;
|
|
this.match(QuixosCapabilityParser.CREATION);
|
|
this.state = 907;
|
|
this.identifier();
|
|
this.state = 908;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 909;
|
|
this.stringLiteral();
|
|
this.state = 910;
|
|
this.match(QuixosCapabilityParser.COLON);
|
|
this.state = 911;
|
|
this.identifier();
|
|
this.state = 912;
|
|
this.match(QuixosCapabilityParser.INPUT);
|
|
this.state = 913;
|
|
this.valueType();
|
|
this.state = 914;
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.CONSTRUCTOR:
|
|
this.enterOuterAlt(localContext, 6);
|
|
{
|
|
this.state = 916;
|
|
this.match(QuixosCapabilityParser.CONSTRUCTOR);
|
|
this.state = 917;
|
|
this.identifier();
|
|
this.state = 918;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 919;
|
|
this.stringLiteral();
|
|
this.state = 920;
|
|
this.match(QuixosCapabilityParser.COLON);
|
|
this.state = 921;
|
|
this.identifier();
|
|
this.state = 924;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 56) {
|
|
{
|
|
this.state = 922;
|
|
this.match(QuixosCapabilityParser.INPUT);
|
|
this.state = 923;
|
|
this.valueType();
|
|
}
|
|
}
|
|
|
|
this.state = 926;
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.QUERY:
|
|
this.enterOuterAlt(localContext, 7);
|
|
{
|
|
this.state = 928;
|
|
this.match(QuixosCapabilityParser.QUERY);
|
|
this.state = 929;
|
|
this.identifier();
|
|
this.state = 930;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 931;
|
|
this.stringLiteral();
|
|
this.state = 932;
|
|
this.match(QuixosCapabilityParser.COLON);
|
|
this.state = 933;
|
|
this.identifier();
|
|
this.state = 934;
|
|
this.match(QuixosCapabilityParser.DOT);
|
|
this.state = 935;
|
|
this.identifier();
|
|
this.state = 936;
|
|
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, 94, QuixosCapabilityParser.RULE_primitiveList);
|
|
let _la: number;
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 940;
|
|
this.match(QuixosCapabilityParser.LBRACK);
|
|
this.state = 941;
|
|
this.primitive();
|
|
this.state = 946;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
while (_la === 138) {
|
|
{
|
|
{
|
|
this.state = 942;
|
|
this.match(QuixosCapabilityParser.COMMA);
|
|
this.state = 943;
|
|
this.primitive();
|
|
}
|
|
}
|
|
this.state = 948;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
}
|
|
this.state = 949;
|
|
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, 96, QuixosCapabilityParser.RULE_primitive);
|
|
let _la: number;
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 951;
|
|
_la = this.tokenStream.LA(1);
|
|
if(!(_la === 1 || ((((_la - 99)) & ~0x1F) === 0 && ((1 << (_la - 99)) & 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, 98, QuixosCapabilityParser.RULE_sharedAttachmentDecl);
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 953;
|
|
this.match(QuixosCapabilityParser.SHARED);
|
|
this.state = 954;
|
|
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, 100, QuixosCapabilityParser.RULE_attachmentDecl);
|
|
try {
|
|
this.state = 958;
|
|
this.errorHandler.sync(this);
|
|
switch (this.tokenStream.LA(1)) {
|
|
case QuixosCapabilityParser.STATE:
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 956;
|
|
this.stateDecl();
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.EDGE:
|
|
this.enterOuterAlt(localContext, 2);
|
|
{
|
|
this.state = 957;
|
|
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, 102, QuixosCapabilityParser.RULE_stateDecl);
|
|
let _la: number;
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 960;
|
|
this.match(QuixosCapabilityParser.STATE);
|
|
this.state = 961;
|
|
this.identifier();
|
|
this.state = 962;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 963;
|
|
this.stringLiteral();
|
|
this.state = 964;
|
|
this.match(QuixosCapabilityParser.ON);
|
|
this.state = 965;
|
|
this.identifier();
|
|
this.state = 966;
|
|
this.match(QuixosCapabilityParser.COLON);
|
|
this.state = 967;
|
|
this.valueType();
|
|
this.state = 968;
|
|
this.match(QuixosCapabilityParser.POLICY);
|
|
this.state = 969;
|
|
this.storagePolicy();
|
|
this.state = 972;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 76) {
|
|
{
|
|
this.state = 970;
|
|
this.match(QuixosCapabilityParser.DEFAULT);
|
|
this.state = 971;
|
|
this.jsonLiteral();
|
|
}
|
|
}
|
|
|
|
this.state = 974;
|
|
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, 104, QuixosCapabilityParser.RULE_storagePolicy);
|
|
try {
|
|
this.state = 982;
|
|
this.errorHandler.sync(this);
|
|
switch (this.tokenStream.LA(1)) {
|
|
case QuixosCapabilityParser.REGISTER:
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 976;
|
|
this.match(QuixosCapabilityParser.REGISTER);
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.CRDT:
|
|
this.enterOuterAlt(localContext, 2);
|
|
{
|
|
this.state = 977;
|
|
this.match(QuixosCapabilityParser.CRDT);
|
|
this.state = 978;
|
|
this.match(QuixosCapabilityParser.LPAREN);
|
|
this.state = 979;
|
|
this.valueType();
|
|
this.state = 980;
|
|
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, 106, QuixosCapabilityParser.RULE_edgeDecl);
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 984;
|
|
this.match(QuixosCapabilityParser.EDGE);
|
|
this.state = 985;
|
|
this.identifier();
|
|
this.state = 986;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 987;
|
|
this.stringLiteral();
|
|
this.state = 988;
|
|
this.match(QuixosCapabilityParser.LBRACE);
|
|
this.state = 989;
|
|
this.edgeEndpoint();
|
|
this.state = 990;
|
|
this.edgeEndpoint();
|
|
this.state = 991;
|
|
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, 108, QuixosCapabilityParser.RULE_edgeEndpoint);
|
|
let _la: number;
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 993;
|
|
this.targetConstraint();
|
|
this.state = 994;
|
|
this.match(QuixosCapabilityParser.PROJECTION);
|
|
this.state = 995;
|
|
this.identifier();
|
|
this.state = 996;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 997;
|
|
this.stringLiteral();
|
|
this.state = 998;
|
|
this.cardinality();
|
|
this.state = 1000;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 115) {
|
|
{
|
|
this.state = 999;
|
|
this.match(QuixosCapabilityParser.ORDERED);
|
|
}
|
|
}
|
|
|
|
this.state = 1004;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 82) {
|
|
{
|
|
this.state = 1002;
|
|
this.match(QuixosCapabilityParser.ON_DELETE);
|
|
this.state = 1003;
|
|
this.stringLiteral();
|
|
}
|
|
}
|
|
|
|
this.state = 1007;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 84) {
|
|
{
|
|
this.state = 1006;
|
|
this.match(QuixosCapabilityParser.RETAIN_OTHER);
|
|
}
|
|
}
|
|
|
|
this.state = 1011;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 85) {
|
|
{
|
|
this.state = 1009;
|
|
this.match(QuixosCapabilityParser.KEYED);
|
|
this.state = 1010;
|
|
this.stringLiteral();
|
|
}
|
|
}
|
|
|
|
this.state = 1014;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 86) {
|
|
{
|
|
this.state = 1013;
|
|
this.match(QuixosCapabilityParser.PUBLIC_TRAVERSAL);
|
|
}
|
|
}
|
|
|
|
this.state = 1016;
|
|
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, 110, QuixosCapabilityParser.RULE_conformanceDecl);
|
|
let _la: number;
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 1018;
|
|
this.match(QuixosCapabilityParser.CONFORM);
|
|
this.state = 1020;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 146) {
|
|
{
|
|
this.state = 1019;
|
|
this.typeParameters();
|
|
}
|
|
}
|
|
|
|
this.state = 1022;
|
|
this.identifier();
|
|
this.state = 1024;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 146) {
|
|
{
|
|
this.state = 1023;
|
|
this.conformanceSourceArguments();
|
|
}
|
|
}
|
|
|
|
this.state = 1026;
|
|
this.match(QuixosCapabilityParser.AS);
|
|
this.state = 1027;
|
|
this.identifier();
|
|
this.state = 1029;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 146) {
|
|
{
|
|
this.state = 1028;
|
|
this.typeArguments();
|
|
}
|
|
}
|
|
|
|
this.state = 1033;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 87) {
|
|
{
|
|
this.state = 1031;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 1032;
|
|
this.stringLiteral();
|
|
}
|
|
}
|
|
|
|
this.state = 1037;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 81) {
|
|
{
|
|
this.state = 1035;
|
|
this.match(QuixosCapabilityParser.SEMANTIC_MAJOR);
|
|
this.state = 1036;
|
|
this.match(QuixosCapabilityParser.INTEGER);
|
|
}
|
|
}
|
|
|
|
this.state = 1039;
|
|
this.match(QuixosCapabilityParser.LBRACE);
|
|
this.state = 1043;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
while (_la === 10 || ((((_la - 59)) & ~0x1F) === 0 && ((1 << (_la - 59)) & 4105) !== 0)) {
|
|
{
|
|
{
|
|
this.state = 1040;
|
|
this.conformanceItem();
|
|
}
|
|
}
|
|
this.state = 1045;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
}
|
|
this.state = 1046;
|
|
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 conformanceSourceArguments(): ConformanceSourceArgumentsContext {
|
|
let localContext = new ConformanceSourceArgumentsContext(this.context, this.state);
|
|
this.enterRule(localContext, 112, QuixosCapabilityParser.RULE_conformanceSourceArguments);
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 1048;
|
|
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 conformanceItem(): ConformanceItemContext {
|
|
let localContext = new ConformanceItemContext(this.context, this.state);
|
|
this.enterRule(localContext, 114, QuixosCapabilityParser.RULE_conformanceItem);
|
|
try {
|
|
this.state = 1057;
|
|
this.errorHandler.sync(this);
|
|
switch (this.interpreter.adaptivePredict(this.tokenStream, 98, this.context) ) {
|
|
case 1:
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 1050;
|
|
this.match(QuixosCapabilityParser.PRIVATE);
|
|
this.state = 1051;
|
|
this.attachmentDecl();
|
|
}
|
|
break;
|
|
case 2:
|
|
this.enterOuterAlt(localContext, 2);
|
|
{
|
|
this.state = 1052;
|
|
this.operationBindingDecl();
|
|
}
|
|
break;
|
|
case 3:
|
|
this.enterOuterAlt(localContext, 3);
|
|
{
|
|
this.state = 1053;
|
|
this.stateFieldBindingDecl();
|
|
}
|
|
break;
|
|
case 4:
|
|
this.enterOuterAlt(localContext, 4);
|
|
{
|
|
this.state = 1054;
|
|
this.initializationDecl();
|
|
}
|
|
break;
|
|
case 5:
|
|
this.enterOuterAlt(localContext, 5);
|
|
{
|
|
this.state = 1055;
|
|
this.relationshipMaterializationDecl();
|
|
}
|
|
break;
|
|
case 6:
|
|
this.enterOuterAlt(localContext, 6);
|
|
{
|
|
this.state = 1056;
|
|
this.moduleBindingDecl();
|
|
}
|
|
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 moduleBindingDecl(): ModuleBindingDeclContext {
|
|
let localContext = new ModuleBindingDeclContext(this.context, this.state);
|
|
this.enterRule(localContext, 116, QuixosCapabilityParser.RULE_moduleBindingDecl);
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 1059;
|
|
this.match(QuixosCapabilityParser.BIND);
|
|
this.state = 1060;
|
|
this.identifier();
|
|
this.state = 1061;
|
|
this.match(QuixosCapabilityParser.TO);
|
|
this.state = 1062;
|
|
this.identifier();
|
|
this.state = 1063;
|
|
this.match(QuixosCapabilityParser.DOT);
|
|
this.state = 1064;
|
|
this.identifier();
|
|
this.state = 1065;
|
|
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 initializationDecl(): InitializationDeclContext {
|
|
let localContext = new InitializationDeclContext(this.context, this.state);
|
|
this.enterRule(localContext, 118, QuixosCapabilityParser.RULE_initializationDecl);
|
|
let _la: number;
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 1067;
|
|
this.match(QuixosCapabilityParser.INITIALIZE);
|
|
this.state = 1068;
|
|
this.match(QuixosCapabilityParser.LBRACE);
|
|
this.state = 1072;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 4294964466) !== 0) || ((((_la - 32)) & ~0x1F) === 0 && ((1 << (_la - 32)) & 33807) !== 0) || ((((_la - 77)) & ~0x1F) === 0 && ((1 << (_la - 77)) & 3145729) !== 0) || _la === 109 || _la === 152) {
|
|
{
|
|
{
|
|
this.state = 1069;
|
|
this.initializationField();
|
|
}
|
|
}
|
|
this.state = 1074;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
}
|
|
this.state = 1075;
|
|
this.match(QuixosCapabilityParser.RBRACE);
|
|
this.state = 1076;
|
|
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 initializationField(): InitializationFieldContext {
|
|
let localContext = new InitializationFieldContext(this.context, this.state);
|
|
this.enterRule(localContext, 120, QuixosCapabilityParser.RULE_initializationField);
|
|
try {
|
|
this.state = 1092;
|
|
this.errorHandler.sync(this);
|
|
switch (this.interpreter.adaptivePredict(this.tokenStream, 100, this.context) ) {
|
|
case 1:
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 1078;
|
|
this.identifier();
|
|
this.state = 1079;
|
|
this.match(QuixosCapabilityParser.TO);
|
|
this.state = 1080;
|
|
this.match(QuixosCapabilityParser.STATE);
|
|
this.state = 1081;
|
|
this.identifier();
|
|
this.state = 1082;
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
}
|
|
break;
|
|
case 2:
|
|
this.enterOuterAlt(localContext, 2);
|
|
{
|
|
this.state = 1084;
|
|
this.identifier();
|
|
this.state = 1085;
|
|
this.match(QuixosCapabilityParser.TO);
|
|
this.state = 1086;
|
|
this.match(QuixosCapabilityParser.EDGE);
|
|
this.state = 1087;
|
|
this.identifier();
|
|
this.state = 1088;
|
|
this.match(QuixosCapabilityParser.DOT);
|
|
this.state = 1089;
|
|
this.identifier();
|
|
this.state = 1090;
|
|
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 creationOwnerMapping(): CreationOwnerMappingContext {
|
|
let localContext = new CreationOwnerMappingContext(this.context, this.state);
|
|
this.enterRule(localContext, 122, QuixosCapabilityParser.RULE_creationOwnerMapping);
|
|
let _la: number;
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 1094;
|
|
this.interfaceType();
|
|
this.state = 1095;
|
|
this.match(QuixosCapabilityParser.FROM);
|
|
this.state = 1096;
|
|
this.match(QuixosCapabilityParser.INPUT);
|
|
this.state = 1101;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
while (_la === 139) {
|
|
{
|
|
{
|
|
this.state = 1097;
|
|
this.match(QuixosCapabilityParser.DOT);
|
|
this.state = 1098;
|
|
this.identifier();
|
|
}
|
|
}
|
|
this.state = 1103;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
}
|
|
this.state = 1104;
|
|
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 stateFieldBindingDecl(): StateFieldBindingDeclContext {
|
|
let localContext = new StateFieldBindingDeclContext(this.context, this.state);
|
|
this.enterRule(localContext, 124, QuixosCapabilityParser.RULE_stateFieldBindingDecl);
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 1106;
|
|
this.match(QuixosCapabilityParser.BIND);
|
|
this.state = 1107;
|
|
this.identifier();
|
|
this.state = 1108;
|
|
this.match(QuixosCapabilityParser.TO);
|
|
this.state = 1109;
|
|
this.match(QuixosCapabilityParser.STATE);
|
|
this.state = 1110;
|
|
this.identifier();
|
|
this.state = 1111;
|
|
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, 126, QuixosCapabilityParser.RULE_relationshipMaterializationDecl);
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 1113;
|
|
this.match(QuixosCapabilityParser.MATERIALIZE);
|
|
this.state = 1114;
|
|
this.identifier();
|
|
this.state = 1115;
|
|
this.match(QuixosCapabilityParser.IF);
|
|
this.state = 1116;
|
|
this.match(QuixosCapabilityParser.ABSENT);
|
|
this.state = 1117;
|
|
this.match(QuixosCapabilityParser.USING);
|
|
this.state = 1118;
|
|
this.match(QuixosCapabilityParser.CONSTRUCTOR);
|
|
this.state = 1119;
|
|
this.identifier();
|
|
this.state = 1120;
|
|
this.match(QuixosCapabilityParser.VIA);
|
|
this.state = 1121;
|
|
this.match(QuixosCapabilityParser.EDGE);
|
|
this.state = 1122;
|
|
this.identifier();
|
|
this.state = 1123;
|
|
this.match(QuixosCapabilityParser.DOT);
|
|
this.state = 1124;
|
|
this.identifier();
|
|
this.state = 1125;
|
|
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, 128, QuixosCapabilityParser.RULE_operationBindingDecl);
|
|
let _la: number;
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 1127;
|
|
this.match(QuixosCapabilityParser.BIND);
|
|
this.state = 1128;
|
|
this.memberOperationRef();
|
|
this.state = 1129;
|
|
this.match(QuixosCapabilityParser.TO);
|
|
this.state = 1130;
|
|
this.operationProvider();
|
|
this.state = 1133;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 36) {
|
|
{
|
|
this.state = 1131;
|
|
this.match(QuixosCapabilityParser.QUERY_REASON);
|
|
this.state = 1132;
|
|
this.stringLiteral();
|
|
}
|
|
}
|
|
|
|
this.state = 1135;
|
|
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, 130, QuixosCapabilityParser.RULE_memberOperationRef);
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 1137;
|
|
this.identifier();
|
|
this.state = 1138;
|
|
this.match(QuixosCapabilityParser.DOT);
|
|
this.state = 1139;
|
|
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, 132, QuixosCapabilityParser.RULE_operationName);
|
|
try {
|
|
this.state = 1153;
|
|
this.errorHandler.sync(this);
|
|
switch (this.interpreter.adaptivePredict(this.tokenStream, 103, this.context) ) {
|
|
case 1:
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 1141;
|
|
this.identifier();
|
|
}
|
|
break;
|
|
case 2:
|
|
this.enterOuterAlt(localContext, 2);
|
|
{
|
|
this.state = 1142;
|
|
this.match(QuixosCapabilityParser.CALL);
|
|
}
|
|
break;
|
|
case 3:
|
|
this.enterOuterAlt(localContext, 3);
|
|
{
|
|
this.state = 1143;
|
|
this.match(QuixosCapabilityParser.GET);
|
|
}
|
|
break;
|
|
case 4:
|
|
this.enterOuterAlt(localContext, 4);
|
|
{
|
|
this.state = 1144;
|
|
this.match(QuixosCapabilityParser.SET);
|
|
}
|
|
break;
|
|
case 5:
|
|
this.enterOuterAlt(localContext, 5);
|
|
{
|
|
this.state = 1145;
|
|
this.match(QuixosCapabilityParser.EDIT);
|
|
}
|
|
break;
|
|
case 6:
|
|
this.enterOuterAlt(localContext, 6);
|
|
{
|
|
this.state = 1146;
|
|
this.match(QuixosCapabilityParser.RESOLVE);
|
|
}
|
|
break;
|
|
case 7:
|
|
this.enterOuterAlt(localContext, 7);
|
|
{
|
|
this.state = 1147;
|
|
this.match(QuixosCapabilityParser.CONNECT);
|
|
}
|
|
break;
|
|
case 8:
|
|
this.enterOuterAlt(localContext, 8);
|
|
{
|
|
this.state = 1148;
|
|
this.match(QuixosCapabilityParser.DISCONNECT);
|
|
}
|
|
break;
|
|
case 9:
|
|
this.enterOuterAlt(localContext, 9);
|
|
{
|
|
this.state = 1149;
|
|
this.match(QuixosCapabilityParser.WATCH_START);
|
|
}
|
|
break;
|
|
case 10:
|
|
this.enterOuterAlt(localContext, 10);
|
|
{
|
|
this.state = 1150;
|
|
this.match(QuixosCapabilityParser.WATCH_STOP);
|
|
}
|
|
break;
|
|
case 11:
|
|
this.enterOuterAlt(localContext, 11);
|
|
{
|
|
this.state = 1151;
|
|
this.match(QuixosCapabilityParser.SUBSCRIBE);
|
|
}
|
|
break;
|
|
case 12:
|
|
this.enterOuterAlt(localContext, 12);
|
|
{
|
|
this.state = 1152;
|
|
this.match(QuixosCapabilityParser.UNSUBSCRIBE);
|
|
}
|
|
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 operationProvider(): OperationProviderContext {
|
|
let localContext = new OperationProviderContext(this.context, this.state);
|
|
this.enterRule(localContext, 134, QuixosCapabilityParser.RULE_operationProvider);
|
|
let _la: number;
|
|
try {
|
|
this.state = 1191;
|
|
this.errorHandler.sync(this);
|
|
switch (this.tokenStream.LA(1)) {
|
|
case QuixosCapabilityParser.LIFECYCLE:
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 1155;
|
|
this.match(QuixosCapabilityParser.LIFECYCLE);
|
|
this.state = 1156;
|
|
this.match(QuixosCapabilityParser.DOT);
|
|
this.state = 1157;
|
|
this.identifier();
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.STATE:
|
|
this.enterOuterAlt(localContext, 2);
|
|
{
|
|
this.state = 1158;
|
|
this.match(QuixosCapabilityParser.STATE);
|
|
this.state = 1159;
|
|
this.identifier();
|
|
this.state = 1160;
|
|
this.match(QuixosCapabilityParser.DOT);
|
|
this.state = 1161;
|
|
this.statePrimitive();
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.EDGE:
|
|
this.enterOuterAlt(localContext, 3);
|
|
{
|
|
this.state = 1163;
|
|
this.match(QuixosCapabilityParser.EDGE);
|
|
this.state = 1164;
|
|
this.identifier();
|
|
this.state = 1165;
|
|
this.match(QuixosCapabilityParser.DOT);
|
|
this.state = 1166;
|
|
this.identifier();
|
|
this.state = 1167;
|
|
this.match(QuixosCapabilityParser.DOT);
|
|
this.state = 1168;
|
|
this.edgePrimitive();
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.INTERFACE:
|
|
this.enterOuterAlt(localContext, 4);
|
|
{
|
|
this.state = 1170;
|
|
this.match(QuixosCapabilityParser.INTERFACE);
|
|
this.state = 1171;
|
|
this.identifier();
|
|
this.state = 1173;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 146) {
|
|
{
|
|
this.state = 1172;
|
|
this.typeArguments();
|
|
}
|
|
}
|
|
|
|
this.state = 1175;
|
|
this.match(QuixosCapabilityParser.DOT);
|
|
this.state = 1176;
|
|
this.memberOperationRef();
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.PACKAGE:
|
|
this.enterOuterAlt(localContext, 5);
|
|
{
|
|
this.state = 1178;
|
|
this.match(QuixosCapabilityParser.PACKAGE);
|
|
this.state = 1179;
|
|
this.identifier();
|
|
this.state = 1180;
|
|
this.match(QuixosCapabilityParser.DOT);
|
|
this.state = 1181;
|
|
this.identifier();
|
|
this.state = 1183;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 146) {
|
|
{
|
|
this.state = 1182;
|
|
this.typeArguments();
|
|
}
|
|
}
|
|
|
|
this.state = 1186;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 67) {
|
|
{
|
|
this.state = 1185;
|
|
this.dependencyBindingBlock();
|
|
}
|
|
}
|
|
|
|
this.state = 1189;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 69) {
|
|
{
|
|
this.state = 1188;
|
|
this.acceptanceBinding();
|
|
}
|
|
}
|
|
|
|
}
|
|
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 acceptanceBinding(): AcceptanceBindingContext {
|
|
let localContext = new AcceptanceBindingContext(this.context, this.state);
|
|
this.enterRule(localContext, 136, QuixosCapabilityParser.RULE_acceptanceBinding);
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 1193;
|
|
this.match(QuixosCapabilityParser.ACCEPT);
|
|
this.state = 1194;
|
|
this.dependencyBindingBlock();
|
|
}
|
|
}
|
|
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, 138, QuixosCapabilityParser.RULE_statePrimitive);
|
|
let _la: number;
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 1196;
|
|
_la = this.tokenStream.LA(1);
|
|
if(!(_la === 1 || ((((_la - 99)) & ~0x1F) === 0 && ((1 << (_la - 99)) & 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, 140, QuixosCapabilityParser.RULE_edgePrimitive);
|
|
let _la: number;
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 1198;
|
|
_la = this.tokenStream.LA(1);
|
|
if(!(((((_la - 101)) & ~0x1F) === 0 && ((1 << (_la - 101)) & 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, 142, QuixosCapabilityParser.RULE_dependencyBindingBlock);
|
|
let _la: number;
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 1200;
|
|
this.match(QuixosCapabilityParser.WITH);
|
|
this.state = 1201;
|
|
this.match(QuixosCapabilityParser.LBRACE);
|
|
this.state = 1205;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 4294964466) !== 0) || ((((_la - 32)) & ~0x1F) === 0 && ((1 << (_la - 32)) & 33807) !== 0) || ((((_la - 77)) & ~0x1F) === 0 && ((1 << (_la - 77)) & 3145729) !== 0) || _la === 109 || _la === 152) {
|
|
{
|
|
{
|
|
this.state = 1202;
|
|
this.dependencyBinding();
|
|
}
|
|
}
|
|
this.state = 1207;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
}
|
|
this.state = 1208;
|
|
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, 144, QuixosCapabilityParser.RULE_dependencyBinding);
|
|
let _la: number;
|
|
try {
|
|
this.state = 1308;
|
|
this.errorHandler.sync(this);
|
|
switch (this.interpreter.adaptivePredict(this.tokenStream, 117, this.context) ) {
|
|
case 1:
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 1210;
|
|
this.identifier();
|
|
this.state = 1211;
|
|
this.match(QuixosCapabilityParser.TO);
|
|
this.state = 1212;
|
|
this.match(QuixosCapabilityParser.WORKSPACE);
|
|
this.state = 1213;
|
|
this.match(QuixosCapabilityParser.REFLECTION);
|
|
this.state = 1214;
|
|
this.match(QuixosCapabilityParser.LBRACK);
|
|
this.state = 1215;
|
|
this.identifierList();
|
|
this.state = 1216;
|
|
this.match(QuixosCapabilityParser.RBRACK);
|
|
this.state = 1217;
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
}
|
|
break;
|
|
case 2:
|
|
this.enterOuterAlt(localContext, 2);
|
|
{
|
|
this.state = 1219;
|
|
this.identifier();
|
|
this.state = 1220;
|
|
this.match(QuixosCapabilityParser.TO);
|
|
this.state = 1221;
|
|
this.match(QuixosCapabilityParser.STATE);
|
|
this.state = 1222;
|
|
this.identifier();
|
|
this.state = 1229;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 70) {
|
|
{
|
|
this.state = 1223;
|
|
this.match(QuixosCapabilityParser.VIA);
|
|
this.state = 1224;
|
|
this.match(QuixosCapabilityParser.EDGE);
|
|
this.state = 1225;
|
|
this.identifier();
|
|
this.state = 1226;
|
|
this.match(QuixosCapabilityParser.DOT);
|
|
this.state = 1227;
|
|
this.identifier();
|
|
}
|
|
}
|
|
|
|
this.state = 1231;
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
}
|
|
break;
|
|
case 3:
|
|
this.enterOuterAlt(localContext, 3);
|
|
{
|
|
this.state = 1233;
|
|
this.identifier();
|
|
this.state = 1234;
|
|
this.match(QuixosCapabilityParser.TO);
|
|
this.state = 1235;
|
|
this.match(QuixosCapabilityParser.EDGE);
|
|
this.state = 1236;
|
|
this.identifier();
|
|
this.state = 1237;
|
|
this.match(QuixosCapabilityParser.DOT);
|
|
this.state = 1238;
|
|
this.identifier();
|
|
this.state = 1245;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 70) {
|
|
{
|
|
this.state = 1239;
|
|
this.match(QuixosCapabilityParser.VIA);
|
|
this.state = 1240;
|
|
this.match(QuixosCapabilityParser.EDGE);
|
|
this.state = 1241;
|
|
this.identifier();
|
|
this.state = 1242;
|
|
this.match(QuixosCapabilityParser.DOT);
|
|
this.state = 1243;
|
|
this.identifier();
|
|
}
|
|
}
|
|
|
|
this.state = 1247;
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
}
|
|
break;
|
|
case 4:
|
|
this.enterOuterAlt(localContext, 4);
|
|
{
|
|
this.state = 1249;
|
|
this.identifier();
|
|
this.state = 1250;
|
|
this.match(QuixosCapabilityParser.TO);
|
|
this.state = 1251;
|
|
this.match(QuixosCapabilityParser.INTERFACE);
|
|
this.state = 1252;
|
|
this.identifier();
|
|
this.state = 1254;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 146) {
|
|
{
|
|
this.state = 1253;
|
|
this.typeArguments();
|
|
}
|
|
}
|
|
|
|
this.state = 1264;
|
|
this.errorHandler.sync(this);
|
|
switch (this.tokenStream.LA(1)) {
|
|
case QuixosCapabilityParser.VIA:
|
|
{
|
|
{
|
|
this.state = 1256;
|
|
this.match(QuixosCapabilityParser.VIA);
|
|
this.state = 1257;
|
|
this.match(QuixosCapabilityParser.EDGE);
|
|
this.state = 1258;
|
|
this.identifier();
|
|
this.state = 1259;
|
|
this.match(QuixosCapabilityParser.DOT);
|
|
this.state = 1260;
|
|
this.identifier();
|
|
}
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.FROM:
|
|
{
|
|
{
|
|
this.state = 1262;
|
|
this.match(QuixosCapabilityParser.FROM);
|
|
this.state = 1263;
|
|
this.match(QuixosCapabilityParser.INPUT);
|
|
}
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.SEMI:
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
this.state = 1266;
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
}
|
|
break;
|
|
case 5:
|
|
this.enterOuterAlt(localContext, 5);
|
|
{
|
|
this.state = 1268;
|
|
this.identifier();
|
|
this.state = 1269;
|
|
this.match(QuixosCapabilityParser.TO);
|
|
this.state = 1270;
|
|
this.match(QuixosCapabilityParser.CREATION);
|
|
this.state = 1271;
|
|
this.identifier();
|
|
this.state = 1272;
|
|
this.match(QuixosCapabilityParser.WITH);
|
|
this.state = 1273;
|
|
this.match(QuixosCapabilityParser.LBRACE);
|
|
this.state = 1277;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 4294964466) !== 0) || ((((_la - 32)) & ~0x1F) === 0 && ((1 << (_la - 32)) & 33807) !== 0) || ((((_la - 77)) & ~0x1F) === 0 && ((1 << (_la - 77)) & 3145729) !== 0) || _la === 109 || _la === 152) {
|
|
{
|
|
{
|
|
this.state = 1274;
|
|
this.creationOwnerMapping();
|
|
}
|
|
}
|
|
this.state = 1279;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
}
|
|
this.state = 1280;
|
|
this.match(QuixosCapabilityParser.RBRACE);
|
|
this.state = 1281;
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
}
|
|
break;
|
|
case 6:
|
|
this.enterOuterAlt(localContext, 6);
|
|
{
|
|
this.state = 1283;
|
|
this.identifier();
|
|
this.state = 1284;
|
|
this.match(QuixosCapabilityParser.TO);
|
|
this.state = 1285;
|
|
this.match(QuixosCapabilityParser.CONSTRUCTOR);
|
|
this.state = 1286;
|
|
this.identifier();
|
|
this.state = 1287;
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
}
|
|
break;
|
|
case 7:
|
|
this.enterOuterAlt(localContext, 7);
|
|
{
|
|
this.state = 1289;
|
|
this.identifier();
|
|
this.state = 1290;
|
|
this.match(QuixosCapabilityParser.TO);
|
|
this.state = 1292;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 11) {
|
|
{
|
|
this.state = 1291;
|
|
this.match(QuixosCapabilityParser.WORKSPACE);
|
|
}
|
|
}
|
|
|
|
this.state = 1294;
|
|
this.match(QuixosCapabilityParser.QUERY);
|
|
this.state = 1295;
|
|
this.identifier();
|
|
this.state = 1296;
|
|
this.match(QuixosCapabilityParser.DOT);
|
|
this.state = 1297;
|
|
this.identifier();
|
|
this.state = 1304;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 70) {
|
|
{
|
|
this.state = 1298;
|
|
this.match(QuixosCapabilityParser.VIA);
|
|
this.state = 1299;
|
|
this.match(QuixosCapabilityParser.EDGE);
|
|
this.state = 1300;
|
|
this.identifier();
|
|
this.state = 1301;
|
|
this.match(QuixosCapabilityParser.DOT);
|
|
this.state = 1302;
|
|
this.identifier();
|
|
}
|
|
}
|
|
|
|
this.state = 1306;
|
|
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, 146, QuixosCapabilityParser.RULE_constructorBindingDecl);
|
|
let _la: number;
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 1310;
|
|
this.match(QuixosCapabilityParser.CONSTRUCTOR);
|
|
this.state = 1311;
|
|
this.identifier();
|
|
this.state = 1312;
|
|
this.match(QuixosCapabilityParser.TO);
|
|
this.state = 1313;
|
|
this.identifier();
|
|
this.state = 1314;
|
|
this.match(QuixosCapabilityParser.DOT);
|
|
this.state = 1315;
|
|
this.identifier();
|
|
this.state = 1317;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 67) {
|
|
{
|
|
this.state = 1316;
|
|
this.dependencyBindingBlock();
|
|
}
|
|
}
|
|
|
|
this.state = 1319;
|
|
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, 148, QuixosCapabilityParser.RULE_valueType);
|
|
let _la: number;
|
|
try {
|
|
this.state = 1378;
|
|
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 = 1321;
|
|
this.scalarType();
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.UNIT:
|
|
this.enterOuterAlt(localContext, 2);
|
|
{
|
|
this.state = 1322;
|
|
this.match(QuixosCapabilityParser.UNIT);
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.WATCH_HANDLE:
|
|
this.enterOuterAlt(localContext, 3);
|
|
{
|
|
this.state = 1323;
|
|
this.match(QuixosCapabilityParser.WATCH_HANDLE);
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.MESSAGE:
|
|
this.enterOuterAlt(localContext, 4);
|
|
{
|
|
this.state = 1324;
|
|
this.match(QuixosCapabilityParser.MESSAGE);
|
|
this.state = 1325;
|
|
this.stringLiteral();
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.ATOM_REF:
|
|
this.enterOuterAlt(localContext, 5);
|
|
{
|
|
this.state = 1326;
|
|
this.match(QuixosCapabilityParser.ATOM_REF);
|
|
this.state = 1327;
|
|
this.match(QuixosCapabilityParser.LT);
|
|
this.state = 1328;
|
|
this.identifier();
|
|
this.state = 1329;
|
|
this.match(QuixosCapabilityParser.GT);
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.INTERFACE_REF:
|
|
this.enterOuterAlt(localContext, 6);
|
|
{
|
|
this.state = 1331;
|
|
this.match(QuixosCapabilityParser.INTERFACE_REF);
|
|
this.state = 1332;
|
|
this.match(QuixosCapabilityParser.LT);
|
|
this.state = 1333;
|
|
this.identifier();
|
|
this.state = 1335;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 146) {
|
|
{
|
|
this.state = 1334;
|
|
this.typeArguments();
|
|
}
|
|
}
|
|
|
|
this.state = 1337;
|
|
this.match(QuixosCapabilityParser.GT);
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.REF:
|
|
this.enterOuterAlt(localContext, 7);
|
|
{
|
|
this.state = 1339;
|
|
this.match(QuixosCapabilityParser.REF);
|
|
this.state = 1340;
|
|
this.match(QuixosCapabilityParser.LT);
|
|
this.state = 1341;
|
|
this.identifier();
|
|
this.state = 1342;
|
|
this.match(QuixosCapabilityParser.GT);
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.OPTIONAL:
|
|
this.enterOuterAlt(localContext, 8);
|
|
{
|
|
this.state = 1344;
|
|
this.match(QuixosCapabilityParser.OPTIONAL);
|
|
this.state = 1345;
|
|
this.match(QuixosCapabilityParser.LT);
|
|
this.state = 1346;
|
|
this.valueType();
|
|
this.state = 1347;
|
|
this.match(QuixosCapabilityParser.GT);
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.LIST:
|
|
this.enterOuterAlt(localContext, 9);
|
|
{
|
|
this.state = 1349;
|
|
this.match(QuixosCapabilityParser.LIST);
|
|
this.state = 1350;
|
|
this.match(QuixosCapabilityParser.LT);
|
|
this.state = 1351;
|
|
this.valueType();
|
|
this.state = 1352;
|
|
this.match(QuixosCapabilityParser.GT);
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.RECORD:
|
|
this.enterOuterAlt(localContext, 10);
|
|
{
|
|
this.state = 1354;
|
|
this.match(QuixosCapabilityParser.RECORD);
|
|
this.state = 1355;
|
|
this.match(QuixosCapabilityParser.LBRACE);
|
|
this.state = 1359;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 4294964466) !== 0) || ((((_la - 32)) & ~0x1F) === 0 && ((1 << (_la - 32)) & 33807) !== 0) || ((((_la - 77)) & ~0x1F) === 0 && ((1 << (_la - 77)) & 3145729) !== 0) || _la === 109 || _la === 152) {
|
|
{
|
|
{
|
|
this.state = 1356;
|
|
this.recordField();
|
|
}
|
|
}
|
|
this.state = 1361;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
}
|
|
this.state = 1362;
|
|
this.match(QuixosCapabilityParser.RBRACE);
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.VARIANT:
|
|
this.enterOuterAlt(localContext, 11);
|
|
{
|
|
this.state = 1363;
|
|
this.match(QuixosCapabilityParser.VARIANT);
|
|
this.state = 1364;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 1365;
|
|
this.stringLiteral();
|
|
this.state = 1366;
|
|
this.match(QuixosCapabilityParser.LBRACE);
|
|
this.state = 1368;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
do {
|
|
{
|
|
{
|
|
this.state = 1367;
|
|
this.variantCase();
|
|
}
|
|
}
|
|
this.state = 1370;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
} while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 4294964466) !== 0) || ((((_la - 32)) & ~0x1F) === 0 && ((1 << (_la - 32)) & 33807) !== 0) || ((((_la - 77)) & ~0x1F) === 0 && ((1 << (_la - 77)) & 3145729) !== 0) || _la === 109 || _la === 152);
|
|
this.state = 1372;
|
|
this.match(QuixosCapabilityParser.RBRACE);
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.EDIT:
|
|
case QuixosCapabilityParser.PRESENTATION:
|
|
case QuixosCapabilityParser.SUBJECT:
|
|
case QuixosCapabilityParser.FOR:
|
|
case QuixosCapabilityParser.CREATION:
|
|
case QuixosCapabilityParser.INITIALIZE:
|
|
case QuixosCapabilityParser.EXECUTION:
|
|
case QuixosCapabilityParser.SNAPSHOT:
|
|
case QuixosCapabilityParser.TRANSACTION:
|
|
case QuixosCapabilityParser.REMOTE:
|
|
case QuixosCapabilityParser.TARGETS:
|
|
case QuixosCapabilityParser.PORTABLE:
|
|
case QuixosCapabilityParser.REPLICA:
|
|
case QuixosCapabilityParser.LOCAL:
|
|
case QuixosCapabilityParser.FROM:
|
|
case QuixosCapabilityParser.RESULT_BYTES:
|
|
case QuixosCapabilityParser.RPC_CALLS:
|
|
case QuixosCapabilityParser.DEADLINE_MS:
|
|
case QuixosCapabilityParser.QUERY:
|
|
case QuixosCapabilityParser.REFLECTION:
|
|
case QuixosCapabilityParser.SPECIALIZE:
|
|
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.FRAGMENT:
|
|
case QuixosCapabilityParser.INTERFACES:
|
|
case QuixosCapabilityParser.SOURCE:
|
|
case QuixosCapabilityParser.START:
|
|
case QuixosCapabilityParser.STOP:
|
|
case QuixosCapabilityParser.REGISTER:
|
|
case QuixosCapabilityParser.IDENTIFIER:
|
|
this.enterOuterAlt(localContext, 12);
|
|
{
|
|
this.state = 1374;
|
|
this.identifier();
|
|
this.state = 1376;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 146) {
|
|
{
|
|
this.state = 1375;
|
|
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, 150, QuixosCapabilityParser.RULE_recordField);
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 1380;
|
|
this.identifier();
|
|
this.state = 1381;
|
|
this.match(QuixosCapabilityParser.COLON);
|
|
this.state = 1382;
|
|
this.valueType();
|
|
this.state = 1383;
|
|
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 variantCase(): VariantCaseContext {
|
|
let localContext = new VariantCaseContext(this.context, this.state);
|
|
this.enterRule(localContext, 152, QuixosCapabilityParser.RULE_variantCase);
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 1385;
|
|
this.identifier();
|
|
this.state = 1386;
|
|
this.match(QuixosCapabilityParser.ID);
|
|
this.state = 1387;
|
|
this.stringLiteral();
|
|
this.state = 1388;
|
|
this.match(QuixosCapabilityParser.COLON);
|
|
this.state = 1389;
|
|
this.valueType();
|
|
this.state = 1390;
|
|
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, 154, QuixosCapabilityParser.RULE_scalarType);
|
|
let _la: number;
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 1392;
|
|
_la = this.tokenStream.LA(1);
|
|
if(!(((((_la - 124)) & ~0x1F) === 0 && ((1 << (_la - 124)) & 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, 156, QuixosCapabilityParser.RULE_cardinality);
|
|
let _la: number;
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 1394;
|
|
_la = this.tokenStream.LA(1);
|
|
if(!(((((_la - 111)) & ~0x1F) === 0 && ((1 << (_la - 111)) & 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, 158, QuixosCapabilityParser.RULE_jsonLiteral);
|
|
try {
|
|
this.state = 1404;
|
|
this.errorHandler.sync(this);
|
|
switch (this.tokenStream.LA(1)) {
|
|
case QuixosCapabilityParser.STRING_LITERAL:
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 1396;
|
|
this.stringLiteral();
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.INTEGER:
|
|
this.enterOuterAlt(localContext, 2);
|
|
{
|
|
this.state = 1397;
|
|
this.match(QuixosCapabilityParser.INTEGER);
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.JSON_NUMBER:
|
|
this.enterOuterAlt(localContext, 3);
|
|
{
|
|
this.state = 1398;
|
|
this.match(QuixosCapabilityParser.JSON_NUMBER);
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.TRUE:
|
|
this.enterOuterAlt(localContext, 4);
|
|
{
|
|
this.state = 1399;
|
|
this.match(QuixosCapabilityParser.TRUE);
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.FALSE:
|
|
this.enterOuterAlt(localContext, 5);
|
|
{
|
|
this.state = 1400;
|
|
this.match(QuixosCapabilityParser.FALSE);
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.NULL:
|
|
this.enterOuterAlt(localContext, 6);
|
|
{
|
|
this.state = 1401;
|
|
this.match(QuixosCapabilityParser.NULL);
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.LBRACE:
|
|
this.enterOuterAlt(localContext, 7);
|
|
{
|
|
this.state = 1402;
|
|
this.jsonObject();
|
|
}
|
|
break;
|
|
case QuixosCapabilityParser.LBRACK:
|
|
this.enterOuterAlt(localContext, 8);
|
|
{
|
|
this.state = 1403;
|
|
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, 160, QuixosCapabilityParser.RULE_jsonObject);
|
|
let _la: number;
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 1406;
|
|
this.match(QuixosCapabilityParser.LBRACE);
|
|
this.state = 1415;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (_la === 153) {
|
|
{
|
|
this.state = 1407;
|
|
this.jsonMember();
|
|
this.state = 1412;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
while (_la === 138) {
|
|
{
|
|
{
|
|
this.state = 1408;
|
|
this.match(QuixosCapabilityParser.COMMA);
|
|
this.state = 1409;
|
|
this.jsonMember();
|
|
}
|
|
}
|
|
this.state = 1414;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
}
|
|
}
|
|
}
|
|
|
|
this.state = 1417;
|
|
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, 162, QuixosCapabilityParser.RULE_jsonMember);
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 1419;
|
|
this.stringLiteral();
|
|
this.state = 1420;
|
|
this.match(QuixosCapabilityParser.COLON);
|
|
this.state = 1421;
|
|
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, 164, QuixosCapabilityParser.RULE_jsonArray);
|
|
let _la: number;
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 1423;
|
|
this.match(QuixosCapabilityParser.LBRACK);
|
|
this.state = 1432;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
if (((((_la - 132)) & ~0x1F) === 0 && ((1 << (_la - 132)) & 2884871) !== 0)) {
|
|
{
|
|
this.state = 1424;
|
|
this.jsonLiteral();
|
|
this.state = 1429;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
while (_la === 138) {
|
|
{
|
|
{
|
|
this.state = 1425;
|
|
this.match(QuixosCapabilityParser.COMMA);
|
|
this.state = 1426;
|
|
this.jsonLiteral();
|
|
}
|
|
}
|
|
this.state = 1431;
|
|
this.errorHandler.sync(this);
|
|
_la = this.tokenStream.LA(1);
|
|
}
|
|
}
|
|
}
|
|
|
|
this.state = 1434;
|
|
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, 166, QuixosCapabilityParser.RULE_identifier);
|
|
let _la: number;
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 1436;
|
|
_la = this.tokenStream.LA(1);
|
|
if(!((((_la) & ~0x1F) === 0 && ((1 << _la) & 4294964466) !== 0) || ((((_la - 32)) & ~0x1F) === 0 && ((1 << (_la - 32)) & 33807) !== 0) || ((((_la - 77)) & ~0x1F) === 0 && ((1 << (_la - 77)) & 3145729) !== 0) || _la === 109 || _la === 152)) {
|
|
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, 168, QuixosCapabilityParser.RULE_stringLiteral);
|
|
try {
|
|
this.enterOuterAlt(localContext, 1);
|
|
{
|
|
this.state = 1438;
|
|
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,156,1441,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,2,69,7,69,2,70,7,70,2,71,7,71,2,
|
|
72,7,72,2,73,7,73,2,74,7,74,2,75,7,75,2,76,7,76,2,77,7,77,2,78,7,
|
|
78,2,79,7,79,2,80,7,80,2,81,7,81,2,82,7,82,2,83,7,83,2,84,7,84,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,183,8,0,1,1,1,
|
|
1,1,1,5,1,188,8,1,10,1,12,1,191,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,209,8,3,10,3,12,3,212,9,
|
|
3,1,3,1,3,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,3,4,224,8,4,1,5,1,5,1,
|
|
5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,3,5,236,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,256,8,8,1,
|
|
9,1,9,1,9,1,9,1,9,1,9,3,9,264,8,9,1,9,1,9,1,10,5,10,269,8,10,10,
|
|
10,12,10,272,9,10,1,10,1,10,1,10,3,10,277,8,10,1,10,1,10,1,10,1,
|
|
10,1,10,1,10,1,10,1,10,5,10,287,8,10,10,10,12,10,290,9,10,3,10,292,
|
|
8,10,1,10,1,10,5,10,296,8,10,10,10,12,10,299,9,10,1,10,1,10,1,11,
|
|
1,11,1,11,1,11,5,11,307,8,11,10,11,12,11,310,9,11,1,11,1,11,1,12,
|
|
1,12,1,12,1,12,3,12,318,8,12,1,12,1,12,1,12,1,12,1,12,1,12,5,12,
|
|
326,8,12,10,12,12,12,329,9,12,3,12,331,8,12,3,12,333,8,12,1,13,1,
|
|
13,3,13,337,8,13,1,14,1,14,1,14,1,14,5,14,343,8,14,10,14,12,14,346,
|
|
9,14,1,14,1,14,1,15,1,15,1,15,1,15,1,15,1,15,1,15,3,15,357,8,15,
|
|
1,16,1,16,1,16,3,16,362,8,16,1,16,1,16,1,16,1,16,1,17,1,17,1,17,
|
|
1,17,3,17,372,8,17,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,3,18,
|
|
382,8,18,1,18,1,18,1,19,3,19,387,8,19,1,19,1,19,1,19,1,19,1,19,1,
|
|
19,1,19,1,19,1,19,1,19,1,19,1,19,1,19,3,19,402,8,19,1,19,1,19,1,
|
|
19,1,20,3,20,408,8,20,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,20,5,
|
|
20,418,8,20,10,20,12,20,421,9,20,1,20,1,20,1,21,1,21,1,21,1,21,3,
|
|
21,429,8,21,1,21,1,21,1,21,1,21,1,21,1,21,3,21,437,8,21,1,21,1,21,
|
|
1,21,1,21,1,21,1,21,3,21,445,8,21,1,21,1,21,1,21,1,21,1,21,1,21,
|
|
1,21,1,21,1,21,1,21,1,21,3,21,458,8,21,1,22,3,22,461,8,22,1,22,1,
|
|
22,1,22,1,22,1,22,1,22,1,22,1,22,3,22,471,8,22,1,22,1,22,3,22,475,
|
|
8,22,1,22,1,22,5,22,479,8,22,10,22,12,22,482,9,22,1,22,1,22,1,23,
|
|
1,23,3,23,488,8,23,1,24,1,24,1,24,1,24,3,24,494,8,24,1,24,1,24,1,
|
|
24,1,24,1,24,1,24,3,24,502,8,24,1,24,1,24,1,24,1,24,1,24,1,24,3,
|
|
24,510,8,24,1,24,1,24,1,24,1,24,1,24,1,24,1,24,1,24,1,24,1,24,1,
|
|
24,3,24,523,8,24,1,25,1,25,1,25,1,25,1,25,3,25,530,8,25,1,25,1,25,
|
|
3,25,534,8,25,1,26,5,26,537,8,26,10,26,12,26,540,9,26,1,26,1,26,
|
|
1,26,1,26,1,26,1,26,1,26,1,26,3,26,550,8,26,1,26,1,26,5,26,554,8,
|
|
26,10,26,12,26,557,9,26,1,26,1,26,1,27,1,27,1,27,1,27,1,27,1,27,
|
|
3,27,567,8,27,1,28,1,28,1,28,1,28,1,28,1,28,1,28,1,28,1,28,1,28,
|
|
1,29,1,29,1,29,1,29,1,29,1,29,1,29,1,29,1,29,1,29,1,29,1,29,1,30,
|
|
1,30,3,30,593,8,30,1,30,1,30,3,30,597,8,30,1,30,1,30,1,30,1,30,3,
|
|
30,603,8,30,1,30,1,30,1,30,1,30,1,30,1,30,1,30,5,30,612,8,30,10,
|
|
30,12,30,615,9,30,1,30,1,30,1,30,1,30,1,30,1,30,3,30,623,8,30,1,
|
|
30,1,30,5,30,627,8,30,10,30,12,30,630,9,30,1,30,1,30,3,30,634,8,
|
|
30,3,30,636,8,30,1,31,1,31,1,31,1,31,1,31,1,31,1,31,1,31,1,31,1,
|
|
32,1,32,1,32,1,32,1,32,1,32,1,32,1,32,1,32,1,32,1,32,1,32,1,32,1,
|
|
32,1,32,1,32,1,32,1,32,5,32,665,8,32,10,32,12,32,668,9,32,1,32,3,
|
|
32,671,8,32,1,32,1,32,1,32,1,32,3,32,677,8,32,1,32,1,32,1,32,1,32,
|
|
1,32,1,32,1,32,1,32,1,32,1,32,1,32,1,32,1,32,1,32,1,32,1,32,1,32,
|
|
1,32,1,32,1,32,1,32,1,32,1,32,1,32,1,32,3,32,704,8,32,1,33,1,33,
|
|
1,33,1,33,1,33,1,34,1,34,1,34,3,34,714,8,34,1,34,1,34,1,34,1,34,
|
|
1,34,1,34,1,34,1,34,1,34,3,34,725,8,34,1,34,3,34,728,8,34,1,34,1,
|
|
34,1,34,3,34,733,8,34,1,34,3,34,736,8,34,1,34,3,34,739,8,34,1,34,
|
|
1,34,1,35,1,35,1,35,3,35,746,8,35,1,35,1,35,1,35,1,35,1,35,1,35,
|
|
1,35,3,35,755,8,35,1,35,3,35,758,8,35,1,35,3,35,761,8,35,1,35,3,
|
|
35,764,8,35,1,35,1,35,1,36,1,36,1,36,1,36,1,37,1,37,1,37,1,37,1,
|
|
37,1,37,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,3,38,787,8,
|
|
38,1,39,1,39,1,39,1,39,1,39,5,39,794,8,39,10,39,12,39,797,9,39,1,
|
|
39,1,39,1,40,1,40,1,40,1,40,1,40,1,40,1,40,1,40,1,40,3,40,810,8,
|
|
40,1,40,1,40,1,41,1,41,1,41,1,42,1,42,1,43,1,43,1,43,1,43,1,43,1,
|
|
43,1,43,1,43,1,43,1,43,5,43,829,8,43,10,43,12,43,832,9,43,3,43,834,
|
|
8,43,1,43,3,43,837,8,43,1,44,1,44,1,44,5,44,842,8,44,10,44,12,44,
|
|
845,9,44,1,45,1,45,1,45,5,45,850,8,45,10,45,12,45,853,9,45,1,45,
|
|
1,45,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,
|
|
1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,
|
|
1,46,1,46,3,46,884,8,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,
|
|
1,46,1,46,3,46,896,8,46,1,46,3,46,899,8,46,1,46,1,46,3,46,903,8,
|
|
46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,
|
|
46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,3,46,925,8,46,1,46,1,46,1,
|
|
46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,3,46,939,8,46,1,
|
|
47,1,47,1,47,1,47,5,47,945,8,47,10,47,12,47,948,9,47,1,47,1,47,1,
|
|
48,1,48,1,49,1,49,1,49,1,50,1,50,3,50,959,8,50,1,51,1,51,1,51,1,
|
|
51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,3,51,973,8,51,1,51,1,
|
|
51,1,52,1,52,1,52,1,52,1,52,1,52,3,52,983,8,52,1,53,1,53,1,53,1,
|
|
53,1,53,1,53,1,53,1,53,1,53,1,54,1,54,1,54,1,54,1,54,1,54,1,54,3,
|
|
54,1001,8,54,1,54,1,54,3,54,1005,8,54,1,54,3,54,1008,8,54,1,54,1,
|
|
54,3,54,1012,8,54,1,54,3,54,1015,8,54,1,54,1,54,1,55,1,55,3,55,1021,
|
|
8,55,1,55,1,55,3,55,1025,8,55,1,55,1,55,1,55,3,55,1030,8,55,1,55,
|
|
1,55,3,55,1034,8,55,1,55,1,55,3,55,1038,8,55,1,55,1,55,5,55,1042,
|
|
8,55,10,55,12,55,1045,9,55,1,55,1,55,1,56,1,56,1,57,1,57,1,57,1,
|
|
57,1,57,1,57,1,57,3,57,1058,8,57,1,58,1,58,1,58,1,58,1,58,1,58,1,
|
|
58,1,58,1,59,1,59,1,59,5,59,1071,8,59,10,59,12,59,1074,9,59,1,59,
|
|
1,59,1,59,1,60,1,60,1,60,1,60,1,60,1,60,1,60,1,60,1,60,1,60,1,60,
|
|
1,60,1,60,1,60,3,60,1093,8,60,1,61,1,61,1,61,1,61,1,61,5,61,1100,
|
|
8,61,10,61,12,61,1103,9,61,1,61,1,61,1,62,1,62,1,62,1,62,1,62,1,
|
|
62,1,62,1,63,1,63,1,63,1,63,1,63,1,63,1,63,1,63,1,63,1,63,1,63,1,
|
|
63,1,63,1,63,1,64,1,64,1,64,1,64,1,64,1,64,3,64,1134,8,64,1,64,1,
|
|
64,1,65,1,65,1,65,1,65,1,66,1,66,1,66,1,66,1,66,1,66,1,66,1,66,1,
|
|
66,1,66,1,66,1,66,3,66,1154,8,66,1,67,1,67,1,67,1,67,1,67,1,67,1,
|
|
67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,3,67,1174,
|
|
8,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,3,67,1184,8,67,1,67,
|
|
3,67,1187,8,67,1,67,3,67,1190,8,67,3,67,1192,8,67,1,68,1,68,1,68,
|
|
1,69,1,69,1,70,1,70,1,71,1,71,1,71,5,71,1204,8,71,10,71,12,71,1207,
|
|
9,71,1,71,1,71,1,72,1,72,1,72,1,72,1,72,1,72,1,72,1,72,1,72,1,72,
|
|
1,72,1,72,1,72,1,72,1,72,1,72,1,72,1,72,1,72,3,72,1230,8,72,1,72,
|
|
1,72,1,72,1,72,1,72,1,72,1,72,1,72,1,72,1,72,1,72,1,72,1,72,1,72,
|
|
3,72,1246,8,72,1,72,1,72,1,72,1,72,1,72,1,72,1,72,3,72,1255,8,72,
|
|
1,72,1,72,1,72,1,72,1,72,1,72,1,72,1,72,3,72,1265,8,72,1,72,1,72,
|
|
1,72,1,72,1,72,1,72,1,72,1,72,1,72,5,72,1276,8,72,10,72,12,72,1279,
|
|
9,72,1,72,1,72,1,72,1,72,1,72,1,72,1,72,1,72,1,72,1,72,1,72,1,72,
|
|
3,72,1293,8,72,1,72,1,72,1,72,1,72,1,72,1,72,1,72,1,72,1,72,1,72,
|
|
3,72,1305,8,72,1,72,1,72,3,72,1309,8,72,1,73,1,73,1,73,1,73,1,73,
|
|
1,73,1,73,3,73,1318,8,73,1,73,1,73,1,74,1,74,1,74,1,74,1,74,1,74,
|
|
1,74,1,74,1,74,1,74,1,74,1,74,1,74,1,74,3,74,1336,8,74,1,74,1,74,
|
|
1,74,1,74,1,74,1,74,1,74,1,74,1,74,1,74,1,74,1,74,1,74,1,74,1,74,
|
|
1,74,1,74,1,74,1,74,1,74,5,74,1358,8,74,10,74,12,74,1361,9,74,1,
|
|
74,1,74,1,74,1,74,1,74,1,74,4,74,1369,8,74,11,74,12,74,1370,1,74,
|
|
1,74,1,74,1,74,3,74,1377,8,74,3,74,1379,8,74,1,75,1,75,1,75,1,75,
|
|
1,75,1,76,1,76,1,76,1,76,1,76,1,76,1,76,1,77,1,77,1,78,1,78,1,79,
|
|
1,79,1,79,1,79,1,79,1,79,1,79,1,79,3,79,1405,8,79,1,80,1,80,1,80,
|
|
1,80,5,80,1411,8,80,10,80,12,80,1414,9,80,3,80,1416,8,80,1,80,1,
|
|
80,1,81,1,81,1,81,1,81,1,82,1,82,1,82,1,82,5,82,1428,8,82,10,82,
|
|
12,82,1431,9,82,3,82,1433,8,82,1,82,1,82,1,83,1,83,1,84,1,84,1,84,
|
|
0,0,85,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,138,140,142,144,146,148,150,152,
|
|
154,156,158,160,162,164,166,168,0,10,1,0,49,50,2,0,17,17,35,35,1,
|
|
0,13,14,1,0,104,108,3,0,1,1,99,103,105,106,3,0,1,1,99,100,105,106,
|
|
2,0,101,103,105,106,1,0,124,131,1,0,111,114,10,0,1,1,4,7,10,10,12,
|
|
35,42,42,47,47,77,77,97,98,109,109,152,152,1560,0,182,1,0,0,0,2,
|
|
184,1,0,0,0,4,194,1,0,0,0,6,198,1,0,0,0,8,223,1,0,0,0,10,235,1,0,
|
|
0,0,12,237,1,0,0,0,14,244,1,0,0,0,16,255,1,0,0,0,18,257,1,0,0,0,
|
|
20,270,1,0,0,0,22,302,1,0,0,0,24,332,1,0,0,0,26,334,1,0,0,0,28,338,
|
|
1,0,0,0,30,356,1,0,0,0,32,358,1,0,0,0,34,371,1,0,0,0,36,373,1,0,
|
|
0,0,38,386,1,0,0,0,40,407,1,0,0,0,42,457,1,0,0,0,44,460,1,0,0,0,
|
|
46,485,1,0,0,0,48,522,1,0,0,0,50,533,1,0,0,0,52,538,1,0,0,0,54,566,
|
|
1,0,0,0,56,568,1,0,0,0,58,578,1,0,0,0,60,590,1,0,0,0,62,637,1,0,
|
|
0,0,64,703,1,0,0,0,66,705,1,0,0,0,68,710,1,0,0,0,70,742,1,0,0,0,
|
|
72,767,1,0,0,0,74,771,1,0,0,0,76,786,1,0,0,0,78,788,1,0,0,0,80,800,
|
|
1,0,0,0,82,813,1,0,0,0,84,816,1,0,0,0,86,836,1,0,0,0,88,838,1,0,
|
|
0,0,90,846,1,0,0,0,92,938,1,0,0,0,94,940,1,0,0,0,96,951,1,0,0,0,
|
|
98,953,1,0,0,0,100,958,1,0,0,0,102,960,1,0,0,0,104,982,1,0,0,0,106,
|
|
984,1,0,0,0,108,993,1,0,0,0,110,1018,1,0,0,0,112,1048,1,0,0,0,114,
|
|
1057,1,0,0,0,116,1059,1,0,0,0,118,1067,1,0,0,0,120,1092,1,0,0,0,
|
|
122,1094,1,0,0,0,124,1106,1,0,0,0,126,1113,1,0,0,0,128,1127,1,0,
|
|
0,0,130,1137,1,0,0,0,132,1153,1,0,0,0,134,1191,1,0,0,0,136,1193,
|
|
1,0,0,0,138,1196,1,0,0,0,140,1198,1,0,0,0,142,1200,1,0,0,0,144,1308,
|
|
1,0,0,0,146,1310,1,0,0,0,148,1378,1,0,0,0,150,1380,1,0,0,0,152,1385,
|
|
1,0,0,0,154,1392,1,0,0,0,156,1394,1,0,0,0,158,1404,1,0,0,0,160,1406,
|
|
1,0,0,0,162,1419,1,0,0,0,164,1423,1,0,0,0,166,1436,1,0,0,0,168,1438,
|
|
1,0,0,0,170,171,3,6,3,0,171,172,5,0,0,1,172,183,1,0,0,0,173,174,
|
|
3,20,10,0,174,175,5,0,0,1,175,183,1,0,0,0,176,177,3,52,26,0,177,
|
|
178,5,0,0,1,178,183,1,0,0,0,179,180,3,2,1,0,180,181,5,0,0,1,181,
|
|
183,1,0,0,0,182,170,1,0,0,0,182,173,1,0,0,0,182,176,1,0,0,0,182,
|
|
179,1,0,0,0,183,1,1,0,0,0,184,185,5,42,0,0,185,189,5,140,0,0,186,
|
|
188,3,8,4,0,187,186,1,0,0,0,188,191,1,0,0,0,189,187,1,0,0,0,189,
|
|
190,1,0,0,0,190,192,1,0,0,0,191,189,1,0,0,0,192,193,5,141,0,0,193,
|
|
3,1,0,0,0,194,195,5,43,0,0,195,196,3,168,84,0,196,197,5,137,0,0,
|
|
197,5,1,0,0,0,198,199,5,11,0,0,199,200,3,166,83,0,200,201,5,87,0,
|
|
0,201,202,3,168,84,0,202,203,5,80,0,0,203,204,3,168,84,0,204,205,
|
|
5,79,0,0,205,206,3,168,84,0,206,210,5,140,0,0,207,209,3,8,4,0,208,
|
|
207,1,0,0,0,209,212,1,0,0,0,210,208,1,0,0,0,210,211,1,0,0,0,211,
|
|
213,1,0,0,0,212,210,1,0,0,0,213,214,5,141,0,0,214,7,1,0,0,0,215,
|
|
224,3,4,2,0,216,224,3,18,9,0,217,224,3,10,5,0,218,224,3,98,49,0,
|
|
219,224,3,110,55,0,220,224,3,146,73,0,221,224,3,58,29,0,222,224,
|
|
3,32,16,0,223,215,1,0,0,0,223,216,1,0,0,0,223,217,1,0,0,0,223,218,
|
|
1,0,0,0,223,219,1,0,0,0,223,220,1,0,0,0,223,221,1,0,0,0,223,222,
|
|
1,0,0,0,224,9,1,0,0,0,225,226,5,43,0,0,226,227,5,46,0,0,227,228,
|
|
3,166,83,0,228,229,5,137,0,0,229,236,1,0,0,0,230,231,5,43,0,0,231,
|
|
232,5,48,0,0,232,233,3,166,83,0,233,234,5,137,0,0,234,236,1,0,0,
|
|
0,235,225,1,0,0,0,235,230,1,0,0,0,236,11,1,0,0,0,237,238,5,44,0,
|
|
0,238,239,5,45,0,0,239,240,3,166,83,0,240,241,5,87,0,0,241,242,3,
|
|
168,84,0,242,243,5,137,0,0,243,13,1,0,0,0,244,245,5,44,0,0,245,246,
|
|
5,46,0,0,246,247,3,166,83,0,247,248,5,80,0,0,248,249,3,168,84,0,
|
|
249,250,5,137,0,0,250,15,1,0,0,0,251,256,3,10,5,0,252,256,3,12,6,
|
|
0,253,256,3,14,7,0,254,256,3,32,16,0,255,251,1,0,0,0,255,252,1,0,
|
|
0,0,255,253,1,0,0,0,255,254,1,0,0,0,256,17,1,0,0,0,257,258,5,45,
|
|
0,0,258,259,3,166,83,0,259,260,5,87,0,0,260,263,3,168,84,0,261,262,
|
|
5,88,0,0,262,264,3,168,84,0,263,261,1,0,0,0,263,264,1,0,0,0,264,
|
|
265,1,0,0,0,265,266,5,137,0,0,266,19,1,0,0,0,267,269,3,16,8,0,268,
|
|
267,1,0,0,0,269,272,1,0,0,0,270,268,1,0,0,0,270,271,1,0,0,0,271,
|
|
273,1,0,0,0,272,270,1,0,0,0,273,274,5,46,0,0,274,276,3,166,83,0,
|
|
275,277,3,22,11,0,276,275,1,0,0,0,276,277,1,0,0,0,277,278,1,0,0,
|
|
0,278,279,5,87,0,0,279,280,3,168,84,0,280,281,5,80,0,0,281,291,3,
|
|
168,84,0,282,283,5,92,0,0,283,288,3,26,13,0,284,285,5,138,0,0,285,
|
|
287,3,26,13,0,286,284,1,0,0,0,287,290,1,0,0,0,288,286,1,0,0,0,288,
|
|
289,1,0,0,0,289,292,1,0,0,0,290,288,1,0,0,0,291,282,1,0,0,0,291,
|
|
292,1,0,0,0,292,293,1,0,0,0,293,297,5,140,0,0,294,296,3,34,17,0,
|
|
295,294,1,0,0,0,296,299,1,0,0,0,297,295,1,0,0,0,297,298,1,0,0,0,
|
|
298,300,1,0,0,0,299,297,1,0,0,0,300,301,5,141,0,0,301,21,1,0,0,0,
|
|
302,303,5,146,0,0,303,308,3,24,12,0,304,305,5,138,0,0,305,307,3,
|
|
24,12,0,306,304,1,0,0,0,307,310,1,0,0,0,308,306,1,0,0,0,308,309,
|
|
1,0,0,0,309,311,1,0,0,0,310,308,1,0,0,0,311,312,5,147,0,0,312,23,
|
|
1,0,0,0,313,314,5,49,0,0,314,317,3,166,83,0,315,316,5,136,0,0,316,
|
|
318,5,39,0,0,317,315,1,0,0,0,317,318,1,0,0,0,318,333,1,0,0,0,319,
|
|
320,5,38,0,0,320,330,3,166,83,0,321,322,5,40,0,0,322,327,3,26,13,
|
|
0,323,324,5,148,0,0,324,326,3,26,13,0,325,323,1,0,0,0,326,329,1,
|
|
0,0,0,327,325,1,0,0,0,327,328,1,0,0,0,328,331,1,0,0,0,329,327,1,
|
|
0,0,0,330,321,1,0,0,0,330,331,1,0,0,0,331,333,1,0,0,0,332,313,1,
|
|
0,0,0,332,319,1,0,0,0,333,25,1,0,0,0,334,336,3,166,83,0,335,337,
|
|
3,28,14,0,336,335,1,0,0,0,336,337,1,0,0,0,337,27,1,0,0,0,338,339,
|
|
5,146,0,0,339,344,3,30,15,0,340,341,5,138,0,0,341,343,3,30,15,0,
|
|
342,340,1,0,0,0,343,346,1,0,0,0,344,342,1,0,0,0,344,345,1,0,0,0,
|
|
345,347,1,0,0,0,346,344,1,0,0,0,347,348,5,147,0,0,348,29,1,0,0,0,
|
|
349,350,5,45,0,0,350,357,3,166,83,0,351,352,5,46,0,0,352,357,3,26,
|
|
13,0,353,354,5,38,0,0,354,357,3,166,83,0,355,357,3,148,74,0,356,
|
|
349,1,0,0,0,356,351,1,0,0,0,356,353,1,0,0,0,356,355,1,0,0,0,357,
|
|
31,1,0,0,0,358,359,5,37,0,0,359,361,3,166,83,0,360,362,3,22,11,0,
|
|
361,360,1,0,0,0,361,362,1,0,0,0,362,363,1,0,0,0,363,364,5,149,0,
|
|
0,364,365,3,148,74,0,365,366,5,137,0,0,366,33,1,0,0,0,367,372,3,
|
|
40,20,0,368,372,3,44,22,0,369,372,3,38,19,0,370,372,3,36,18,0,371,
|
|
367,1,0,0,0,371,368,1,0,0,0,371,369,1,0,0,0,371,370,1,0,0,0,372,
|
|
35,1,0,0,0,373,374,5,2,0,0,374,375,3,166,83,0,375,376,5,87,0,0,376,
|
|
377,3,168,84,0,377,378,5,3,0,0,378,381,3,168,84,0,379,380,5,5,0,
|
|
0,380,382,3,50,25,0,381,379,1,0,0,0,381,382,1,0,0,0,382,383,1,0,
|
|
0,0,383,384,5,137,0,0,384,37,1,0,0,0,385,387,5,60,0,0,386,385,1,
|
|
0,0,0,386,387,1,0,0,0,387,388,1,0,0,0,388,389,5,52,0,0,389,390,3,
|
|
166,83,0,390,391,5,87,0,0,391,392,3,168,84,0,392,393,5,136,0,0,393,
|
|
394,3,148,74,0,394,395,5,135,0,0,395,396,3,148,74,0,396,397,5,140,
|
|
0,0,397,398,5,104,0,0,398,399,5,87,0,0,399,401,3,168,84,0,400,402,
|
|
3,76,38,0,401,400,1,0,0,0,401,402,1,0,0,0,402,403,1,0,0,0,403,404,
|
|
5,137,0,0,404,405,5,141,0,0,405,39,1,0,0,0,406,408,3,46,23,0,407,
|
|
406,1,0,0,0,407,408,1,0,0,0,408,409,1,0,0,0,409,410,7,0,0,0,410,
|
|
411,3,166,83,0,411,412,5,87,0,0,412,413,3,168,84,0,413,414,5,136,
|
|
0,0,414,415,3,148,74,0,415,419,5,140,0,0,416,418,3,42,21,0,417,416,
|
|
1,0,0,0,418,421,1,0,0,0,419,417,1,0,0,0,419,420,1,0,0,0,420,422,
|
|
1,0,0,0,421,419,1,0,0,0,422,423,5,141,0,0,423,41,1,0,0,0,424,425,
|
|
5,94,0,0,425,426,5,87,0,0,426,428,3,168,84,0,427,429,3,76,38,0,428,
|
|
427,1,0,0,0,428,429,1,0,0,0,429,430,1,0,0,0,430,431,5,137,0,0,431,
|
|
458,1,0,0,0,432,433,5,95,0,0,433,434,5,87,0,0,434,436,3,168,84,0,
|
|
435,437,3,76,38,0,436,435,1,0,0,0,436,437,1,0,0,0,437,438,1,0,0,
|
|
0,438,439,5,137,0,0,439,458,1,0,0,0,440,441,5,1,0,0,441,442,5,87,
|
|
0,0,442,444,3,168,84,0,443,445,3,76,38,0,444,443,1,0,0,0,444,445,
|
|
1,0,0,0,445,446,1,0,0,0,446,447,5,137,0,0,447,458,1,0,0,0,448,449,
|
|
5,96,0,0,449,450,5,97,0,0,450,451,5,87,0,0,451,452,3,168,84,0,452,
|
|
453,5,98,0,0,453,454,5,87,0,0,454,455,3,168,84,0,455,456,5,137,0,
|
|
0,456,458,1,0,0,0,457,424,1,0,0,0,457,432,1,0,0,0,457,440,1,0,0,
|
|
0,457,448,1,0,0,0,458,43,1,0,0,0,459,461,3,46,23,0,460,459,1,0,0,
|
|
0,460,461,1,0,0,0,461,462,1,0,0,0,462,463,5,51,0,0,463,464,3,166,
|
|
83,0,464,465,5,87,0,0,465,466,3,168,84,0,466,467,5,136,0,0,467,468,
|
|
3,156,78,0,468,470,3,50,25,0,469,471,5,115,0,0,470,469,1,0,0,0,470,
|
|
471,1,0,0,0,471,474,1,0,0,0,472,473,5,85,0,0,473,475,3,168,84,0,
|
|
474,472,1,0,0,0,474,475,1,0,0,0,475,476,1,0,0,0,476,480,5,140,0,
|
|
0,477,479,3,48,24,0,478,477,1,0,0,0,479,482,1,0,0,0,480,478,1,0,
|
|
0,0,480,481,1,0,0,0,481,483,1,0,0,0,482,480,1,0,0,0,483,484,5,141,
|
|
0,0,484,45,1,0,0,0,485,487,5,34,0,0,486,488,7,1,0,0,487,486,1,0,
|
|
0,0,487,488,1,0,0,0,488,47,1,0,0,0,489,490,5,101,0,0,490,491,5,87,
|
|
0,0,491,493,3,168,84,0,492,494,3,76,38,0,493,492,1,0,0,0,493,494,
|
|
1,0,0,0,494,495,1,0,0,0,495,496,5,137,0,0,496,523,1,0,0,0,497,498,
|
|
5,102,0,0,498,499,5,87,0,0,499,501,3,168,84,0,500,502,3,76,38,0,
|
|
501,500,1,0,0,0,501,502,1,0,0,0,502,503,1,0,0,0,503,504,5,137,0,
|
|
0,504,523,1,0,0,0,505,506,5,103,0,0,506,507,5,87,0,0,507,509,3,168,
|
|
84,0,508,510,3,76,38,0,509,508,1,0,0,0,509,510,1,0,0,0,510,511,1,
|
|
0,0,0,511,512,5,137,0,0,512,523,1,0,0,0,513,514,5,96,0,0,514,515,
|
|
5,97,0,0,515,516,5,87,0,0,516,517,3,168,84,0,517,518,5,98,0,0,518,
|
|
519,5,87,0,0,519,520,3,168,84,0,520,521,5,137,0,0,521,523,1,0,0,
|
|
0,522,489,1,0,0,0,522,497,1,0,0,0,522,505,1,0,0,0,522,513,1,0,0,
|
|
0,523,49,1,0,0,0,524,525,5,45,0,0,525,534,3,166,83,0,526,527,5,46,
|
|
0,0,527,529,3,166,83,0,528,530,3,28,14,0,529,528,1,0,0,0,529,530,
|
|
1,0,0,0,530,534,1,0,0,0,531,532,5,38,0,0,532,534,3,166,83,0,533,
|
|
524,1,0,0,0,533,526,1,0,0,0,533,531,1,0,0,0,534,51,1,0,0,0,535,537,
|
|
3,16,8,0,536,535,1,0,0,0,537,540,1,0,0,0,538,536,1,0,0,0,538,539,
|
|
1,0,0,0,539,541,1,0,0,0,540,538,1,0,0,0,541,542,5,48,0,0,542,543,
|
|
3,166,83,0,543,544,5,87,0,0,544,545,3,168,84,0,545,546,5,80,0,0,
|
|
546,549,3,168,84,0,547,548,5,81,0,0,548,550,5,150,0,0,549,547,1,
|
|
0,0,0,549,550,1,0,0,0,550,551,1,0,0,0,551,555,5,140,0,0,552,554,
|
|
3,54,27,0,553,552,1,0,0,0,554,557,1,0,0,0,555,553,1,0,0,0,555,556,
|
|
1,0,0,0,556,558,1,0,0,0,557,555,1,0,0,0,558,559,5,141,0,0,559,53,
|
|
1,0,0,0,560,567,3,68,34,0,561,567,3,70,35,0,562,567,3,80,40,0,563,
|
|
567,3,60,30,0,564,567,3,62,31,0,565,567,3,56,28,0,566,560,1,0,0,
|
|
0,566,561,1,0,0,0,566,562,1,0,0,0,566,563,1,0,0,0,566,564,1,0,0,
|
|
0,566,565,1,0,0,0,567,55,1,0,0,0,568,569,5,2,0,0,569,570,3,166,83,
|
|
0,570,571,5,87,0,0,571,572,3,168,84,0,572,573,5,40,0,0,573,574,3,
|
|
26,13,0,574,575,5,139,0,0,575,576,3,166,83,0,576,577,5,137,0,0,577,
|
|
57,1,0,0,0,578,579,5,4,0,0,579,580,3,166,83,0,580,581,5,87,0,0,581,
|
|
582,3,168,84,0,582,583,5,6,0,0,583,584,3,26,13,0,584,585,5,68,0,
|
|
0,585,586,3,166,83,0,586,587,5,139,0,0,587,588,3,166,83,0,588,589,
|
|
5,137,0,0,589,59,1,0,0,0,590,592,5,24,0,0,591,593,5,42,0,0,592,591,
|
|
1,0,0,0,592,593,1,0,0,0,593,594,1,0,0,0,594,596,3,166,83,0,595,597,
|
|
3,22,11,0,596,595,1,0,0,0,596,597,1,0,0,0,597,598,1,0,0,0,598,599,
|
|
5,87,0,0,599,600,3,168,84,0,600,602,5,27,0,0,601,603,5,11,0,0,602,
|
|
601,1,0,0,0,602,603,1,0,0,0,603,604,1,0,0,0,604,605,3,26,13,0,605,
|
|
606,5,28,0,0,606,635,3,168,84,0,607,608,5,52,0,0,608,609,3,168,84,
|
|
0,609,613,5,140,0,0,610,612,3,64,32,0,611,610,1,0,0,0,612,615,1,
|
|
0,0,0,613,611,1,0,0,0,613,614,1,0,0,0,614,616,1,0,0,0,615,613,1,
|
|
0,0,0,616,617,5,141,0,0,617,636,1,0,0,0,618,619,5,42,0,0,619,622,
|
|
3,168,84,0,620,621,5,52,0,0,621,623,3,168,84,0,622,620,1,0,0,0,622,
|
|
623,1,0,0,0,623,633,1,0,0,0,624,628,5,140,0,0,625,627,3,64,32,0,
|
|
626,625,1,0,0,0,627,630,1,0,0,0,628,626,1,0,0,0,628,629,1,0,0,0,
|
|
629,631,1,0,0,0,630,628,1,0,0,0,631,634,5,141,0,0,632,634,5,137,
|
|
0,0,633,624,1,0,0,0,633,632,1,0,0,0,634,636,1,0,0,0,635,607,1,0,
|
|
0,0,635,618,1,0,0,0,636,61,1,0,0,0,637,638,5,24,0,0,638,639,3,166,
|
|
83,0,639,640,5,87,0,0,640,641,3,168,84,0,641,642,5,26,0,0,642,643,
|
|
3,166,83,0,643,644,3,28,14,0,644,645,5,137,0,0,645,63,1,0,0,0,646,
|
|
647,5,18,0,0,647,704,5,137,0,0,648,649,5,19,0,0,649,650,5,20,0,0,
|
|
650,651,3,166,83,0,651,652,5,137,0,0,652,704,1,0,0,0,653,654,5,29,
|
|
0,0,654,655,3,168,84,0,655,656,5,137,0,0,656,704,1,0,0,0,657,658,
|
|
5,29,0,0,658,659,3,166,83,0,659,660,5,139,0,0,660,670,3,166,83,0,
|
|
661,662,5,67,0,0,662,666,5,140,0,0,663,665,3,66,33,0,664,663,1,0,
|
|
0,0,665,668,1,0,0,0,666,664,1,0,0,0,666,667,1,0,0,0,667,669,1,0,
|
|
0,0,668,666,1,0,0,0,669,671,5,141,0,0,670,661,1,0,0,0,670,671,1,
|
|
0,0,0,671,672,1,0,0,0,672,673,5,137,0,0,673,704,1,0,0,0,674,676,
|
|
5,30,0,0,675,677,5,38,0,0,676,675,1,0,0,0,676,677,1,0,0,0,677,678,
|
|
1,0,0,0,678,679,3,166,83,0,679,680,5,58,0,0,680,681,3,26,13,0,681,
|
|
682,5,137,0,0,682,704,1,0,0,0,683,684,5,31,0,0,684,685,3,166,83,
|
|
0,685,686,5,150,0,0,686,687,5,137,0,0,687,704,1,0,0,0,688,689,5,
|
|
32,0,0,689,690,3,26,13,0,690,691,5,139,0,0,691,692,3,166,83,0,692,
|
|
693,3,166,83,0,693,694,3,168,84,0,694,695,5,137,0,0,695,704,1,0,
|
|
0,0,696,697,5,96,0,0,697,704,5,137,0,0,698,699,5,33,0,0,699,700,
|
|
5,150,0,0,700,701,3,168,84,0,701,702,5,137,0,0,702,704,1,0,0,0,703,
|
|
646,1,0,0,0,703,648,1,0,0,0,703,653,1,0,0,0,703,657,1,0,0,0,703,
|
|
674,1,0,0,0,703,683,1,0,0,0,703,688,1,0,0,0,703,696,1,0,0,0,703,
|
|
698,1,0,0,0,704,65,1,0,0,0,705,706,3,166,83,0,706,707,5,61,0,0,707,
|
|
708,3,166,83,0,708,709,5,137,0,0,709,67,1,0,0,0,710,711,5,52,0,0,
|
|
711,713,3,166,83,0,712,714,3,22,11,0,713,712,1,0,0,0,713,714,1,0,
|
|
0,0,714,715,1,0,0,0,715,716,5,87,0,0,716,717,3,168,84,0,717,718,
|
|
5,136,0,0,718,719,3,148,74,0,719,720,5,135,0,0,720,721,3,148,74,
|
|
0,721,722,5,89,0,0,722,724,3,84,42,0,723,725,3,76,38,0,724,723,1,
|
|
0,0,0,724,725,1,0,0,0,725,727,1,0,0,0,726,728,3,82,41,0,727,726,
|
|
1,0,0,0,727,728,1,0,0,0,728,729,1,0,0,0,729,730,5,91,0,0,730,732,
|
|
3,86,43,0,731,733,3,90,45,0,732,731,1,0,0,0,732,733,1,0,0,0,733,
|
|
735,1,0,0,0,734,736,3,74,37,0,735,734,1,0,0,0,735,736,1,0,0,0,736,
|
|
738,1,0,0,0,737,739,3,72,36,0,738,737,1,0,0,0,738,739,1,0,0,0,739,
|
|
740,1,0,0,0,740,741,5,137,0,0,741,69,1,0,0,0,742,743,5,53,0,0,743,
|
|
745,3,166,83,0,744,746,3,22,11,0,745,744,1,0,0,0,745,746,1,0,0,0,
|
|
746,747,1,0,0,0,747,748,5,87,0,0,748,749,3,168,84,0,749,750,5,136,
|
|
0,0,750,751,3,148,74,0,751,752,5,135,0,0,752,754,3,148,74,0,753,
|
|
755,3,76,38,0,754,753,1,0,0,0,754,755,1,0,0,0,755,757,1,0,0,0,756,
|
|
758,3,90,45,0,757,756,1,0,0,0,757,758,1,0,0,0,758,760,1,0,0,0,759,
|
|
761,3,74,37,0,760,759,1,0,0,0,760,761,1,0,0,0,761,763,1,0,0,0,762,
|
|
764,3,72,36,0,763,762,1,0,0,0,763,764,1,0,0,0,764,765,1,0,0,0,765,
|
|
766,5,137,0,0,766,71,1,0,0,0,767,768,5,69,0,0,768,769,5,68,0,0,769,
|
|
770,3,166,83,0,770,73,1,0,0,0,771,772,5,9,0,0,772,773,5,7,0,0,773,
|
|
774,3,166,83,0,774,775,5,68,0,0,775,776,3,168,84,0,776,75,1,0,0,
|
|
0,777,778,5,12,0,0,778,787,5,15,0,0,779,780,5,12,0,0,780,781,7,2,
|
|
0,0,781,782,5,16,0,0,782,783,5,142,0,0,783,784,3,88,44,0,784,785,
|
|
5,143,0,0,785,787,1,0,0,0,786,777,1,0,0,0,786,779,1,0,0,0,787,77,
|
|
1,0,0,0,788,789,5,68,0,0,789,790,5,142,0,0,790,795,3,130,65,0,791,
|
|
792,5,138,0,0,792,794,3,130,65,0,793,791,1,0,0,0,794,797,1,0,0,0,
|
|
795,793,1,0,0,0,795,796,1,0,0,0,796,798,1,0,0,0,797,795,1,0,0,0,
|
|
798,799,5,143,0,0,799,79,1,0,0,0,800,801,5,54,0,0,801,802,3,166,
|
|
83,0,802,803,5,87,0,0,803,804,3,168,84,0,804,805,5,55,0,0,805,806,
|
|
3,166,83,0,806,807,5,136,0,0,807,809,3,148,74,0,808,810,3,90,45,
|
|
0,809,808,1,0,0,0,809,810,1,0,0,0,810,811,1,0,0,0,811,812,5,137,
|
|
0,0,812,81,1,0,0,0,813,814,5,90,0,0,814,815,3,148,74,0,815,83,1,
|
|
0,0,0,816,817,7,3,0,0,817,85,1,0,0,0,818,837,5,93,0,0,819,820,5,
|
|
45,0,0,820,837,3,166,83,0,821,822,5,38,0,0,822,837,3,166,83,0,823,
|
|
824,5,47,0,0,824,833,5,142,0,0,825,830,3,26,13,0,826,827,5,138,0,
|
|
0,827,829,3,26,13,0,828,826,1,0,0,0,829,832,1,0,0,0,830,828,1,0,
|
|
0,0,830,831,1,0,0,0,831,834,1,0,0,0,832,830,1,0,0,0,833,825,1,0,
|
|
0,0,833,834,1,0,0,0,834,835,1,0,0,0,835,837,5,143,0,0,836,818,1,
|
|
0,0,0,836,819,1,0,0,0,836,821,1,0,0,0,836,823,1,0,0,0,837,87,1,0,
|
|
0,0,838,843,3,166,83,0,839,840,5,138,0,0,840,842,3,166,83,0,841,
|
|
839,1,0,0,0,842,845,1,0,0,0,843,841,1,0,0,0,843,844,1,0,0,0,844,
|
|
89,1,0,0,0,845,843,1,0,0,0,846,847,5,92,0,0,847,851,5,140,0,0,848,
|
|
850,3,92,46,0,849,848,1,0,0,0,850,853,1,0,0,0,851,849,1,0,0,0,851,
|
|
852,1,0,0,0,852,854,1,0,0,0,853,851,1,0,0,0,854,855,5,141,0,0,855,
|
|
91,1,0,0,0,856,857,5,25,0,0,857,858,3,166,83,0,858,859,5,87,0,0,
|
|
859,860,3,168,84,0,860,861,5,142,0,0,861,862,3,88,44,0,862,863,5,
|
|
143,0,0,863,864,5,137,0,0,864,939,1,0,0,0,865,866,5,64,0,0,866,867,
|
|
3,166,83,0,867,868,5,87,0,0,868,869,3,168,84,0,869,870,5,136,0,0,
|
|
870,871,3,148,74,0,871,872,3,94,47,0,872,873,5,137,0,0,873,939,1,
|
|
0,0,0,874,875,5,65,0,0,875,876,3,166,83,0,876,877,5,87,0,0,877,878,
|
|
3,168,84,0,878,879,5,136,0,0,879,880,3,156,78,0,880,883,3,50,25,
|
|
0,881,882,5,85,0,0,882,884,3,168,84,0,883,881,1,0,0,0,883,884,1,
|
|
0,0,0,884,885,1,0,0,0,885,886,3,94,47,0,886,887,5,137,0,0,887,939,
|
|
1,0,0,0,888,889,5,46,0,0,889,890,3,166,83,0,890,891,5,87,0,0,891,
|
|
892,3,168,84,0,892,893,5,136,0,0,893,895,3,166,83,0,894,896,3,28,
|
|
14,0,895,894,1,0,0,0,895,896,1,0,0,0,896,898,1,0,0,0,897,899,3,78,
|
|
39,0,898,897,1,0,0,0,898,899,1,0,0,0,899,902,1,0,0,0,900,901,5,20,
|
|
0,0,901,903,5,56,0,0,902,900,1,0,0,0,902,903,1,0,0,0,903,904,1,0,
|
|
0,0,904,905,5,137,0,0,905,939,1,0,0,0,906,907,5,7,0,0,907,908,3,
|
|
166,83,0,908,909,5,87,0,0,909,910,3,168,84,0,910,911,5,136,0,0,911,
|
|
912,3,166,83,0,912,913,5,56,0,0,913,914,3,148,74,0,914,915,5,137,
|
|
0,0,915,939,1,0,0,0,916,917,5,54,0,0,917,918,3,166,83,0,918,919,
|
|
5,87,0,0,919,920,3,168,84,0,920,921,5,136,0,0,921,924,3,166,83,0,
|
|
922,923,5,56,0,0,923,925,3,148,74,0,924,922,1,0,0,0,924,925,1,0,
|
|
0,0,925,926,1,0,0,0,926,927,5,137,0,0,927,939,1,0,0,0,928,929,5,
|
|
24,0,0,929,930,3,166,83,0,930,931,5,87,0,0,931,932,3,168,84,0,932,
|
|
933,5,136,0,0,933,934,3,166,83,0,934,935,5,139,0,0,935,936,3,166,
|
|
83,0,936,937,5,137,0,0,937,939,1,0,0,0,938,856,1,0,0,0,938,865,1,
|
|
0,0,0,938,874,1,0,0,0,938,888,1,0,0,0,938,906,1,0,0,0,938,916,1,
|
|
0,0,0,938,928,1,0,0,0,939,93,1,0,0,0,940,941,5,142,0,0,941,946,3,
|
|
96,48,0,942,943,5,138,0,0,943,945,3,96,48,0,944,942,1,0,0,0,945,
|
|
948,1,0,0,0,946,944,1,0,0,0,946,947,1,0,0,0,947,949,1,0,0,0,948,
|
|
946,1,0,0,0,949,950,5,143,0,0,950,95,1,0,0,0,951,952,7,4,0,0,952,
|
|
97,1,0,0,0,953,954,5,63,0,0,954,955,3,100,50,0,955,99,1,0,0,0,956,
|
|
959,3,102,51,0,957,959,3,106,53,0,958,956,1,0,0,0,958,957,1,0,0,
|
|
0,959,101,1,0,0,0,960,961,5,64,0,0,961,962,3,166,83,0,962,963,5,
|
|
87,0,0,963,964,3,168,84,0,964,965,5,74,0,0,965,966,3,166,83,0,966,
|
|
967,5,136,0,0,967,968,3,148,74,0,968,969,5,75,0,0,969,972,3,104,
|
|
52,0,970,971,5,76,0,0,971,973,3,158,79,0,972,970,1,0,0,0,972,973,
|
|
1,0,0,0,973,974,1,0,0,0,974,975,5,137,0,0,975,103,1,0,0,0,976,983,
|
|
5,109,0,0,977,978,5,110,0,0,978,979,5,144,0,0,979,980,3,148,74,0,
|
|
980,981,5,145,0,0,981,983,1,0,0,0,982,976,1,0,0,0,982,977,1,0,0,
|
|
0,983,105,1,0,0,0,984,985,5,65,0,0,985,986,3,166,83,0,986,987,5,
|
|
87,0,0,987,988,3,168,84,0,988,989,5,140,0,0,989,990,3,108,54,0,990,
|
|
991,3,108,54,0,991,992,5,141,0,0,992,107,1,0,0,0,993,994,3,50,25,
|
|
0,994,995,5,66,0,0,995,996,3,166,83,0,996,997,5,87,0,0,997,998,3,
|
|
168,84,0,998,1000,3,156,78,0,999,1001,5,115,0,0,1000,999,1,0,0,0,
|
|
1000,1001,1,0,0,0,1001,1004,1,0,0,0,1002,1003,5,82,0,0,1003,1005,
|
|
3,168,84,0,1004,1002,1,0,0,0,1004,1005,1,0,0,0,1005,1007,1,0,0,0,
|
|
1006,1008,5,84,0,0,1007,1006,1,0,0,0,1007,1008,1,0,0,0,1008,1011,
|
|
1,0,0,0,1009,1010,5,85,0,0,1010,1012,3,168,84,0,1011,1009,1,0,0,
|
|
0,1011,1012,1,0,0,0,1012,1014,1,0,0,0,1013,1015,5,86,0,0,1014,1013,
|
|
1,0,0,0,1014,1015,1,0,0,0,1015,1016,1,0,0,0,1016,1017,5,137,0,0,
|
|
1017,109,1,0,0,0,1018,1020,5,57,0,0,1019,1021,3,22,11,0,1020,1019,
|
|
1,0,0,0,1020,1021,1,0,0,0,1021,1022,1,0,0,0,1022,1024,3,166,83,0,
|
|
1023,1025,3,112,56,0,1024,1023,1,0,0,0,1024,1025,1,0,0,0,1025,1026,
|
|
1,0,0,0,1026,1027,5,58,0,0,1027,1029,3,166,83,0,1028,1030,3,28,14,
|
|
0,1029,1028,1,0,0,0,1029,1030,1,0,0,0,1030,1033,1,0,0,0,1031,1032,
|
|
5,87,0,0,1032,1034,3,168,84,0,1033,1031,1,0,0,0,1033,1034,1,0,0,
|
|
0,1034,1037,1,0,0,0,1035,1036,5,81,0,0,1036,1038,5,150,0,0,1037,
|
|
1035,1,0,0,0,1037,1038,1,0,0,0,1038,1039,1,0,0,0,1039,1043,5,140,
|
|
0,0,1040,1042,3,114,57,0,1041,1040,1,0,0,0,1042,1045,1,0,0,0,1043,
|
|
1041,1,0,0,0,1043,1044,1,0,0,0,1044,1046,1,0,0,0,1045,1043,1,0,0,
|
|
0,1046,1047,5,141,0,0,1047,111,1,0,0,0,1048,1049,3,28,14,0,1049,
|
|
113,1,0,0,0,1050,1051,5,62,0,0,1051,1058,3,100,50,0,1052,1058,3,
|
|
128,64,0,1053,1058,3,124,62,0,1054,1058,3,118,59,0,1055,1058,3,126,
|
|
63,0,1056,1058,3,116,58,0,1057,1050,1,0,0,0,1057,1052,1,0,0,0,1057,
|
|
1053,1,0,0,0,1057,1054,1,0,0,0,1057,1055,1,0,0,0,1057,1056,1,0,0,
|
|
0,1058,115,1,0,0,0,1059,1060,5,59,0,0,1060,1061,3,166,83,0,1061,
|
|
1062,5,61,0,0,1062,1063,3,166,83,0,1063,1064,5,139,0,0,1064,1065,
|
|
3,166,83,0,1065,1066,5,137,0,0,1066,117,1,0,0,0,1067,1068,5,10,0,
|
|
0,1068,1072,5,140,0,0,1069,1071,3,120,60,0,1070,1069,1,0,0,0,1071,
|
|
1074,1,0,0,0,1072,1070,1,0,0,0,1072,1073,1,0,0,0,1073,1075,1,0,0,
|
|
0,1074,1072,1,0,0,0,1075,1076,5,141,0,0,1076,1077,5,137,0,0,1077,
|
|
119,1,0,0,0,1078,1079,3,166,83,0,1079,1080,5,61,0,0,1080,1081,5,
|
|
64,0,0,1081,1082,3,166,83,0,1082,1083,5,137,0,0,1083,1093,1,0,0,
|
|
0,1084,1085,3,166,83,0,1085,1086,5,61,0,0,1086,1087,5,65,0,0,1087,
|
|
1088,3,166,83,0,1088,1089,5,139,0,0,1089,1090,3,166,83,0,1090,1091,
|
|
5,137,0,0,1091,1093,1,0,0,0,1092,1078,1,0,0,0,1092,1084,1,0,0,0,
|
|
1093,121,1,0,0,0,1094,1095,3,26,13,0,1095,1096,5,20,0,0,1096,1101,
|
|
5,56,0,0,1097,1098,5,139,0,0,1098,1100,3,166,83,0,1099,1097,1,0,
|
|
0,0,1100,1103,1,0,0,0,1101,1099,1,0,0,0,1101,1102,1,0,0,0,1102,1104,
|
|
1,0,0,0,1103,1101,1,0,0,0,1104,1105,5,137,0,0,1105,123,1,0,0,0,1106,
|
|
1107,5,59,0,0,1107,1108,3,166,83,0,1108,1109,5,61,0,0,1109,1110,
|
|
5,64,0,0,1110,1111,3,166,83,0,1111,1112,5,137,0,0,1112,125,1,0,0,
|
|
0,1113,1114,5,71,0,0,1114,1115,3,166,83,0,1115,1116,5,72,0,0,1116,
|
|
1117,5,73,0,0,1117,1118,5,68,0,0,1118,1119,5,54,0,0,1119,1120,3,
|
|
166,83,0,1120,1121,5,70,0,0,1121,1122,5,65,0,0,1122,1123,3,166,83,
|
|
0,1123,1124,5,139,0,0,1124,1125,3,166,83,0,1125,1126,5,137,0,0,1126,
|
|
127,1,0,0,0,1127,1128,5,59,0,0,1128,1129,3,130,65,0,1129,1130,5,
|
|
61,0,0,1130,1133,3,134,67,0,1131,1132,5,36,0,0,1132,1134,3,168,84,
|
|
0,1133,1131,1,0,0,0,1133,1134,1,0,0,0,1134,1135,1,0,0,0,1135,1136,
|
|
5,137,0,0,1136,129,1,0,0,0,1137,1138,3,166,83,0,1138,1139,5,139,
|
|
0,0,1139,1140,3,132,66,0,1140,131,1,0,0,0,1141,1154,3,166,83,0,1142,
|
|
1154,5,104,0,0,1143,1154,5,94,0,0,1144,1154,5,95,0,0,1145,1154,5,
|
|
1,0,0,1146,1154,5,101,0,0,1147,1154,5,102,0,0,1148,1154,5,103,0,
|
|
0,1149,1154,5,105,0,0,1150,1154,5,106,0,0,1151,1154,5,107,0,0,1152,
|
|
1154,5,108,0,0,1153,1141,1,0,0,0,1153,1142,1,0,0,0,1153,1143,1,0,
|
|
0,0,1153,1144,1,0,0,0,1153,1145,1,0,0,0,1153,1146,1,0,0,0,1153,1147,
|
|
1,0,0,0,1153,1148,1,0,0,0,1153,1149,1,0,0,0,1153,1150,1,0,0,0,1153,
|
|
1151,1,0,0,0,1153,1152,1,0,0,0,1154,133,1,0,0,0,1155,1156,5,83,0,
|
|
0,1156,1157,5,139,0,0,1157,1192,3,166,83,0,1158,1159,5,64,0,0,1159,
|
|
1160,3,166,83,0,1160,1161,5,139,0,0,1161,1162,3,138,69,0,1162,1192,
|
|
1,0,0,0,1163,1164,5,65,0,0,1164,1165,3,166,83,0,1165,1166,5,139,
|
|
0,0,1166,1167,3,166,83,0,1167,1168,5,139,0,0,1168,1169,3,140,70,
|
|
0,1169,1192,1,0,0,0,1170,1171,5,46,0,0,1171,1173,3,166,83,0,1172,
|
|
1174,3,28,14,0,1173,1172,1,0,0,0,1173,1174,1,0,0,0,1174,1175,1,0,
|
|
0,0,1175,1176,5,139,0,0,1176,1177,3,130,65,0,1177,1192,1,0,0,0,1178,
|
|
1179,5,48,0,0,1179,1180,3,166,83,0,1180,1181,5,139,0,0,1181,1183,
|
|
3,166,83,0,1182,1184,3,28,14,0,1183,1182,1,0,0,0,1183,1184,1,0,0,
|
|
0,1184,1186,1,0,0,0,1185,1187,3,142,71,0,1186,1185,1,0,0,0,1186,
|
|
1187,1,0,0,0,1187,1189,1,0,0,0,1188,1190,3,136,68,0,1189,1188,1,
|
|
0,0,0,1189,1190,1,0,0,0,1190,1192,1,0,0,0,1191,1155,1,0,0,0,1191,
|
|
1158,1,0,0,0,1191,1163,1,0,0,0,1191,1170,1,0,0,0,1191,1178,1,0,0,
|
|
0,1192,135,1,0,0,0,1193,1194,5,69,0,0,1194,1195,3,142,71,0,1195,
|
|
137,1,0,0,0,1196,1197,7,5,0,0,1197,139,1,0,0,0,1198,1199,7,6,0,0,
|
|
1199,141,1,0,0,0,1200,1201,5,67,0,0,1201,1205,5,140,0,0,1202,1204,
|
|
3,144,72,0,1203,1202,1,0,0,0,1204,1207,1,0,0,0,1205,1203,1,0,0,0,
|
|
1205,1206,1,0,0,0,1206,1208,1,0,0,0,1207,1205,1,0,0,0,1208,1209,
|
|
5,141,0,0,1209,143,1,0,0,0,1210,1211,3,166,83,0,1211,1212,5,61,0,
|
|
0,1212,1213,5,11,0,0,1213,1214,5,25,0,0,1214,1215,5,142,0,0,1215,
|
|
1216,3,88,44,0,1216,1217,5,143,0,0,1217,1218,5,137,0,0,1218,1309,
|
|
1,0,0,0,1219,1220,3,166,83,0,1220,1221,5,61,0,0,1221,1222,5,64,0,
|
|
0,1222,1229,3,166,83,0,1223,1224,5,70,0,0,1224,1225,5,65,0,0,1225,
|
|
1226,3,166,83,0,1226,1227,5,139,0,0,1227,1228,3,166,83,0,1228,1230,
|
|
1,0,0,0,1229,1223,1,0,0,0,1229,1230,1,0,0,0,1230,1231,1,0,0,0,1231,
|
|
1232,5,137,0,0,1232,1309,1,0,0,0,1233,1234,3,166,83,0,1234,1235,
|
|
5,61,0,0,1235,1236,5,65,0,0,1236,1237,3,166,83,0,1237,1238,5,139,
|
|
0,0,1238,1245,3,166,83,0,1239,1240,5,70,0,0,1240,1241,5,65,0,0,1241,
|
|
1242,3,166,83,0,1242,1243,5,139,0,0,1243,1244,3,166,83,0,1244,1246,
|
|
1,0,0,0,1245,1239,1,0,0,0,1245,1246,1,0,0,0,1246,1247,1,0,0,0,1247,
|
|
1248,5,137,0,0,1248,1309,1,0,0,0,1249,1250,3,166,83,0,1250,1251,
|
|
5,61,0,0,1251,1252,5,46,0,0,1252,1254,3,166,83,0,1253,1255,3,28,
|
|
14,0,1254,1253,1,0,0,0,1254,1255,1,0,0,0,1255,1264,1,0,0,0,1256,
|
|
1257,5,70,0,0,1257,1258,5,65,0,0,1258,1259,3,166,83,0,1259,1260,
|
|
5,139,0,0,1260,1261,3,166,83,0,1261,1265,1,0,0,0,1262,1263,5,20,
|
|
0,0,1263,1265,5,56,0,0,1264,1256,1,0,0,0,1264,1262,1,0,0,0,1264,
|
|
1265,1,0,0,0,1265,1266,1,0,0,0,1266,1267,5,137,0,0,1267,1309,1,0,
|
|
0,0,1268,1269,3,166,83,0,1269,1270,5,61,0,0,1270,1271,5,7,0,0,1271,
|
|
1272,3,166,83,0,1272,1273,5,67,0,0,1273,1277,5,140,0,0,1274,1276,
|
|
3,122,61,0,1275,1274,1,0,0,0,1276,1279,1,0,0,0,1277,1275,1,0,0,0,
|
|
1277,1278,1,0,0,0,1278,1280,1,0,0,0,1279,1277,1,0,0,0,1280,1281,
|
|
5,141,0,0,1281,1282,5,137,0,0,1282,1309,1,0,0,0,1283,1284,3,166,
|
|
83,0,1284,1285,5,61,0,0,1285,1286,5,54,0,0,1286,1287,3,166,83,0,
|
|
1287,1288,5,137,0,0,1288,1309,1,0,0,0,1289,1290,3,166,83,0,1290,
|
|
1292,5,61,0,0,1291,1293,5,11,0,0,1292,1291,1,0,0,0,1292,1293,1,0,
|
|
0,0,1293,1294,1,0,0,0,1294,1295,5,24,0,0,1295,1296,3,166,83,0,1296,
|
|
1297,5,139,0,0,1297,1304,3,166,83,0,1298,1299,5,70,0,0,1299,1300,
|
|
5,65,0,0,1300,1301,3,166,83,0,1301,1302,5,139,0,0,1302,1303,3,166,
|
|
83,0,1303,1305,1,0,0,0,1304,1298,1,0,0,0,1304,1305,1,0,0,0,1305,
|
|
1306,1,0,0,0,1306,1307,5,137,0,0,1307,1309,1,0,0,0,1308,1210,1,0,
|
|
0,0,1308,1219,1,0,0,0,1308,1233,1,0,0,0,1308,1249,1,0,0,0,1308,1268,
|
|
1,0,0,0,1308,1283,1,0,0,0,1308,1289,1,0,0,0,1309,145,1,0,0,0,1310,
|
|
1311,5,54,0,0,1311,1312,3,166,83,0,1312,1313,5,61,0,0,1313,1314,
|
|
3,166,83,0,1314,1315,5,139,0,0,1315,1317,3,166,83,0,1316,1318,3,
|
|
142,71,0,1317,1316,1,0,0,0,1317,1318,1,0,0,0,1318,1319,1,0,0,0,1319,
|
|
1320,5,137,0,0,1320,147,1,0,0,0,1321,1379,3,154,77,0,1322,1379,5,
|
|
116,0,0,1323,1379,5,117,0,0,1324,1325,5,118,0,0,1325,1379,3,168,
|
|
84,0,1326,1327,5,119,0,0,1327,1328,5,146,0,0,1328,1329,3,166,83,
|
|
0,1329,1330,5,147,0,0,1330,1379,1,0,0,0,1331,1332,5,120,0,0,1332,
|
|
1333,5,146,0,0,1333,1335,3,166,83,0,1334,1336,3,28,14,0,1335,1334,
|
|
1,0,0,0,1335,1336,1,0,0,0,1336,1337,1,0,0,0,1337,1338,5,147,0,0,
|
|
1338,1379,1,0,0,0,1339,1340,5,41,0,0,1340,1341,5,146,0,0,1341,1342,
|
|
3,166,83,0,1342,1343,5,147,0,0,1343,1379,1,0,0,0,1344,1345,5,121,
|
|
0,0,1345,1346,5,146,0,0,1346,1347,3,148,74,0,1347,1348,5,147,0,0,
|
|
1348,1379,1,0,0,0,1349,1350,5,122,0,0,1350,1351,5,146,0,0,1351,1352,
|
|
3,148,74,0,1352,1353,5,147,0,0,1353,1379,1,0,0,0,1354,1355,5,123,
|
|
0,0,1355,1359,5,140,0,0,1356,1358,3,150,75,0,1357,1356,1,0,0,0,1358,
|
|
1361,1,0,0,0,1359,1357,1,0,0,0,1359,1360,1,0,0,0,1360,1362,1,0,0,
|
|
0,1361,1359,1,0,0,0,1362,1379,5,141,0,0,1363,1364,5,8,0,0,1364,1365,
|
|
5,87,0,0,1365,1366,3,168,84,0,1366,1368,5,140,0,0,1367,1369,3,152,
|
|
76,0,1368,1367,1,0,0,0,1369,1370,1,0,0,0,1370,1368,1,0,0,0,1370,
|
|
1371,1,0,0,0,1371,1372,1,0,0,0,1372,1373,5,141,0,0,1373,1379,1,0,
|
|
0,0,1374,1376,3,166,83,0,1375,1377,3,28,14,0,1376,1375,1,0,0,0,1376,
|
|
1377,1,0,0,0,1377,1379,1,0,0,0,1378,1321,1,0,0,0,1378,1322,1,0,0,
|
|
0,1378,1323,1,0,0,0,1378,1324,1,0,0,0,1378,1326,1,0,0,0,1378,1331,
|
|
1,0,0,0,1378,1339,1,0,0,0,1378,1344,1,0,0,0,1378,1349,1,0,0,0,1378,
|
|
1354,1,0,0,0,1378,1363,1,0,0,0,1378,1374,1,0,0,0,1379,149,1,0,0,
|
|
0,1380,1381,3,166,83,0,1381,1382,5,136,0,0,1382,1383,3,148,74,0,
|
|
1383,1384,5,137,0,0,1384,151,1,0,0,0,1385,1386,3,166,83,0,1386,1387,
|
|
5,87,0,0,1387,1388,3,168,84,0,1388,1389,5,136,0,0,1389,1390,3,148,
|
|
74,0,1390,1391,5,137,0,0,1391,153,1,0,0,0,1392,1393,7,7,0,0,1393,
|
|
155,1,0,0,0,1394,1395,7,8,0,0,1395,157,1,0,0,0,1396,1405,3,168,84,
|
|
0,1397,1405,5,150,0,0,1398,1405,5,151,0,0,1399,1405,5,132,0,0,1400,
|
|
1405,5,133,0,0,1401,1405,5,134,0,0,1402,1405,3,160,80,0,1403,1405,
|
|
3,164,82,0,1404,1396,1,0,0,0,1404,1397,1,0,0,0,1404,1398,1,0,0,0,
|
|
1404,1399,1,0,0,0,1404,1400,1,0,0,0,1404,1401,1,0,0,0,1404,1402,
|
|
1,0,0,0,1404,1403,1,0,0,0,1405,159,1,0,0,0,1406,1415,5,140,0,0,1407,
|
|
1412,3,162,81,0,1408,1409,5,138,0,0,1409,1411,3,162,81,0,1410,1408,
|
|
1,0,0,0,1411,1414,1,0,0,0,1412,1410,1,0,0,0,1412,1413,1,0,0,0,1413,
|
|
1416,1,0,0,0,1414,1412,1,0,0,0,1415,1407,1,0,0,0,1415,1416,1,0,0,
|
|
0,1416,1417,1,0,0,0,1417,1418,5,141,0,0,1418,161,1,0,0,0,1419,1420,
|
|
3,168,84,0,1420,1421,5,136,0,0,1421,1422,3,158,79,0,1422,163,1,0,
|
|
0,0,1423,1432,5,142,0,0,1424,1429,3,158,79,0,1425,1426,5,138,0,0,
|
|
1426,1428,3,158,79,0,1427,1425,1,0,0,0,1428,1431,1,0,0,0,1429,1427,
|
|
1,0,0,0,1429,1430,1,0,0,0,1430,1433,1,0,0,0,1431,1429,1,0,0,0,1432,
|
|
1424,1,0,0,0,1432,1433,1,0,0,0,1433,1434,1,0,0,0,1434,1435,5,143,
|
|
0,0,1435,165,1,0,0,0,1436,1437,7,9,0,0,1437,167,1,0,0,0,1438,1439,
|
|
5,153,0,0,1439,169,1,0,0,0,129,182,189,210,223,235,255,263,270,276,
|
|
288,291,297,308,317,327,330,332,336,344,356,361,371,381,386,401,
|
|
407,419,428,436,444,457,460,470,474,480,487,493,501,509,522,529,
|
|
533,538,549,555,566,592,596,602,613,622,628,633,635,666,670,676,
|
|
703,713,724,727,732,735,738,745,754,757,760,763,786,795,809,830,
|
|
833,836,843,851,883,895,898,902,924,938,946,958,972,982,1000,1004,
|
|
1007,1011,1014,1020,1024,1029,1033,1037,1043,1057,1072,1092,1101,
|
|
1133,1153,1173,1183,1186,1189,1191,1205,1229,1245,1254,1264,1277,
|
|
1292,1304,1308,1317,1335,1359,1370,1376,1378,1404,1412,1415,1429,
|
|
1432
|
|
];
|
|
|
|
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 presentationDecl(): PresentationDeclContext | null {
|
|
return this.getRuleContext(0, PresentationDeclContext);
|
|
}
|
|
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 moduleMember(): ModuleMemberContext | null {
|
|
return this.getRuleContext(0, ModuleMemberContext);
|
|
}
|
|
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 ModuleMemberContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public MODULE(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.MODULE, 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 CONTRACT(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.CONTRACT, 0)!;
|
|
}
|
|
public SEMI(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.SEMI, 0)!;
|
|
}
|
|
public SUBJECT(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.SUBJECT, 0);
|
|
}
|
|
public targetConstraint(): TargetConstraintContext | null {
|
|
return this.getRuleContext(0, TargetConstraintContext);
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_moduleMember;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitModuleMember) {
|
|
return visitor.visitModuleMember(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 executionClause(): ExecutionClauseContext | null {
|
|
return this.getRuleContext(0, ExecutionClauseContext);
|
|
}
|
|
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 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 VALUE(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.VALUE, 0);
|
|
}
|
|
public FIELD(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.FIELD, 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 executionClause(): ExecutionClauseContext | null {
|
|
return this.getRuleContext(0, ExecutionClauseContext);
|
|
}
|
|
public SET(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.SET, 0);
|
|
}
|
|
public EDIT(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.EDIT, 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[];
|
|
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 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 KEYED(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.KEYED, 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 PORTABLE(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.PORTABLE, 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 executionClause(): ExecutionClauseContext | null {
|
|
return this.getRuleContext(0, ExecutionClauseContext);
|
|
}
|
|
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 packageQuerySpecialization(): PackageQuerySpecializationContext | null {
|
|
return this.getRuleContext(0, PackageQuerySpecializationContext);
|
|
}
|
|
public moduleExport(): ModuleExportContext | null {
|
|
return this.getRuleContext(0, ModuleExportContext);
|
|
}
|
|
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 ModuleExportContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public MODULE(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.MODULE, 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 IMPLEMENTS(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.IMPLEMENTS, 0)!;
|
|
}
|
|
public interfaceType(): InterfaceTypeContext {
|
|
return this.getRuleContext(0, InterfaceTypeContext)!;
|
|
}
|
|
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_moduleExport;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitModuleExport) {
|
|
return visitor.visitModuleExport(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class PresentationDeclContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public PRESENTATION(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.PRESENTATION, 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 FOR(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.FOR, 0)!;
|
|
}
|
|
public interfaceType(): InterfaceTypeContext {
|
|
return this.getRuleContext(0, InterfaceTypeContext)!;
|
|
}
|
|
public USING(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.USING, 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_presentationDecl;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitPresentationDecl) {
|
|
return visitor.visitPresentationDecl(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 | null {
|
|
return this.getToken(QuixosCapabilityParser.OPERATION, 0);
|
|
}
|
|
public LBRACE(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.LBRACE, 0);
|
|
}
|
|
public RBRACE(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.RBRACE, 0);
|
|
}
|
|
public FRAGMENT(): antlr.TerminalNode[];
|
|
public FRAGMENT(i: number): antlr.TerminalNode | null;
|
|
public FRAGMENT(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] {
|
|
if (i === undefined) {
|
|
return this.getTokens(QuixosCapabilityParser.FRAGMENT);
|
|
} else {
|
|
return this.getToken(QuixosCapabilityParser.FRAGMENT, i);
|
|
}
|
|
}
|
|
public typeParameters(): TypeParametersContext | null {
|
|
return this.getRuleContext(0, TypeParametersContext);
|
|
}
|
|
public WORKSPACE(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.WORKSPACE, 0);
|
|
}
|
|
public SEMI(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.SEMI, 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 PackageQuerySpecializationContext 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[];
|
|
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 SPECIALIZE(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.SPECIALIZE, 0)!;
|
|
}
|
|
public typeArguments(): TypeArgumentsContext {
|
|
return this.getRuleContext(0, TypeArgumentsContext)!;
|
|
}
|
|
public SEMI(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.SEMI, 0)!;
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_packageQuerySpecialization;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitPackageQuerySpecialization) {
|
|
return visitor.visitPackageQuerySpecialization(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class QueryClauseContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public REPLICA(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.REPLICA, 0);
|
|
}
|
|
public SEMI(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.SEMI, 0)!;
|
|
}
|
|
public LOCAL(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.LOCAL, 0);
|
|
}
|
|
public FROM(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.FROM, 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 FRAGMENTS(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.FRAGMENTS, 0);
|
|
}
|
|
public stringLiteral(): StringLiteralContext | null {
|
|
return this.getRuleContext(0, StringLiteralContext);
|
|
}
|
|
public DOT(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.DOT, 0);
|
|
}
|
|
public WITH(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.WITH, 0);
|
|
}
|
|
public LBRACE(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.LBRACE, 0);
|
|
}
|
|
public RBRACE(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.RBRACE, 0);
|
|
}
|
|
public fragmentVariable(): FragmentVariableContext[];
|
|
public fragmentVariable(i: number): FragmentVariableContext | null;
|
|
public fragmentVariable(i?: number): FragmentVariableContext[] | FragmentVariableContext | null {
|
|
if (i === undefined) {
|
|
return this.getRuleContexts(FragmentVariableContext);
|
|
}
|
|
|
|
return this.getRuleContext(i, FragmentVariableContext);
|
|
}
|
|
public VIEW(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.VIEW, 0);
|
|
}
|
|
public AS(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.AS, 0);
|
|
}
|
|
public interfaceType(): InterfaceTypeContext | null {
|
|
return this.getRuleContext(0, InterfaceTypeContext);
|
|
}
|
|
public OBJECT(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.OBJECT, 0);
|
|
}
|
|
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 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 FragmentVariableContext 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 SEMI(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.SEMI, 0)!;
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_fragmentVariable;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitFragmentVariable) {
|
|
return visitor.visitFragmentVariable(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 executionClause(): ExecutionClauseContext | null {
|
|
return this.getRuleContext(0, ExecutionClauseContext);
|
|
}
|
|
public eventClause(): EventClauseContext | null {
|
|
return this.getRuleContext(0, EventClauseContext);
|
|
}
|
|
public dependencyBlock(): DependencyBlockContext | null {
|
|
return this.getRuleContext(0, DependencyBlockContext);
|
|
}
|
|
public preparationClause(): PreparationClauseContext | null {
|
|
return this.getRuleContext(0, PreparationClauseContext);
|
|
}
|
|
public acceptanceClause(): AcceptanceClauseContext | null {
|
|
return this.getRuleContext(0, AcceptanceClauseContext);
|
|
}
|
|
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 executionClause(): ExecutionClauseContext | null {
|
|
return this.getRuleContext(0, ExecutionClauseContext);
|
|
}
|
|
public dependencyBlock(): DependencyBlockContext | null {
|
|
return this.getRuleContext(0, DependencyBlockContext);
|
|
}
|
|
public preparationClause(): PreparationClauseContext | null {
|
|
return this.getRuleContext(0, PreparationClauseContext);
|
|
}
|
|
public acceptanceClause(): AcceptanceClauseContext | null {
|
|
return this.getRuleContext(0, AcceptanceClauseContext);
|
|
}
|
|
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 AcceptanceClauseContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public ACCEPT(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.ACCEPT, 0)!;
|
|
}
|
|
public USING(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.USING, 0)!;
|
|
}
|
|
public identifier(): IdentifierContext {
|
|
return this.getRuleContext(0, IdentifierContext)!;
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_acceptanceClause;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitAcceptanceClause) {
|
|
return visitor.visitAcceptanceClause(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class PreparationClauseContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public PREPARES(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.PREPARES, 0)!;
|
|
}
|
|
public CREATION(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.CREATION, 0)!;
|
|
}
|
|
public identifier(): IdentifierContext {
|
|
return this.getRuleContext(0, IdentifierContext)!;
|
|
}
|
|
public USING(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.USING, 0)!;
|
|
}
|
|
public stringLiteral(): StringLiteralContext {
|
|
return this.getRuleContext(0, StringLiteralContext)!;
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_preparationClause;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitPreparationClause) {
|
|
return visitor.visitPreparationClause(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class ExecutionClauseContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public EXECUTION(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.EXECUTION, 0)!;
|
|
}
|
|
public REMOTE(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.REMOTE, 0);
|
|
}
|
|
public TARGETS(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.TARGETS, 0);
|
|
}
|
|
public LBRACK(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.LBRACK, 0);
|
|
}
|
|
public identifierList(): IdentifierListContext | null {
|
|
return this.getRuleContext(0, IdentifierListContext);
|
|
}
|
|
public RBRACK(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.RBRACK, 0);
|
|
}
|
|
public SNAPSHOT(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.SNAPSHOT, 0);
|
|
}
|
|
public TRANSACTION(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.TRANSACTION, 0);
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_executionClause;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitExecutionClause) {
|
|
return visitor.visitExecutionClause(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class SelectedOperationsContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public USING(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.USING, 0)!;
|
|
}
|
|
public LBRACK(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.LBRACK, 0)!;
|
|
}
|
|
public memberOperationRef(): MemberOperationRefContext[];
|
|
public memberOperationRef(i: number): MemberOperationRefContext | null;
|
|
public memberOperationRef(i?: number): MemberOperationRefContext[] | MemberOperationRefContext | null {
|
|
if (i === undefined) {
|
|
return this.getRuleContexts(MemberOperationRefContext);
|
|
}
|
|
|
|
return this.getRuleContext(i, MemberOperationRefContext);
|
|
}
|
|
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_selectedOperations;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitSelectedOperations) {
|
|
return visitor.visitSelectedOperations(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 REFLECTION(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.REFLECTION, 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[];
|
|
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 LBRACK(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.LBRACK, 0);
|
|
}
|
|
public identifierList(): IdentifierListContext | null {
|
|
return this.getRuleContext(0, IdentifierListContext);
|
|
}
|
|
public RBRACK(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.RBRACK, 0);
|
|
}
|
|
public SEMI(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.SEMI, 0)!;
|
|
}
|
|
public STATE(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.STATE, 0);
|
|
}
|
|
public COLON(): antlr.TerminalNode | null {
|
|
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 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 KEYED(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.KEYED, 0);
|
|
}
|
|
public INTERFACE(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.INTERFACE, 0);
|
|
}
|
|
public typeArguments(): TypeArgumentsContext | null {
|
|
return this.getRuleContext(0, TypeArgumentsContext);
|
|
}
|
|
public selectedOperations(): SelectedOperationsContext | null {
|
|
return this.getRuleContext(0, SelectedOperationsContext);
|
|
}
|
|
public FROM(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.FROM, 0);
|
|
}
|
|
public INPUT(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.INPUT, 0);
|
|
}
|
|
public CREATION(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.CREATION, 0);
|
|
}
|
|
public CONSTRUCTOR(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.CONSTRUCTOR, 0);
|
|
}
|
|
public QUERY(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.QUERY, 0);
|
|
}
|
|
public DOT(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.DOT, 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 EDIT(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.EDIT, 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 REGISTER(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.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 typeParameters(): TypeParametersContext | null {
|
|
return this.getRuleContext(0, TypeParametersContext);
|
|
}
|
|
public conformanceSourceArguments(): ConformanceSourceArgumentsContext | null {
|
|
return this.getRuleContext(0, ConformanceSourceArgumentsContext);
|
|
}
|
|
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 ConformanceSourceArgumentsContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public typeArguments(): TypeArgumentsContext {
|
|
return this.getRuleContext(0, TypeArgumentsContext)!;
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_conformanceSourceArguments;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitConformanceSourceArguments) {
|
|
return visitor.visitConformanceSourceArguments(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 initializationDecl(): InitializationDeclContext | null {
|
|
return this.getRuleContext(0, InitializationDeclContext);
|
|
}
|
|
public relationshipMaterializationDecl(): RelationshipMaterializationDeclContext | null {
|
|
return this.getRuleContext(0, RelationshipMaterializationDeclContext);
|
|
}
|
|
public moduleBindingDecl(): ModuleBindingDeclContext | null {
|
|
return this.getRuleContext(0, ModuleBindingDeclContext);
|
|
}
|
|
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 ModuleBindingDeclContext 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 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_moduleBindingDecl;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitModuleBindingDecl) {
|
|
return visitor.visitModuleBindingDecl(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class InitializationDeclContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public INITIALIZE(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.INITIALIZE, 0)!;
|
|
}
|
|
public LBRACE(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.LBRACE, 0)!;
|
|
}
|
|
public RBRACE(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.RBRACE, 0)!;
|
|
}
|
|
public SEMI(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.SEMI, 0)!;
|
|
}
|
|
public initializationField(): InitializationFieldContext[];
|
|
public initializationField(i: number): InitializationFieldContext | null;
|
|
public initializationField(i?: number): InitializationFieldContext[] | InitializationFieldContext | null {
|
|
if (i === undefined) {
|
|
return this.getRuleContexts(InitializationFieldContext);
|
|
}
|
|
|
|
return this.getRuleContext(i, InitializationFieldContext);
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_initializationDecl;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitInitializationDecl) {
|
|
return visitor.visitInitializationDecl(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class InitializationFieldContext 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 EDGE(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.EDGE, 0);
|
|
}
|
|
public DOT(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.DOT, 0);
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_initializationField;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitInitializationField) {
|
|
return visitor.visitInitializationField(this);
|
|
} else {
|
|
return visitor.visitChildren(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export class CreationOwnerMappingContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public interfaceType(): InterfaceTypeContext {
|
|
return this.getRuleContext(0, InterfaceTypeContext)!;
|
|
}
|
|
public FROM(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.FROM, 0)!;
|
|
}
|
|
public INPUT(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.INPUT, 0)!;
|
|
}
|
|
public SEMI(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.SEMI, 0)!;
|
|
}
|
|
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 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 override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_creationOwnerMapping;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitCreationOwnerMapping) {
|
|
return visitor.visitCreationOwnerMapping(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 EDIT(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.EDIT, 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 LIFECYCLE(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.LIFECYCLE, 0);
|
|
}
|
|
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 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 STATE(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.STATE, 0);
|
|
}
|
|
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 INTERFACE(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.INTERFACE, 0);
|
|
}
|
|
public memberOperationRef(): MemberOperationRefContext | null {
|
|
return this.getRuleContext(0, MemberOperationRefContext);
|
|
}
|
|
public typeArguments(): TypeArgumentsContext | null {
|
|
return this.getRuleContext(0, TypeArgumentsContext);
|
|
}
|
|
public PACKAGE(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.PACKAGE, 0);
|
|
}
|
|
public dependencyBindingBlock(): DependencyBindingBlockContext | null {
|
|
return this.getRuleContext(0, DependencyBindingBlockContext);
|
|
}
|
|
public acceptanceBinding(): AcceptanceBindingContext | null {
|
|
return this.getRuleContext(0, AcceptanceBindingContext);
|
|
}
|
|
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 AcceptanceBindingContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
public ACCEPT(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.ACCEPT, 0)!;
|
|
}
|
|
public dependencyBindingBlock(): DependencyBindingBlockContext {
|
|
return this.getRuleContext(0, DependencyBindingBlockContext)!;
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_acceptanceBinding;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitAcceptanceBinding) {
|
|
return visitor.visitAcceptanceBinding(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 EDIT(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.EDIT, 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 WORKSPACE(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.WORKSPACE, 0);
|
|
}
|
|
public REFLECTION(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.REFLECTION, 0);
|
|
}
|
|
public LBRACK(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.LBRACK, 0);
|
|
}
|
|
public identifierList(): IdentifierListContext | null {
|
|
return this.getRuleContext(0, IdentifierListContext);
|
|
}
|
|
public RBRACK(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.RBRACK, 0);
|
|
}
|
|
public SEMI(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.SEMI, 0)!;
|
|
}
|
|
public STATE(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.STATE, 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 FROM(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.FROM, 0);
|
|
}
|
|
public INPUT(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.INPUT, 0);
|
|
}
|
|
public CREATION(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.CREATION, 0);
|
|
}
|
|
public WITH(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.WITH, 0);
|
|
}
|
|
public LBRACE(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.LBRACE, 0);
|
|
}
|
|
public RBRACE(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.RBRACE, 0);
|
|
}
|
|
public creationOwnerMapping(): CreationOwnerMappingContext[];
|
|
public creationOwnerMapping(i: number): CreationOwnerMappingContext | null;
|
|
public creationOwnerMapping(i?: number): CreationOwnerMappingContext[] | CreationOwnerMappingContext | null {
|
|
if (i === undefined) {
|
|
return this.getRuleContexts(CreationOwnerMappingContext);
|
|
}
|
|
|
|
return this.getRuleContext(i, CreationOwnerMappingContext);
|
|
}
|
|
public CONSTRUCTOR(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.CONSTRUCTOR, 0);
|
|
}
|
|
public QUERY(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.QUERY, 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 VARIANT(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.VARIANT, 0);
|
|
}
|
|
public ID(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.ID, 0);
|
|
}
|
|
public variantCase(): VariantCaseContext[];
|
|
public variantCase(i: number): VariantCaseContext | null;
|
|
public variantCase(i?: number): VariantCaseContext[] | VariantCaseContext | null {
|
|
if (i === undefined) {
|
|
return this.getRuleContexts(VariantCaseContext);
|
|
}
|
|
|
|
return this.getRuleContext(i, VariantCaseContext);
|
|
}
|
|
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 VariantCaseContext extends antlr.ParserRuleContext {
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
super(parent, invokingState);
|
|
}
|
|
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 SEMI(): antlr.TerminalNode {
|
|
return this.getToken(QuixosCapabilityParser.SEMI, 0)!;
|
|
}
|
|
public override get ruleIndex(): number {
|
|
return QuixosCapabilityParser.RULE_variantCase;
|
|
}
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
if (visitor.visitVariantCase) {
|
|
return visitor.visitVariantCase(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 START(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.START, 0);
|
|
}
|
|
public STOP(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.STOP, 0);
|
|
}
|
|
public EDIT(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.EDIT, 0);
|
|
}
|
|
public CREATION(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.CREATION, 0);
|
|
}
|
|
public INITIALIZE(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.INITIALIZE, 0);
|
|
}
|
|
public EXECUTION(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.EXECUTION, 0);
|
|
}
|
|
public SNAPSHOT(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.SNAPSHOT, 0);
|
|
}
|
|
public TRANSACTION(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.TRANSACTION, 0);
|
|
}
|
|
public REMOTE(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.REMOTE, 0);
|
|
}
|
|
public TARGETS(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.TARGETS, 0);
|
|
}
|
|
public PORTABLE(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.PORTABLE, 0);
|
|
}
|
|
public REPLICA(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.REPLICA, 0);
|
|
}
|
|
public LOCAL(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.LOCAL, 0);
|
|
}
|
|
public FROM(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.FROM, 0);
|
|
}
|
|
public REGISTER(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.REGISTER, 0);
|
|
}
|
|
public INTERFACES(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.INTERFACES, 0);
|
|
}
|
|
public REFLECTION(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.REFLECTION, 0);
|
|
}
|
|
public SOURCE(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.SOURCE, 0);
|
|
}
|
|
public QUERY(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.QUERY, 0);
|
|
}
|
|
public SPECIALIZE(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.SPECIALIZE, 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 FRAGMENT(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.FRAGMENT, 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 RESULT_BYTES(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.RESULT_BYTES, 0);
|
|
}
|
|
public RPC_CALLS(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.RPC_CALLS, 0);
|
|
}
|
|
public DEADLINE_MS(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.DEADLINE_MS, 0);
|
|
}
|
|
public PRESENTATION(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.PRESENTATION, 0);
|
|
}
|
|
public SUBJECT(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.SUBJECT, 0);
|
|
}
|
|
public FOR(): antlr.TerminalNode | null {
|
|
return this.getToken(QuixosCapabilityParser.FOR, 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);
|
|
}
|
|
}
|
|
}
|