2026-09-03 15:46:52 -07:00
|
|
|
|
|
|
|
|
import * as antlr from "antlr4ng";
|
|
|
|
|
import { Token } from "antlr4ng";
|
|
|
|
|
|
|
|
|
|
import { QuixosCapabilityVisitor } from "./QuixosCapabilityVisitor.js";
|
|
|
|
|
|
|
|
|
|
// for running tests with parameters, TODO: discuss strategy for typed parameters in CI
|
|
|
|
|
// eslint-disable-next-line no-unused-vars
|
|
|
|
|
type int = number;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export class QuixosCapabilityParser extends antlr.Parser {
|
|
|
|
|
public static readonly WORKSPACE = 1;
|
2026-09-05 12:33:52 -07:00
|
|
|
public static readonly IMPORT = 2;
|
|
|
|
|
public static readonly EXTERNAL = 3;
|
|
|
|
|
public static readonly ATOM = 4;
|
|
|
|
|
public static readonly INTERFACE = 5;
|
|
|
|
|
public static readonly INTERFACES = 6;
|
|
|
|
|
public static readonly PACKAGE = 7;
|
|
|
|
|
public static readonly VALUE = 8;
|
|
|
|
|
public static readonly RELATION = 9;
|
|
|
|
|
public static readonly OPERATION = 10;
|
|
|
|
|
public static readonly FUNCTION = 11;
|
|
|
|
|
public static readonly CONSTRUCTOR = 12;
|
|
|
|
|
public static readonly CONSTRUCTS = 13;
|
|
|
|
|
public static readonly CONFORM = 14;
|
|
|
|
|
public static readonly AS = 15;
|
|
|
|
|
public static readonly BIND = 16;
|
|
|
|
|
public static readonly TO = 17;
|
|
|
|
|
public static readonly PRIVATE = 18;
|
|
|
|
|
public static readonly SHARED = 19;
|
|
|
|
|
public static readonly STATE = 20;
|
|
|
|
|
public static readonly EDGE = 21;
|
|
|
|
|
public static readonly PROJECTION = 22;
|
|
|
|
|
public static readonly WITH = 23;
|
|
|
|
|
public static readonly USING = 24;
|
|
|
|
|
public static readonly VIA = 25;
|
|
|
|
|
public static readonly MATERIALIZE = 26;
|
|
|
|
|
public static readonly IF = 27;
|
|
|
|
|
public static readonly ABSENT = 28;
|
|
|
|
|
public static readonly ON = 29;
|
|
|
|
|
public static readonly POLICY = 30;
|
|
|
|
|
public static readonly DEFAULT = 31;
|
|
|
|
|
public static readonly SOURCE = 32;
|
|
|
|
|
public static readonly REPOSITORY = 33;
|
|
|
|
|
public static readonly COMMIT = 34;
|
|
|
|
|
public static readonly REVISION = 35;
|
|
|
|
|
public static readonly ID = 36;
|
|
|
|
|
public static readonly DOC = 37;
|
|
|
|
|
public static readonly MODE = 38;
|
|
|
|
|
public static readonly EMITS = 39;
|
|
|
|
|
public static readonly RECEIVER = 40;
|
|
|
|
|
public static readonly REQUIRES = 41;
|
|
|
|
|
public static readonly ANY = 42;
|
|
|
|
|
public static readonly GET = 43;
|
|
|
|
|
public static readonly SET = 44;
|
|
|
|
|
public static readonly WATCH = 45;
|
|
|
|
|
public static readonly START = 46;
|
|
|
|
|
public static readonly STOP = 47;
|
|
|
|
|
public static readonly READ = 48;
|
|
|
|
|
public static readonly WRITE = 49;
|
|
|
|
|
public static readonly RESOLVE = 50;
|
|
|
|
|
public static readonly CONNECT = 51;
|
|
|
|
|
public static readonly DISCONNECT = 52;
|
|
|
|
|
public static readonly CALL = 53;
|
|
|
|
|
public static readonly WATCH_START = 54;
|
|
|
|
|
public static readonly WATCH_STOP = 55;
|
|
|
|
|
public static readonly SUBSCRIBE = 56;
|
|
|
|
|
public static readonly UNSUBSCRIBE = 57;
|
|
|
|
|
public static readonly OPTIMISTIC_REGISTER = 58;
|
|
|
|
|
public static readonly CRDT = 59;
|
|
|
|
|
public static readonly OPTIONAL_ONE = 60;
|
|
|
|
|
public static readonly EXACTLY_ONE = 61;
|
|
|
|
|
public static readonly MANY_UNIQUE = 62;
|
|
|
|
|
public static readonly MANY = 63;
|
|
|
|
|
public static readonly ORDERED = 64;
|
|
|
|
|
public static readonly UNIT = 65;
|
|
|
|
|
public static readonly WATCH_HANDLE = 66;
|
|
|
|
|
public static readonly MESSAGE = 67;
|
|
|
|
|
public static readonly ATOM_REF = 68;
|
|
|
|
|
public static readonly INTERFACE_REF = 69;
|
|
|
|
|
public static readonly OPTIONAL = 70;
|
|
|
|
|
public static readonly LIST = 71;
|
|
|
|
|
public static readonly BOOL = 72;
|
|
|
|
|
public static readonly BYTES = 73;
|
|
|
|
|
public static readonly DOUBLE = 74;
|
|
|
|
|
public static readonly INT32 = 75;
|
|
|
|
|
public static readonly INT64 = 76;
|
|
|
|
|
public static readonly STRING = 77;
|
|
|
|
|
public static readonly UINT32 = 78;
|
|
|
|
|
public static readonly UINT64 = 79;
|
|
|
|
|
public static readonly TRUE = 80;
|
|
|
|
|
public static readonly FALSE = 81;
|
|
|
|
|
public static readonly NULL = 82;
|
|
|
|
|
public static readonly ARROW = 83;
|
|
|
|
|
public static readonly COLON = 84;
|
|
|
|
|
public static readonly SEMI = 85;
|
|
|
|
|
public static readonly COMMA = 86;
|
|
|
|
|
public static readonly DOT = 87;
|
|
|
|
|
public static readonly LBRACE = 88;
|
|
|
|
|
public static readonly RBRACE = 89;
|
|
|
|
|
public static readonly LBRACK = 90;
|
|
|
|
|
public static readonly RBRACK = 91;
|
|
|
|
|
public static readonly LPAREN = 92;
|
|
|
|
|
public static readonly RPAREN = 93;
|
|
|
|
|
public static readonly LT = 94;
|
|
|
|
|
public static readonly GT = 95;
|
|
|
|
|
public static readonly INTEGER = 96;
|
|
|
|
|
public static readonly JSON_NUMBER = 97;
|
|
|
|
|
public static readonly IDENTIFIER = 98;
|
|
|
|
|
public static readonly STRING_LITERAL = 99;
|
|
|
|
|
public static readonly LINE_COMMENT = 100;
|
|
|
|
|
public static readonly BLOCK_COMMENT = 101;
|
|
|
|
|
public static readonly WS = 102;
|
2026-09-03 15:46:52 -07:00
|
|
|
public static readonly RULE_document = 0;
|
|
|
|
|
public static readonly RULE_workspaceDecl = 1;
|
|
|
|
|
public static readonly RULE_workspaceItem = 2;
|
2026-09-05 12:33:52 -07:00
|
|
|
public static readonly RULE_resourceImportDecl = 3;
|
|
|
|
|
public static readonly RULE_externalAtomDecl = 4;
|
|
|
|
|
public static readonly RULE_externalInterfaceDecl = 5;
|
|
|
|
|
public static readonly RULE_resourcePreamble = 6;
|
|
|
|
|
public static readonly RULE_atomDecl = 7;
|
|
|
|
|
public static readonly RULE_interfaceResourceDecl = 8;
|
|
|
|
|
public static readonly RULE_interfaceMember = 9;
|
|
|
|
|
public static readonly RULE_operationMember = 10;
|
|
|
|
|
public static readonly RULE_valueMember = 11;
|
|
|
|
|
public static readonly RULE_valueMemberOperation = 12;
|
|
|
|
|
public static readonly RULE_relationshipMember = 13;
|
|
|
|
|
public static readonly RULE_relationshipOperation = 14;
|
|
|
|
|
public static readonly RULE_targetConstraint = 15;
|
|
|
|
|
public static readonly RULE_packageResourceDecl = 16;
|
|
|
|
|
public static readonly RULE_packageExport = 17;
|
|
|
|
|
public static readonly RULE_packageOperationExport = 18;
|
|
|
|
|
public static readonly RULE_packageFunctionExport = 19;
|
|
|
|
|
public static readonly RULE_packageConstructorExport = 20;
|
|
|
|
|
public static readonly RULE_eventClause = 21;
|
|
|
|
|
public static readonly RULE_operationMode = 22;
|
|
|
|
|
public static readonly RULE_receiverRequirement = 23;
|
|
|
|
|
public static readonly RULE_identifierList = 24;
|
|
|
|
|
public static readonly RULE_dependencyBlock = 25;
|
|
|
|
|
public static readonly RULE_dependencyPort = 26;
|
|
|
|
|
public static readonly RULE_primitiveList = 27;
|
|
|
|
|
public static readonly RULE_primitive = 28;
|
|
|
|
|
public static readonly RULE_sharedAttachmentDecl = 29;
|
|
|
|
|
public static readonly RULE_attachmentDecl = 30;
|
|
|
|
|
public static readonly RULE_stateDecl = 31;
|
|
|
|
|
public static readonly RULE_storagePolicy = 32;
|
|
|
|
|
public static readonly RULE_edgeDecl = 33;
|
|
|
|
|
public static readonly RULE_edgeEndpoint = 34;
|
|
|
|
|
public static readonly RULE_conformanceDecl = 35;
|
|
|
|
|
public static readonly RULE_conformanceItem = 36;
|
|
|
|
|
public static readonly RULE_relationshipMaterializationDecl = 37;
|
|
|
|
|
public static readonly RULE_operationBindingDecl = 38;
|
|
|
|
|
public static readonly RULE_memberOperationRef = 39;
|
|
|
|
|
public static readonly RULE_operationName = 40;
|
|
|
|
|
public static readonly RULE_operationProvider = 41;
|
|
|
|
|
public static readonly RULE_statePrimitive = 42;
|
|
|
|
|
public static readonly RULE_edgePrimitive = 43;
|
|
|
|
|
public static readonly RULE_dependencyBindingBlock = 44;
|
|
|
|
|
public static readonly RULE_dependencyBinding = 45;
|
|
|
|
|
public static readonly RULE_constructorBindingDecl = 46;
|
|
|
|
|
public static readonly RULE_valueType = 47;
|
|
|
|
|
public static readonly RULE_scalarType = 48;
|
|
|
|
|
public static readonly RULE_cardinality = 49;
|
|
|
|
|
public static readonly RULE_jsonLiteral = 50;
|
|
|
|
|
public static readonly RULE_jsonObject = 51;
|
|
|
|
|
public static readonly RULE_jsonMember = 52;
|
|
|
|
|
public static readonly RULE_jsonArray = 53;
|
|
|
|
|
public static readonly RULE_identifier = 54;
|
|
|
|
|
public static readonly RULE_stringLiteral = 55;
|
2026-09-03 15:46:52 -07:00
|
|
|
|
|
|
|
|
public static readonly literalNames = [
|
2026-09-05 12:33:52 -07:00
|
|
|
null, "'workspace'", "'import'", "'external'", "'atom'", "'interface'",
|
|
|
|
|
"'interfaces'", "'package'", "'value'", "'relation'", "'operation'",
|
|
|
|
|
"'function'", "'constructor'", "'constructs'", "'conform'", "'as'",
|
|
|
|
|
"'bind'", "'to'", "'private'", "'shared'", "'state'", "'edge'",
|
|
|
|
|
"'projection'", "'with'", "'using'", "'via'", "'materialize'", "'if'",
|
|
|
|
|
"'absent'", "'on'", "'policy'", "'default'", "'source'", "'repository'",
|
|
|
|
|
"'commit'", "'revision'", "'id'", "'doc'", "'mode'", "'emits'",
|
|
|
|
|
"'receiver'", "'requires'", "'any'", "'get'", "'set'", "'watch'",
|
|
|
|
|
"'start'", "'stop'", "'read'", "'write'", "'resolve'", "'connect'",
|
|
|
|
|
"'disconnect'", "'call'", "'watch-start'", "'watch-stop'", "'subscribe'",
|
|
|
|
|
"'unsubscribe'", "'optimistic-register'", "'crdt'", "'optional-one'",
|
|
|
|
|
"'exactly-one'", "'many-unique'", "'many'", "'ordered'", "'unit'",
|
|
|
|
|
"'watch-handle'", "'message'", "'atom-ref'", "'interface-ref'",
|
|
|
|
|
"'optional'", "'list'", "'bool'", "'bytes'", "'double'", "'int32'",
|
|
|
|
|
"'int64'", "'string'", "'uint32'", "'uint64'", "'true'", "'false'",
|
|
|
|
|
"'null'", "'->'", "':'", "';'", "','", "'.'", "'{'", "'}'", "'['",
|
|
|
|
|
"']'", "'('", "')'", "'<'", "'>'"
|
2026-09-03 15:46:52 -07:00
|
|
|
];
|
|
|
|
|
|
|
|
|
|
public static readonly symbolicNames = [
|
2026-09-05 12:33:52 -07:00
|
|
|
null, "WORKSPACE", "IMPORT", "EXTERNAL", "ATOM", "INTERFACE", "INTERFACES",
|
|
|
|
|
"PACKAGE", "VALUE", "RELATION", "OPERATION", "FUNCTION", "CONSTRUCTOR",
|
|
|
|
|
"CONSTRUCTS", "CONFORM", "AS", "BIND", "TO", "PRIVATE", "SHARED",
|
|
|
|
|
"STATE", "EDGE", "PROJECTION", "WITH", "USING", "VIA", "MATERIALIZE",
|
|
|
|
|
"IF", "ABSENT", "ON", "POLICY", "DEFAULT", "SOURCE", "REPOSITORY",
|
|
|
|
|
"COMMIT", "REVISION", "ID", "DOC", "MODE", "EMITS", "RECEIVER",
|
|
|
|
|
"REQUIRES", "ANY", "GET", "SET", "WATCH", "START", "STOP", "READ",
|
|
|
|
|
"WRITE", "RESOLVE", "CONNECT", "DISCONNECT", "CALL", "WATCH_START",
|
|
|
|
|
"WATCH_STOP", "SUBSCRIBE", "UNSUBSCRIBE", "OPTIMISTIC_REGISTER",
|
|
|
|
|
"CRDT", "OPTIONAL_ONE", "EXACTLY_ONE", "MANY_UNIQUE", "MANY", "ORDERED",
|
|
|
|
|
"UNIT", "WATCH_HANDLE", "MESSAGE", "ATOM_REF", "INTERFACE_REF",
|
|
|
|
|
"OPTIONAL", "LIST", "BOOL", "BYTES", "DOUBLE", "INT32", "INT64",
|
|
|
|
|
"STRING", "UINT32", "UINT64", "TRUE", "FALSE", "NULL", "ARROW",
|
|
|
|
|
"COLON", "SEMI", "COMMA", "DOT", "LBRACE", "RBRACE", "LBRACK", "RBRACK",
|
|
|
|
|
"LPAREN", "RPAREN", "LT", "GT", "INTEGER", "JSON_NUMBER", "IDENTIFIER",
|
|
|
|
|
"STRING_LITERAL", "LINE_COMMENT", "BLOCK_COMMENT", "WS"
|
2026-09-03 15:46:52 -07:00
|
|
|
];
|
|
|
|
|
public static readonly ruleNames = [
|
2026-09-05 12:33:52 -07:00
|
|
|
"document", "workspaceDecl", "workspaceItem", "resourceImportDecl",
|
|
|
|
|
"externalAtomDecl", "externalInterfaceDecl", "resourcePreamble",
|
|
|
|
|
"atomDecl", "interfaceResourceDecl", "interfaceMember", "operationMember",
|
|
|
|
|
"valueMember", "valueMemberOperation", "relationshipMember", "relationshipOperation",
|
|
|
|
|
"targetConstraint", "packageResourceDecl", "packageExport", "packageOperationExport",
|
2026-09-03 15:46:52 -07:00
|
|
|
"packageFunctionExport", "packageConstructorExport", "eventClause",
|
|
|
|
|
"operationMode", "receiverRequirement", "identifierList", "dependencyBlock",
|
|
|
|
|
"dependencyPort", "primitiveList", "primitive", "sharedAttachmentDecl",
|
|
|
|
|
"attachmentDecl", "stateDecl", "storagePolicy", "edgeDecl", "edgeEndpoint",
|
2026-09-04 21:03:09 -07:00
|
|
|
"conformanceDecl", "conformanceItem", "relationshipMaterializationDecl",
|
|
|
|
|
"operationBindingDecl", "memberOperationRef", "operationName", "operationProvider",
|
|
|
|
|
"statePrimitive", "edgePrimitive", "dependencyBindingBlock", "dependencyBinding",
|
|
|
|
|
"constructorBindingDecl", "valueType", "scalarType", "cardinality",
|
|
|
|
|
"jsonLiteral", "jsonObject", "jsonMember", "jsonArray", "identifier",
|
|
|
|
|
"stringLiteral",
|
2026-09-03 15:46:52 -07:00
|
|
|
];
|
|
|
|
|
|
|
|
|
|
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 {
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 121;
|
|
|
|
|
this.errorHandler.sync(this);
|
|
|
|
|
switch (this.interpreter.adaptivePredict(this.tokenStream, 0, this.context) ) {
|
|
|
|
|
case 1:
|
|
|
|
|
this.enterOuterAlt(localContext, 1);
|
|
|
|
|
{
|
|
|
|
|
this.state = 112;
|
|
|
|
|
this.workspaceDecl();
|
|
|
|
|
this.state = 113;
|
|
|
|
|
this.match(QuixosCapabilityParser.EOF);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case 2:
|
|
|
|
|
this.enterOuterAlt(localContext, 2);
|
|
|
|
|
{
|
|
|
|
|
this.state = 115;
|
|
|
|
|
this.interfaceResourceDecl();
|
|
|
|
|
this.state = 116;
|
|
|
|
|
this.match(QuixosCapabilityParser.EOF);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case 3:
|
|
|
|
|
this.enterOuterAlt(localContext, 3);
|
|
|
|
|
{
|
|
|
|
|
this.state = 118;
|
|
|
|
|
this.packageResourceDecl();
|
|
|
|
|
this.state = 119;
|
|
|
|
|
this.match(QuixosCapabilityParser.EOF);
|
|
|
|
|
}
|
|
|
|
|
break;
|
2026-09-03 15:46:52 -07:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
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, 2, QuixosCapabilityParser.RULE_workspaceDecl);
|
|
|
|
|
let _la: number;
|
|
|
|
|
try {
|
|
|
|
|
this.enterOuterAlt(localContext, 1);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 123;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.WORKSPACE);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 124;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.identifier();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 125;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.ID);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 126;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.stringLiteral();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 127;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.REVISION);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 128;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.stringLiteral();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 129;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.COMMIT);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 130;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.stringLiteral();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 131;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.LBRACE);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 135;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.errorHandler.sync(this);
|
|
|
|
|
_la = this.tokenStream.LA(1);
|
2026-09-05 12:33:52 -07:00
|
|
|
while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 544788) !== 0)) {
|
2026-09-03 15:46:52 -07:00
|
|
|
{
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 132;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.workspaceItem();
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 137;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.errorHandler.sync(this);
|
|
|
|
|
_la = this.tokenStream.LA(1);
|
|
|
|
|
}
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 138;
|
2026-09-03 15:46:52 -07:00
|
|
|
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, 4, QuixosCapabilityParser.RULE_workspaceItem);
|
|
|
|
|
try {
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 145;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.errorHandler.sync(this);
|
|
|
|
|
switch (this.tokenStream.LA(1)) {
|
|
|
|
|
case QuixosCapabilityParser.ATOM:
|
|
|
|
|
this.enterOuterAlt(localContext, 1);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 140;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.atomDecl();
|
|
|
|
|
}
|
|
|
|
|
break;
|
2026-09-05 12:33:52 -07:00
|
|
|
case QuixosCapabilityParser.IMPORT:
|
2026-09-03 15:46:52 -07:00
|
|
|
this.enterOuterAlt(localContext, 2);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 141;
|
|
|
|
|
this.resourceImportDecl();
|
2026-09-03 15:46:52 -07:00
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case QuixosCapabilityParser.SHARED:
|
2026-09-05 12:33:52 -07:00
|
|
|
this.enterOuterAlt(localContext, 3);
|
2026-09-03 15:46:52 -07:00
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 142;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.sharedAttachmentDecl();
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case QuixosCapabilityParser.CONFORM:
|
2026-09-05 12:33:52 -07:00
|
|
|
this.enterOuterAlt(localContext, 4);
|
2026-09-03 15:46:52 -07:00
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 143;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.conformanceDecl();
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case QuixosCapabilityParser.CONSTRUCTOR:
|
2026-09-05 12:33:52 -07:00
|
|
|
this.enterOuterAlt(localContext, 5);
|
2026-09-03 15:46:52 -07:00
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 144;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.constructorBindingDecl();
|
|
|
|
|
}
|
|
|
|
|
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;
|
|
|
|
|
}
|
2026-09-05 12:33:52 -07:00
|
|
|
public resourceImportDecl(): ResourceImportDeclContext {
|
|
|
|
|
let localContext = new ResourceImportDeclContext(this.context, this.state);
|
|
|
|
|
this.enterRule(localContext, 6, QuixosCapabilityParser.RULE_resourceImportDecl);
|
2026-09-03 15:46:52 -07:00
|
|
|
try {
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 157;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.errorHandler.sync(this);
|
2026-09-05 12:33:52 -07:00
|
|
|
switch (this.interpreter.adaptivePredict(this.tokenStream, 3, this.context) ) {
|
|
|
|
|
case 1:
|
|
|
|
|
this.enterOuterAlt(localContext, 1);
|
2026-09-03 15:46:52 -07:00
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 147;
|
|
|
|
|
this.match(QuixosCapabilityParser.IMPORT);
|
|
|
|
|
this.state = 148;
|
|
|
|
|
this.match(QuixosCapabilityParser.INTERFACE);
|
|
|
|
|
this.state = 149;
|
|
|
|
|
this.identifier();
|
|
|
|
|
this.state = 150;
|
|
|
|
|
this.match(QuixosCapabilityParser.SEMI);
|
2026-09-03 15:46:52 -07:00
|
|
|
}
|
2026-09-05 12:33:52 -07:00
|
|
|
break;
|
|
|
|
|
case 2:
|
|
|
|
|
this.enterOuterAlt(localContext, 2);
|
2026-09-03 15:46:52 -07:00
|
|
|
{
|
2026-09-04 21:03:09 -07:00
|
|
|
this.state = 152;
|
2026-09-05 12:33:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.IMPORT);
|
|
|
|
|
this.state = 153;
|
|
|
|
|
this.match(QuixosCapabilityParser.PACKAGE);
|
|
|
|
|
this.state = 154;
|
|
|
|
|
this.identifier();
|
|
|
|
|
this.state = 155;
|
|
|
|
|
this.match(QuixosCapabilityParser.SEMI);
|
2026-09-03 15:46:52 -07:00
|
|
|
}
|
2026-09-05 12:33:52 -07:00
|
|
|
break;
|
2026-09-03 15:46:52 -07:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
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;
|
|
|
|
|
}
|
2026-09-05 12:33:52 -07:00
|
|
|
public externalAtomDecl(): ExternalAtomDeclContext {
|
|
|
|
|
let localContext = new ExternalAtomDeclContext(this.context, this.state);
|
|
|
|
|
this.enterRule(localContext, 8, QuixosCapabilityParser.RULE_externalAtomDecl);
|
2026-09-03 15:46:52 -07:00
|
|
|
try {
|
|
|
|
|
this.enterOuterAlt(localContext, 1);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 159;
|
|
|
|
|
this.match(QuixosCapabilityParser.EXTERNAL);
|
2026-09-03 15:46:52 -07:00
|
|
|
this.state = 160;
|
2026-09-05 12:33:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.ATOM);
|
2026-09-03 15:46:52 -07:00
|
|
|
this.state = 161;
|
2026-09-05 12:33:52 -07:00
|
|
|
this.identifier();
|
2026-09-03 15:46:52 -07:00
|
|
|
this.state = 162;
|
2026-09-05 12:33:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.ID);
|
2026-09-03 15:46:52 -07:00
|
|
|
this.state = 163;
|
|
|
|
|
this.stringLiteral();
|
2026-09-04 21:03:09 -07:00
|
|
|
this.state = 164;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.SEMI);
|
2026-09-05 12:33:52 -07:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
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, 10, QuixosCapabilityParser.RULE_externalInterfaceDecl);
|
|
|
|
|
try {
|
|
|
|
|
this.enterOuterAlt(localContext, 1);
|
|
|
|
|
{
|
2026-09-03 15:46:52 -07:00
|
|
|
this.state = 166;
|
2026-09-05 12:33:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.EXTERNAL);
|
2026-09-04 21:03:09 -07:00
|
|
|
this.state = 167;
|
2026-09-05 12:33:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.INTERFACE);
|
2026-09-04 21:03:09 -07:00
|
|
|
this.state = 168;
|
2026-09-05 12:33:52 -07:00
|
|
|
this.identifier();
|
|
|
|
|
this.state = 169;
|
|
|
|
|
this.match(QuixosCapabilityParser.REVISION);
|
|
|
|
|
this.state = 170;
|
|
|
|
|
this.stringLiteral();
|
|
|
|
|
this.state = 171;
|
|
|
|
|
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, 12, QuixosCapabilityParser.RULE_resourcePreamble);
|
|
|
|
|
try {
|
|
|
|
|
this.state = 176;
|
|
|
|
|
this.errorHandler.sync(this);
|
|
|
|
|
switch (this.interpreter.adaptivePredict(this.tokenStream, 4, this.context) ) {
|
|
|
|
|
case 1:
|
|
|
|
|
this.enterOuterAlt(localContext, 1);
|
|
|
|
|
{
|
|
|
|
|
this.state = 173;
|
|
|
|
|
this.resourceImportDecl();
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case 2:
|
|
|
|
|
this.enterOuterAlt(localContext, 2);
|
|
|
|
|
{
|
|
|
|
|
this.state = 174;
|
|
|
|
|
this.externalAtomDecl();
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case 3:
|
|
|
|
|
this.enterOuterAlt(localContext, 3);
|
|
|
|
|
{
|
|
|
|
|
this.state = 175;
|
|
|
|
|
this.externalInterfaceDecl();
|
|
|
|
|
}
|
|
|
|
|
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, 14, QuixosCapabilityParser.RULE_atomDecl);
|
|
|
|
|
let _la: number;
|
|
|
|
|
try {
|
|
|
|
|
this.enterOuterAlt(localContext, 1);
|
|
|
|
|
{
|
|
|
|
|
this.state = 178;
|
|
|
|
|
this.match(QuixosCapabilityParser.ATOM);
|
|
|
|
|
this.state = 179;
|
|
|
|
|
this.identifier();
|
|
|
|
|
this.state = 180;
|
|
|
|
|
this.match(QuixosCapabilityParser.ID);
|
|
|
|
|
this.state = 181;
|
|
|
|
|
this.stringLiteral();
|
|
|
|
|
this.state = 184;
|
|
|
|
|
this.errorHandler.sync(this);
|
|
|
|
|
_la = this.tokenStream.LA(1);
|
|
|
|
|
if (_la === 37) {
|
|
|
|
|
{
|
|
|
|
|
this.state = 182;
|
|
|
|
|
this.match(QuixosCapabilityParser.DOC);
|
|
|
|
|
this.state = 183;
|
|
|
|
|
this.stringLiteral();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.state = 186;
|
|
|
|
|
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, 16, QuixosCapabilityParser.RULE_interfaceResourceDecl);
|
|
|
|
|
let _la: number;
|
|
|
|
|
try {
|
|
|
|
|
this.enterOuterAlt(localContext, 1);
|
|
|
|
|
{
|
|
|
|
|
this.state = 191;
|
|
|
|
|
this.errorHandler.sync(this);
|
|
|
|
|
_la = this.tokenStream.LA(1);
|
|
|
|
|
while (_la === 2 || _la === 3) {
|
|
|
|
|
{
|
|
|
|
|
{
|
|
|
|
|
this.state = 188;
|
|
|
|
|
this.resourcePreamble();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
this.state = 193;
|
|
|
|
|
this.errorHandler.sync(this);
|
|
|
|
|
_la = this.tokenStream.LA(1);
|
|
|
|
|
}
|
|
|
|
|
this.state = 194;
|
|
|
|
|
this.match(QuixosCapabilityParser.INTERFACE);
|
|
|
|
|
this.state = 195;
|
|
|
|
|
this.identifier();
|
|
|
|
|
this.state = 196;
|
|
|
|
|
this.match(QuixosCapabilityParser.ID);
|
|
|
|
|
this.state = 197;
|
|
|
|
|
this.stringLiteral();
|
|
|
|
|
this.state = 198;
|
|
|
|
|
this.match(QuixosCapabilityParser.REVISION);
|
|
|
|
|
this.state = 199;
|
|
|
|
|
this.stringLiteral();
|
|
|
|
|
this.state = 200;
|
|
|
|
|
this.match(QuixosCapabilityParser.LBRACE);
|
|
|
|
|
this.state = 204;
|
|
|
|
|
this.errorHandler.sync(this);
|
|
|
|
|
_la = this.tokenStream.LA(1);
|
|
|
|
|
while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 1792) !== 0)) {
|
|
|
|
|
{
|
|
|
|
|
{
|
|
|
|
|
this.state = 201;
|
|
|
|
|
this.interfaceMember();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
this.state = 206;
|
|
|
|
|
this.errorHandler.sync(this);
|
|
|
|
|
_la = this.tokenStream.LA(1);
|
|
|
|
|
}
|
|
|
|
|
this.state = 207;
|
2026-09-03 15:46:52 -07:00
|
|
|
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 interfaceMember(): InterfaceMemberContext {
|
|
|
|
|
let localContext = new InterfaceMemberContext(this.context, this.state);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.enterRule(localContext, 18, QuixosCapabilityParser.RULE_interfaceMember);
|
2026-09-03 15:46:52 -07:00
|
|
|
try {
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 212;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.errorHandler.sync(this);
|
|
|
|
|
switch (this.tokenStream.LA(1)) {
|
|
|
|
|
case QuixosCapabilityParser.VALUE:
|
|
|
|
|
this.enterOuterAlt(localContext, 1);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 209;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.valueMember();
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case QuixosCapabilityParser.RELATION:
|
|
|
|
|
this.enterOuterAlt(localContext, 2);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 210;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.relationshipMember();
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case QuixosCapabilityParser.OPERATION:
|
|
|
|
|
this.enterOuterAlt(localContext, 3);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 211;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.operationMember();
|
|
|
|
|
}
|
|
|
|
|
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 operationMember(): OperationMemberContext {
|
|
|
|
|
let localContext = new OperationMemberContext(this.context, this.state);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.enterRule(localContext, 20, QuixosCapabilityParser.RULE_operationMember);
|
2026-09-03 15:46:52 -07:00
|
|
|
try {
|
|
|
|
|
this.enterOuterAlt(localContext, 1);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 214;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.OPERATION);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 215;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.identifier();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 216;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.ID);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 217;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.stringLiteral();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 218;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.COLON);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 219;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.valueType();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 220;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.ARROW);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 221;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.valueType();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 222;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.LBRACE);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 223;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.CALL);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 224;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.ID);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 225;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.stringLiteral();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 226;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.SEMI);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 227;
|
2026-09-03 15:46:52 -07:00
|
|
|
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);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.enterRule(localContext, 22, QuixosCapabilityParser.RULE_valueMember);
|
2026-09-03 15:46:52 -07:00
|
|
|
let _la: number;
|
|
|
|
|
try {
|
|
|
|
|
this.enterOuterAlt(localContext, 1);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 229;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.VALUE);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 230;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.identifier();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 231;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.ID);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 232;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.stringLiteral();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 233;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.COLON);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 234;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.valueType();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 235;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.LBRACE);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 239;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.errorHandler.sync(this);
|
|
|
|
|
_la = this.tokenStream.LA(1);
|
2026-09-05 12:33:52 -07:00
|
|
|
while (((((_la - 43)) & ~0x1F) === 0 && ((1 << (_la - 43)) & 7) !== 0)) {
|
2026-09-03 15:46:52 -07:00
|
|
|
{
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 236;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.valueMemberOperation();
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 241;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.errorHandler.sync(this);
|
|
|
|
|
_la = this.tokenStream.LA(1);
|
|
|
|
|
}
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 242;
|
2026-09-03 15:46:52 -07:00
|
|
|
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);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.enterRule(localContext, 24, QuixosCapabilityParser.RULE_valueMemberOperation);
|
2026-09-03 15:46:52 -07:00
|
|
|
try {
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 263;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.errorHandler.sync(this);
|
|
|
|
|
switch (this.tokenStream.LA(1)) {
|
|
|
|
|
case QuixosCapabilityParser.GET:
|
|
|
|
|
this.enterOuterAlt(localContext, 1);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 244;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.GET);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 245;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.ID);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 246;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.stringLiteral();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 247;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case QuixosCapabilityParser.SET:
|
|
|
|
|
this.enterOuterAlt(localContext, 2);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 249;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.SET);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 250;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.ID);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 251;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.stringLiteral();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 252;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case QuixosCapabilityParser.WATCH:
|
|
|
|
|
this.enterOuterAlt(localContext, 3);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 254;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.WATCH);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 255;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.START);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 256;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.ID);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 257;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.stringLiteral();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 258;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.STOP);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 259;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.ID);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 260;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.stringLiteral();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 261;
|
2026-09-03 15:46:52 -07:00
|
|
|
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);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.enterRule(localContext, 26, QuixosCapabilityParser.RULE_relationshipMember);
|
2026-09-03 15:46:52 -07:00
|
|
|
let _la: number;
|
|
|
|
|
try {
|
|
|
|
|
this.enterOuterAlt(localContext, 1);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 265;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.RELATION);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 266;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.identifier();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 267;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.ID);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 268;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.stringLiteral();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 269;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.COLON);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 270;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.cardinality();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 271;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.targetConstraint();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 273;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.errorHandler.sync(this);
|
|
|
|
|
_la = this.tokenStream.LA(1);
|
2026-09-05 12:33:52 -07:00
|
|
|
if (_la === 64) {
|
2026-09-03 15:46:52 -07:00
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 272;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.ORDERED);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 275;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.LBRACE);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 279;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.errorHandler.sync(this);
|
|
|
|
|
_la = this.tokenStream.LA(1);
|
2026-09-05 12:33:52 -07:00
|
|
|
while (((((_la - 45)) & ~0x1F) === 0 && ((1 << (_la - 45)) & 225) !== 0)) {
|
2026-09-03 15:46:52 -07:00
|
|
|
{
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 276;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.relationshipOperation();
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 281;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.errorHandler.sync(this);
|
|
|
|
|
_la = this.tokenStream.LA(1);
|
|
|
|
|
}
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 282;
|
2026-09-03 15:46:52 -07:00
|
|
|
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 relationshipOperation(): RelationshipOperationContext {
|
|
|
|
|
let localContext = new RelationshipOperationContext(this.context, this.state);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.enterRule(localContext, 28, QuixosCapabilityParser.RULE_relationshipOperation);
|
2026-09-03 15:46:52 -07:00
|
|
|
try {
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 308;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.errorHandler.sync(this);
|
|
|
|
|
switch (this.tokenStream.LA(1)) {
|
|
|
|
|
case QuixosCapabilityParser.RESOLVE:
|
|
|
|
|
this.enterOuterAlt(localContext, 1);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 284;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.RESOLVE);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 285;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.ID);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 286;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.stringLiteral();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 287;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case QuixosCapabilityParser.CONNECT:
|
|
|
|
|
this.enterOuterAlt(localContext, 2);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 289;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.CONNECT);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 290;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.ID);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 291;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.stringLiteral();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 292;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case QuixosCapabilityParser.DISCONNECT:
|
|
|
|
|
this.enterOuterAlt(localContext, 3);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 294;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.DISCONNECT);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 295;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.ID);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 296;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.stringLiteral();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 297;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case QuixosCapabilityParser.WATCH:
|
|
|
|
|
this.enterOuterAlt(localContext, 4);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 299;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.WATCH);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 300;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.START);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 301;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.ID);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 302;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.stringLiteral();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 303;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.STOP);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 304;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.ID);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 305;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.stringLiteral();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 306;
|
2026-09-03 15:46:52 -07:00
|
|
|
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);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.enterRule(localContext, 30, QuixosCapabilityParser.RULE_targetConstraint);
|
2026-09-03 15:46:52 -07:00
|
|
|
try {
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 314;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.errorHandler.sync(this);
|
|
|
|
|
switch (this.tokenStream.LA(1)) {
|
|
|
|
|
case QuixosCapabilityParser.ATOM:
|
|
|
|
|
this.enterOuterAlt(localContext, 1);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 310;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.ATOM);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 311;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.identifier();
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case QuixosCapabilityParser.INTERFACE:
|
|
|
|
|
this.enterOuterAlt(localContext, 2);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 312;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.INTERFACE);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 313;
|
2026-09-03 15:46:52 -07:00
|
|
|
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;
|
|
|
|
|
}
|
2026-09-05 12:33:52 -07:00
|
|
|
public packageResourceDecl(): PackageResourceDeclContext {
|
|
|
|
|
let localContext = new PackageResourceDeclContext(this.context, this.state);
|
|
|
|
|
this.enterRule(localContext, 32, QuixosCapabilityParser.RULE_packageResourceDecl);
|
2026-09-03 15:46:52 -07:00
|
|
|
let _la: number;
|
|
|
|
|
try {
|
|
|
|
|
this.enterOuterAlt(localContext, 1);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 319;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.errorHandler.sync(this);
|
|
|
|
|
_la = this.tokenStream.LA(1);
|
2026-09-05 12:33:52 -07:00
|
|
|
while (_la === 2 || _la === 3) {
|
2026-09-03 15:46:52 -07:00
|
|
|
{
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 316;
|
|
|
|
|
this.resourcePreamble();
|
2026-09-03 15:46:52 -07:00
|
|
|
}
|
|
|
|
|
}
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 321;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.errorHandler.sync(this);
|
|
|
|
|
_la = this.tokenStream.LA(1);
|
|
|
|
|
}
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 322;
|
|
|
|
|
this.match(QuixosCapabilityParser.PACKAGE);
|
|
|
|
|
this.state = 323;
|
|
|
|
|
this.identifier();
|
|
|
|
|
this.state = 324;
|
|
|
|
|
this.match(QuixosCapabilityParser.ID);
|
|
|
|
|
this.state = 325;
|
|
|
|
|
this.stringLiteral();
|
|
|
|
|
this.state = 326;
|
|
|
|
|
this.match(QuixosCapabilityParser.REVISION);
|
|
|
|
|
this.state = 327;
|
|
|
|
|
this.stringLiteral();
|
|
|
|
|
this.state = 328;
|
|
|
|
|
this.match(QuixosCapabilityParser.LBRACE);
|
|
|
|
|
this.state = 332;
|
|
|
|
|
this.errorHandler.sync(this);
|
|
|
|
|
_la = this.tokenStream.LA(1);
|
|
|
|
|
while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 7168) !== 0)) {
|
|
|
|
|
{
|
|
|
|
|
{
|
|
|
|
|
this.state = 329;
|
|
|
|
|
this.packageExport();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
this.state = 334;
|
|
|
|
|
this.errorHandler.sync(this);
|
|
|
|
|
_la = this.tokenStream.LA(1);
|
|
|
|
|
}
|
|
|
|
|
this.state = 335;
|
2026-09-03 15:46:52 -07:00
|
|
|
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);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.enterRule(localContext, 34, QuixosCapabilityParser.RULE_packageExport);
|
2026-09-03 15:46:52 -07:00
|
|
|
try {
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 340;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.errorHandler.sync(this);
|
|
|
|
|
switch (this.tokenStream.LA(1)) {
|
|
|
|
|
case QuixosCapabilityParser.OPERATION:
|
|
|
|
|
this.enterOuterAlt(localContext, 1);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 337;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.packageOperationExport();
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case QuixosCapabilityParser.FUNCTION:
|
|
|
|
|
this.enterOuterAlt(localContext, 2);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 338;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.packageFunctionExport();
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case QuixosCapabilityParser.CONSTRUCTOR:
|
|
|
|
|
this.enterOuterAlt(localContext, 3);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 339;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.packageConstructorExport();
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
throw new antlr.NoViableAltException(this);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
catch (re) {
|
|
|
|
|
if (re instanceof antlr.RecognitionException) {
|
|
|
|
|
this.errorHandler.reportError(this, re);
|
|
|
|
|
this.errorHandler.recover(this, re);
|
|
|
|
|
} else {
|
|
|
|
|
throw re;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
finally {
|
|
|
|
|
this.exitRule();
|
|
|
|
|
}
|
|
|
|
|
return localContext;
|
|
|
|
|
}
|
|
|
|
|
public packageOperationExport(): PackageOperationExportContext {
|
|
|
|
|
let localContext = new PackageOperationExportContext(this.context, this.state);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.enterRule(localContext, 36, QuixosCapabilityParser.RULE_packageOperationExport);
|
2026-09-03 15:46:52 -07:00
|
|
|
let _la: number;
|
|
|
|
|
try {
|
|
|
|
|
this.enterOuterAlt(localContext, 1);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 342;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.OPERATION);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 343;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.identifier();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 344;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.ID);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 345;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.stringLiteral();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 346;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.COLON);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 347;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.valueType();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 348;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.ARROW);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 349;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.valueType();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 350;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.MODE);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 351;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.operationMode();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 353;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.errorHandler.sync(this);
|
|
|
|
|
_la = this.tokenStream.LA(1);
|
2026-09-04 21:03:09 -07:00
|
|
|
if (_la === 39) {
|
2026-09-03 15:46:52 -07:00
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 352;
|
|
|
|
|
this.eventClause();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.state = 355;
|
|
|
|
|
this.match(QuixosCapabilityParser.RECEIVER);
|
|
|
|
|
this.state = 356;
|
|
|
|
|
this.receiverRequirement();
|
|
|
|
|
this.state = 358;
|
|
|
|
|
this.errorHandler.sync(this);
|
|
|
|
|
_la = this.tokenStream.LA(1);
|
|
|
|
|
if (_la === 41) {
|
|
|
|
|
{
|
|
|
|
|
this.state = 357;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.dependencyBlock();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 360;
|
2026-09-03 15:46:52 -07:00
|
|
|
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);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.enterRule(localContext, 38, QuixosCapabilityParser.RULE_packageFunctionExport);
|
2026-09-03 15:46:52 -07:00
|
|
|
let _la: number;
|
|
|
|
|
try {
|
|
|
|
|
this.enterOuterAlt(localContext, 1);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 362;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.FUNCTION);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 363;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.identifier();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 364;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.ID);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 365;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.stringLiteral();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 366;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.COLON);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 367;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.valueType();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 368;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.ARROW);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 369;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.valueType();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 371;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.errorHandler.sync(this);
|
|
|
|
|
_la = this.tokenStream.LA(1);
|
2026-09-05 12:33:52 -07:00
|
|
|
if (_la === 41) {
|
2026-09-03 15:46:52 -07:00
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 370;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.dependencyBlock();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 373;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
catch (re) {
|
|
|
|
|
if (re instanceof antlr.RecognitionException) {
|
|
|
|
|
this.errorHandler.reportError(this, re);
|
|
|
|
|
this.errorHandler.recover(this, re);
|
|
|
|
|
} else {
|
|
|
|
|
throw re;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
finally {
|
|
|
|
|
this.exitRule();
|
|
|
|
|
}
|
|
|
|
|
return localContext;
|
|
|
|
|
}
|
|
|
|
|
public packageConstructorExport(): PackageConstructorExportContext {
|
|
|
|
|
let localContext = new PackageConstructorExportContext(this.context, this.state);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.enterRule(localContext, 40, QuixosCapabilityParser.RULE_packageConstructorExport);
|
2026-09-03 15:46:52 -07:00
|
|
|
let _la: number;
|
|
|
|
|
try {
|
|
|
|
|
this.enterOuterAlt(localContext, 1);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 375;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.CONSTRUCTOR);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 376;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.identifier();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 377;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.ID);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 378;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.stringLiteral();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 379;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.CONSTRUCTS);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 380;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.identifier();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 381;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.COLON);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 382;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.valueType();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 384;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.errorHandler.sync(this);
|
|
|
|
|
_la = this.tokenStream.LA(1);
|
2026-09-05 12:33:52 -07:00
|
|
|
if (_la === 41) {
|
2026-09-03 15:46:52 -07:00
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 383;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.dependencyBlock();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 386;
|
2026-09-03 15:46:52 -07:00
|
|
|
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);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.enterRule(localContext, 42, QuixosCapabilityParser.RULE_eventClause);
|
2026-09-03 15:46:52 -07:00
|
|
|
try {
|
|
|
|
|
this.enterOuterAlt(localContext, 1);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 388;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.EMITS);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 389;
|
2026-09-03 15:46:52 -07:00
|
|
|
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);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.enterRule(localContext, 44, QuixosCapabilityParser.RULE_operationMode);
|
2026-09-03 15:46:52 -07:00
|
|
|
let _la: number;
|
|
|
|
|
try {
|
|
|
|
|
this.enterOuterAlt(localContext, 1);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 391;
|
2026-09-03 15:46:52 -07:00
|
|
|
_la = this.tokenStream.LA(1);
|
2026-09-05 12:33:52 -07:00
|
|
|
if(!(((((_la - 53)) & ~0x1F) === 0 && ((1 << (_la - 53)) & 31) !== 0))) {
|
2026-09-03 15:46:52 -07:00
|
|
|
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);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.enterRule(localContext, 46, QuixosCapabilityParser.RULE_receiverRequirement);
|
2026-09-03 15:46:52 -07:00
|
|
|
let _la: number;
|
|
|
|
|
try {
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 402;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.errorHandler.sync(this);
|
|
|
|
|
switch (this.tokenStream.LA(1)) {
|
|
|
|
|
case QuixosCapabilityParser.ANY:
|
|
|
|
|
this.enterOuterAlt(localContext, 1);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 393;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.ANY);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case QuixosCapabilityParser.ATOM:
|
|
|
|
|
this.enterOuterAlt(localContext, 2);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 394;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.ATOM);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 395;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.identifier();
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case QuixosCapabilityParser.INTERFACES:
|
|
|
|
|
this.enterOuterAlt(localContext, 3);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 396;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.INTERFACES);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 397;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.LBRACK);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 399;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.errorHandler.sync(this);
|
|
|
|
|
_la = this.tokenStream.LA(1);
|
2026-09-05 12:33:52 -07:00
|
|
|
if (_la === 32 || _la === 98) {
|
2026-09-03 15:46:52 -07:00
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 398;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.identifierList();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 401;
|
2026-09-03 15:46:52 -07:00
|
|
|
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);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.enterRule(localContext, 48, QuixosCapabilityParser.RULE_identifierList);
|
2026-09-03 15:46:52 -07:00
|
|
|
let _la: number;
|
|
|
|
|
try {
|
|
|
|
|
this.enterOuterAlt(localContext, 1);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 404;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.identifier();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 409;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.errorHandler.sync(this);
|
|
|
|
|
_la = this.tokenStream.LA(1);
|
2026-09-05 12:33:52 -07:00
|
|
|
while (_la === 86) {
|
2026-09-03 15:46:52 -07:00
|
|
|
{
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 405;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.COMMA);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 406;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.identifier();
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 411;
|
2026-09-03 15:46:52 -07:00
|
|
|
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);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.enterRule(localContext, 50, QuixosCapabilityParser.RULE_dependencyBlock);
|
2026-09-03 15:46:52 -07:00
|
|
|
let _la: number;
|
|
|
|
|
try {
|
|
|
|
|
this.enterOuterAlt(localContext, 1);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 412;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.REQUIRES);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 413;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.LBRACE);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 417;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.errorHandler.sync(this);
|
|
|
|
|
_la = this.tokenStream.LA(1);
|
2026-09-05 12:33:52 -07:00
|
|
|
while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 3149856) !== 0)) {
|
2026-09-03 15:46:52 -07:00
|
|
|
{
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 414;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.dependencyPort();
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 419;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.errorHandler.sync(this);
|
|
|
|
|
_la = this.tokenStream.LA(1);
|
|
|
|
|
}
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 420;
|
2026-09-03 15:46:52 -07:00
|
|
|
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);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.enterRule(localContext, 52, QuixosCapabilityParser.RULE_dependencyPort);
|
2026-09-03 15:46:52 -07:00
|
|
|
try {
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 457;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.errorHandler.sync(this);
|
|
|
|
|
switch (this.tokenStream.LA(1)) {
|
|
|
|
|
case QuixosCapabilityParser.STATE:
|
|
|
|
|
this.enterOuterAlt(localContext, 1);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 422;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.STATE);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 423;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.identifier();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 424;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.ID);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 425;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.stringLiteral();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 426;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.COLON);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 427;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.valueType();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 428;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.primitiveList();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 429;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case QuixosCapabilityParser.EDGE:
|
|
|
|
|
this.enterOuterAlt(localContext, 2);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 431;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.EDGE);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 432;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.identifier();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 433;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.ID);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 434;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.stringLiteral();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 435;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.COLON);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 436;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.cardinality();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 437;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.targetConstraint();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 438;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.primitiveList();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 439;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case QuixosCapabilityParser.INTERFACE:
|
|
|
|
|
this.enterOuterAlt(localContext, 3);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 441;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.INTERFACE);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 442;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.identifier();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 443;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.ID);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 444;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.stringLiteral();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 445;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.COLON);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 446;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.identifier();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 447;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case QuixosCapabilityParser.CONSTRUCTOR:
|
|
|
|
|
this.enterOuterAlt(localContext, 4);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 449;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.CONSTRUCTOR);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 450;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.identifier();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 451;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.ID);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 452;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.stringLiteral();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 453;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.COLON);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 454;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.identifier();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 455;
|
2026-09-03 15:46:52 -07:00
|
|
|
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);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.enterRule(localContext, 54, QuixosCapabilityParser.RULE_primitiveList);
|
2026-09-03 15:46:52 -07:00
|
|
|
let _la: number;
|
|
|
|
|
try {
|
|
|
|
|
this.enterOuterAlt(localContext, 1);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 459;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.LBRACK);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 460;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.primitive();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 465;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.errorHandler.sync(this);
|
|
|
|
|
_la = this.tokenStream.LA(1);
|
2026-09-05 12:33:52 -07:00
|
|
|
while (_la === 86) {
|
2026-09-03 15:46:52 -07:00
|
|
|
{
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 461;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.COMMA);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 462;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.primitive();
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 467;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.errorHandler.sync(this);
|
|
|
|
|
_la = this.tokenStream.LA(1);
|
|
|
|
|
}
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 468;
|
2026-09-03 15:46:52 -07:00
|
|
|
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);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.enterRule(localContext, 56, QuixosCapabilityParser.RULE_primitive);
|
2026-09-03 15:46:52 -07:00
|
|
|
let _la: number;
|
|
|
|
|
try {
|
|
|
|
|
this.enterOuterAlt(localContext, 1);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 470;
|
2026-09-03 15:46:52 -07:00
|
|
|
_la = this.tokenStream.LA(1);
|
2026-09-05 12:33:52 -07:00
|
|
|
if(!(((((_la - 48)) & ~0x1F) === 0 && ((1 << (_la - 48)) & 223) !== 0))) {
|
2026-09-03 15:46:52 -07:00
|
|
|
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);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.enterRule(localContext, 58, QuixosCapabilityParser.RULE_sharedAttachmentDecl);
|
2026-09-03 15:46:52 -07:00
|
|
|
try {
|
|
|
|
|
this.enterOuterAlt(localContext, 1);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 472;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.SHARED);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 473;
|
2026-09-03 15:46:52 -07:00
|
|
|
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);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.enterRule(localContext, 60, QuixosCapabilityParser.RULE_attachmentDecl);
|
2026-09-03 15:46:52 -07:00
|
|
|
try {
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 477;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.errorHandler.sync(this);
|
|
|
|
|
switch (this.tokenStream.LA(1)) {
|
|
|
|
|
case QuixosCapabilityParser.STATE:
|
|
|
|
|
this.enterOuterAlt(localContext, 1);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 475;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.stateDecl();
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case QuixosCapabilityParser.EDGE:
|
|
|
|
|
this.enterOuterAlt(localContext, 2);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 476;
|
2026-09-03 15:46:52 -07:00
|
|
|
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);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.enterRule(localContext, 62, QuixosCapabilityParser.RULE_stateDecl);
|
2026-09-03 15:46:52 -07:00
|
|
|
let _la: number;
|
|
|
|
|
try {
|
|
|
|
|
this.enterOuterAlt(localContext, 1);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 479;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.STATE);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 480;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.identifier();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 481;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.ID);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 482;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.stringLiteral();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 483;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.ON);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 484;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.identifier();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 485;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.COLON);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 486;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.valueType();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 487;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.POLICY);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 488;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.storagePolicy();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 491;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.errorHandler.sync(this);
|
|
|
|
|
_la = this.tokenStream.LA(1);
|
2026-09-05 12:33:52 -07:00
|
|
|
if (_la === 31) {
|
2026-09-03 15:46:52 -07:00
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 489;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.DEFAULT);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 490;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.jsonLiteral();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 493;
|
2026-09-03 15:46:52 -07:00
|
|
|
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);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.enterRule(localContext, 64, QuixosCapabilityParser.RULE_storagePolicy);
|
2026-09-03 15:46:52 -07:00
|
|
|
try {
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 501;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.errorHandler.sync(this);
|
|
|
|
|
switch (this.tokenStream.LA(1)) {
|
|
|
|
|
case QuixosCapabilityParser.OPTIMISTIC_REGISTER:
|
|
|
|
|
this.enterOuterAlt(localContext, 1);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 495;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.OPTIMISTIC_REGISTER);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case QuixosCapabilityParser.CRDT:
|
|
|
|
|
this.enterOuterAlt(localContext, 2);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 496;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.CRDT);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 497;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.LPAREN);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 498;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.valueType();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 499;
|
2026-09-03 15:46:52 -07:00
|
|
|
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);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.enterRule(localContext, 66, QuixosCapabilityParser.RULE_edgeDecl);
|
2026-09-03 15:46:52 -07:00
|
|
|
try {
|
|
|
|
|
this.enterOuterAlt(localContext, 1);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 503;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.EDGE);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 504;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.identifier();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 505;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.ID);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 506;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.stringLiteral();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 507;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.LBRACE);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 508;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.edgeEndpoint();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 509;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.edgeEndpoint();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 510;
|
2026-09-03 15:46:52 -07:00
|
|
|
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);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.enterRule(localContext, 68, QuixosCapabilityParser.RULE_edgeEndpoint);
|
2026-09-03 15:46:52 -07:00
|
|
|
let _la: number;
|
|
|
|
|
try {
|
|
|
|
|
this.enterOuterAlt(localContext, 1);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 512;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.targetConstraint();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 513;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.PROJECTION);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 514;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.identifier();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 515;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.ID);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 516;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.stringLiteral();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 517;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.cardinality();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 519;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.errorHandler.sync(this);
|
|
|
|
|
_la = this.tokenStream.LA(1);
|
2026-09-05 12:33:52 -07:00
|
|
|
if (_la === 64) {
|
2026-09-03 15:46:52 -07:00
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 518;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.ORDERED);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 521;
|
2026-09-03 15:46:52 -07:00
|
|
|
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);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.enterRule(localContext, 70, QuixosCapabilityParser.RULE_conformanceDecl);
|
2026-09-03 15:46:52 -07:00
|
|
|
let _la: number;
|
|
|
|
|
try {
|
|
|
|
|
this.enterOuterAlt(localContext, 1);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 523;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.CONFORM);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 524;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.identifier();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 525;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.AS);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 526;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.identifier();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 527;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.LBRACE);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 531;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.errorHandler.sync(this);
|
|
|
|
|
_la = this.tokenStream.LA(1);
|
2026-09-05 12:33:52 -07:00
|
|
|
while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 67436544) !== 0)) {
|
2026-09-03 15:46:52 -07:00
|
|
|
{
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 528;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.conformanceItem();
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 533;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.errorHandler.sync(this);
|
|
|
|
|
_la = this.tokenStream.LA(1);
|
|
|
|
|
}
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 534;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.RBRACE);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
catch (re) {
|
|
|
|
|
if (re instanceof antlr.RecognitionException) {
|
|
|
|
|
this.errorHandler.reportError(this, re);
|
|
|
|
|
this.errorHandler.recover(this, re);
|
|
|
|
|
} else {
|
|
|
|
|
throw re;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
finally {
|
|
|
|
|
this.exitRule();
|
|
|
|
|
}
|
|
|
|
|
return localContext;
|
|
|
|
|
}
|
|
|
|
|
public conformanceItem(): ConformanceItemContext {
|
|
|
|
|
let localContext = new ConformanceItemContext(this.context, this.state);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.enterRule(localContext, 72, QuixosCapabilityParser.RULE_conformanceItem);
|
2026-09-03 15:46:52 -07:00
|
|
|
try {
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 540;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.errorHandler.sync(this);
|
|
|
|
|
switch (this.tokenStream.LA(1)) {
|
|
|
|
|
case QuixosCapabilityParser.PRIVATE:
|
|
|
|
|
this.enterOuterAlt(localContext, 1);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 536;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.PRIVATE);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 537;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.attachmentDecl();
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case QuixosCapabilityParser.BIND:
|
|
|
|
|
this.enterOuterAlt(localContext, 2);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 538;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.operationBindingDecl();
|
|
|
|
|
}
|
|
|
|
|
break;
|
2026-09-04 21:03:09 -07:00
|
|
|
case QuixosCapabilityParser.MATERIALIZE:
|
|
|
|
|
this.enterOuterAlt(localContext, 3);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 539;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.relationshipMaterializationDecl();
|
|
|
|
|
}
|
|
|
|
|
break;
|
2026-09-03 15:46:52 -07:00
|
|
|
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;
|
|
|
|
|
}
|
2026-09-04 21:03:09 -07:00
|
|
|
public relationshipMaterializationDecl(): RelationshipMaterializationDeclContext {
|
|
|
|
|
let localContext = new RelationshipMaterializationDeclContext(this.context, this.state);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.enterRule(localContext, 74, QuixosCapabilityParser.RULE_relationshipMaterializationDecl);
|
2026-09-03 15:46:52 -07:00
|
|
|
try {
|
|
|
|
|
this.enterOuterAlt(localContext, 1);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 542;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.MATERIALIZE);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 543;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.identifier();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 544;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.IF);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 545;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.ABSENT);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 546;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.USING);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 547;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.CONSTRUCTOR);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 548;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.identifier();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 549;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.VIA);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 550;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.EDGE);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 551;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.identifier();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 552;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.DOT);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 553;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.identifier();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 554;
|
2026-09-04 21:03:09 -07:00
|
|
|
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);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.enterRule(localContext, 76, QuixosCapabilityParser.RULE_operationBindingDecl);
|
2026-09-04 21:03:09 -07:00
|
|
|
try {
|
|
|
|
|
this.enterOuterAlt(localContext, 1);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 556;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.BIND);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 557;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.memberOperationRef();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 558;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.TO);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 559;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.operationProvider();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 560;
|
2026-09-03 15:46:52 -07:00
|
|
|
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);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.enterRule(localContext, 78, QuixosCapabilityParser.RULE_memberOperationRef);
|
2026-09-03 15:46:52 -07:00
|
|
|
try {
|
|
|
|
|
this.enterOuterAlt(localContext, 1);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 562;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.identifier();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 563;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.DOT);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 564;
|
2026-09-03 15:46:52 -07:00
|
|
|
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);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.enterRule(localContext, 80, QuixosCapabilityParser.RULE_operationName);
|
2026-09-03 15:46:52 -07:00
|
|
|
try {
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 577;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.errorHandler.sync(this);
|
|
|
|
|
switch (this.tokenStream.LA(1)) {
|
|
|
|
|
case QuixosCapabilityParser.SOURCE:
|
|
|
|
|
case QuixosCapabilityParser.IDENTIFIER:
|
|
|
|
|
this.enterOuterAlt(localContext, 1);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 566;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.identifier();
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case QuixosCapabilityParser.CALL:
|
|
|
|
|
this.enterOuterAlt(localContext, 2);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 567;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.CALL);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case QuixosCapabilityParser.GET:
|
|
|
|
|
this.enterOuterAlt(localContext, 3);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 568;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.GET);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case QuixosCapabilityParser.SET:
|
|
|
|
|
this.enterOuterAlt(localContext, 4);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 569;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.SET);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case QuixosCapabilityParser.RESOLVE:
|
|
|
|
|
this.enterOuterAlt(localContext, 5);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 570;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.RESOLVE);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case QuixosCapabilityParser.CONNECT:
|
|
|
|
|
this.enterOuterAlt(localContext, 6);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 571;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.CONNECT);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case QuixosCapabilityParser.DISCONNECT:
|
|
|
|
|
this.enterOuterAlt(localContext, 7);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 572;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.DISCONNECT);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case QuixosCapabilityParser.WATCH_START:
|
|
|
|
|
this.enterOuterAlt(localContext, 8);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 573;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.WATCH_START);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case QuixosCapabilityParser.WATCH_STOP:
|
|
|
|
|
this.enterOuterAlt(localContext, 9);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 574;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.WATCH_STOP);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case QuixosCapabilityParser.SUBSCRIBE:
|
|
|
|
|
this.enterOuterAlt(localContext, 10);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 575;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.SUBSCRIBE);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case QuixosCapabilityParser.UNSUBSCRIBE:
|
|
|
|
|
this.enterOuterAlt(localContext, 11);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 576;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.UNSUBSCRIBE);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
throw new antlr.NoViableAltException(this);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
catch (re) {
|
|
|
|
|
if (re instanceof antlr.RecognitionException) {
|
|
|
|
|
this.errorHandler.reportError(this, re);
|
|
|
|
|
this.errorHandler.recover(this, re);
|
|
|
|
|
} else {
|
|
|
|
|
throw re;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
finally {
|
|
|
|
|
this.exitRule();
|
|
|
|
|
}
|
|
|
|
|
return localContext;
|
|
|
|
|
}
|
|
|
|
|
public operationProvider(): OperationProviderContext {
|
|
|
|
|
let localContext = new OperationProviderContext(this.context, this.state);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.enterRule(localContext, 82, QuixosCapabilityParser.RULE_operationProvider);
|
2026-09-03 15:46:52 -07:00
|
|
|
let _la: number;
|
|
|
|
|
try {
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 598;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.errorHandler.sync(this);
|
|
|
|
|
switch (this.tokenStream.LA(1)) {
|
|
|
|
|
case QuixosCapabilityParser.STATE:
|
|
|
|
|
this.enterOuterAlt(localContext, 1);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 579;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.STATE);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 580;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.identifier();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 581;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.DOT);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 582;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.statePrimitive();
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case QuixosCapabilityParser.EDGE:
|
|
|
|
|
this.enterOuterAlt(localContext, 2);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 584;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.EDGE);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 585;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.identifier();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 586;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.DOT);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 587;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.identifier();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 588;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.DOT);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 589;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.edgePrimitive();
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case QuixosCapabilityParser.PACKAGE:
|
|
|
|
|
this.enterOuterAlt(localContext, 3);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 591;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.PACKAGE);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 592;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.identifier();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 593;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.DOT);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 594;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.identifier();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 596;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.errorHandler.sync(this);
|
|
|
|
|
_la = this.tokenStream.LA(1);
|
2026-09-05 12:33:52 -07:00
|
|
|
if (_la === 23) {
|
2026-09-03 15:46:52 -07:00
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 595;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.dependencyBindingBlock();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
throw new antlr.NoViableAltException(this);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
catch (re) {
|
|
|
|
|
if (re instanceof antlr.RecognitionException) {
|
|
|
|
|
this.errorHandler.reportError(this, re);
|
|
|
|
|
this.errorHandler.recover(this, re);
|
|
|
|
|
} else {
|
|
|
|
|
throw re;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
finally {
|
|
|
|
|
this.exitRule();
|
|
|
|
|
}
|
|
|
|
|
return localContext;
|
|
|
|
|
}
|
|
|
|
|
public statePrimitive(): StatePrimitiveContext {
|
|
|
|
|
let localContext = new StatePrimitiveContext(this.context, this.state);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.enterRule(localContext, 84, QuixosCapabilityParser.RULE_statePrimitive);
|
2026-09-03 15:46:52 -07:00
|
|
|
let _la: number;
|
|
|
|
|
try {
|
|
|
|
|
this.enterOuterAlt(localContext, 1);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 600;
|
2026-09-03 15:46:52 -07:00
|
|
|
_la = this.tokenStream.LA(1);
|
2026-09-05 12:33:52 -07:00
|
|
|
if(!(((((_la - 48)) & ~0x1F) === 0 && ((1 << (_la - 48)) & 195) !== 0))) {
|
2026-09-03 15:46:52 -07:00
|
|
|
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);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.enterRule(localContext, 86, QuixosCapabilityParser.RULE_edgePrimitive);
|
2026-09-03 15:46:52 -07:00
|
|
|
let _la: number;
|
|
|
|
|
try {
|
|
|
|
|
this.enterOuterAlt(localContext, 1);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 602;
|
2026-09-03 15:46:52 -07:00
|
|
|
_la = this.tokenStream.LA(1);
|
2026-09-05 12:33:52 -07:00
|
|
|
if(!(((((_la - 50)) & ~0x1F) === 0 && ((1 << (_la - 50)) & 55) !== 0))) {
|
2026-09-03 15:46:52 -07:00
|
|
|
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);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.enterRule(localContext, 88, QuixosCapabilityParser.RULE_dependencyBindingBlock);
|
2026-09-03 15:46:52 -07:00
|
|
|
let _la: number;
|
|
|
|
|
try {
|
|
|
|
|
this.enterOuterAlt(localContext, 1);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 604;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.WITH);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 605;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.LBRACE);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 609;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.errorHandler.sync(this);
|
|
|
|
|
_la = this.tokenStream.LA(1);
|
2026-09-05 12:33:52 -07:00
|
|
|
while (_la === 32 || _la === 98) {
|
2026-09-03 15:46:52 -07:00
|
|
|
{
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 606;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.dependencyBinding();
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 611;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.errorHandler.sync(this);
|
|
|
|
|
_la = this.tokenStream.LA(1);
|
|
|
|
|
}
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 612;
|
2026-09-03 15:46:52 -07:00
|
|
|
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);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.enterRule(localContext, 90, QuixosCapabilityParser.RULE_dependencyBinding);
|
2026-09-04 21:03:09 -07:00
|
|
|
let _la: number;
|
2026-09-03 15:46:52 -07:00
|
|
|
try {
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 664;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.errorHandler.sync(this);
|
2026-09-05 12:33:52 -07:00
|
|
|
switch (this.interpreter.adaptivePredict(this.tokenStream, 41, this.context) ) {
|
2026-09-03 15:46:52 -07:00
|
|
|
case 1:
|
|
|
|
|
this.enterOuterAlt(localContext, 1);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 614;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.identifier();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 615;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.TO);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 616;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.STATE);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 617;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.identifier();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 624;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.errorHandler.sync(this);
|
|
|
|
|
_la = this.tokenStream.LA(1);
|
2026-09-05 12:33:52 -07:00
|
|
|
if (_la === 25) {
|
2026-09-04 21:03:09 -07:00
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 618;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.VIA);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 619;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.EDGE);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 620;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.identifier();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 621;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.DOT);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 622;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.identifier();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 626;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case 2:
|
|
|
|
|
this.enterOuterAlt(localContext, 2);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 628;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.identifier();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 629;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.TO);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 630;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.EDGE);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 631;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.identifier();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 632;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.DOT);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 633;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.identifier();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 640;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.errorHandler.sync(this);
|
|
|
|
|
_la = this.tokenStream.LA(1);
|
2026-09-05 12:33:52 -07:00
|
|
|
if (_la === 25) {
|
2026-09-04 21:03:09 -07:00
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 634;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.VIA);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 635;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.EDGE);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 636;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.identifier();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 637;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.match(QuixosCapabilityParser.DOT);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 638;
|
2026-09-04 21:03:09 -07:00
|
|
|
this.identifier();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 642;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case 3:
|
|
|
|
|
this.enterOuterAlt(localContext, 3);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 644;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.identifier();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 645;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.TO);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 646;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.INTERFACE);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 647;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.identifier();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 654;
|
|
|
|
|
this.errorHandler.sync(this);
|
|
|
|
|
_la = this.tokenStream.LA(1);
|
|
|
|
|
if (_la === 25) {
|
|
|
|
|
{
|
|
|
|
|
this.state = 648;
|
|
|
|
|
this.match(QuixosCapabilityParser.VIA);
|
|
|
|
|
this.state = 649;
|
|
|
|
|
this.match(QuixosCapabilityParser.EDGE);
|
|
|
|
|
this.state = 650;
|
|
|
|
|
this.identifier();
|
|
|
|
|
this.state = 651;
|
|
|
|
|
this.match(QuixosCapabilityParser.DOT);
|
|
|
|
|
this.state = 652;
|
|
|
|
|
this.identifier();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.state = 656;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.SEMI);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case 4:
|
|
|
|
|
this.enterOuterAlt(localContext, 4);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 658;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.identifier();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 659;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.TO);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 660;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.CONSTRUCTOR);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 661;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.identifier();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 662;
|
2026-09-03 15:46:52 -07:00
|
|
|
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);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.enterRule(localContext, 92, QuixosCapabilityParser.RULE_constructorBindingDecl);
|
2026-09-03 15:46:52 -07:00
|
|
|
let _la: number;
|
|
|
|
|
try {
|
|
|
|
|
this.enterOuterAlt(localContext, 1);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 666;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.CONSTRUCTOR);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 667;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.identifier();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 668;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.TO);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 669;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.identifier();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 670;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.DOT);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 671;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.identifier();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 673;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.errorHandler.sync(this);
|
|
|
|
|
_la = this.tokenStream.LA(1);
|
2026-09-05 12:33:52 -07:00
|
|
|
if (_la === 23) {
|
2026-09-03 15:46:52 -07:00
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 672;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.dependencyBindingBlock();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 675;
|
2026-09-03 15:46:52 -07:00
|
|
|
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);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.enterRule(localContext, 94, QuixosCapabilityParser.RULE_valueType);
|
2026-09-03 15:46:52 -07:00
|
|
|
try {
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 702;
|
2026-09-03 15:46:52 -07:00
|
|
|
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);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 677;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.scalarType();
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case QuixosCapabilityParser.UNIT:
|
|
|
|
|
this.enterOuterAlt(localContext, 2);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 678;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.UNIT);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case QuixosCapabilityParser.WATCH_HANDLE:
|
|
|
|
|
this.enterOuterAlt(localContext, 3);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 679;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.WATCH_HANDLE);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case QuixosCapabilityParser.MESSAGE:
|
|
|
|
|
this.enterOuterAlt(localContext, 4);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 680;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.MESSAGE);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 681;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.stringLiteral();
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case QuixosCapabilityParser.ATOM_REF:
|
|
|
|
|
this.enterOuterAlt(localContext, 5);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 682;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.ATOM_REF);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 683;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.LT);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 684;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.identifier();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 685;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.GT);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case QuixosCapabilityParser.INTERFACE_REF:
|
|
|
|
|
this.enterOuterAlt(localContext, 6);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 687;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.INTERFACE_REF);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 688;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.LT);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 689;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.identifier();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 690;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.GT);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case QuixosCapabilityParser.OPTIONAL:
|
|
|
|
|
this.enterOuterAlt(localContext, 7);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 692;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.OPTIONAL);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 693;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.LT);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 694;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.valueType();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 695;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.GT);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case QuixosCapabilityParser.LIST:
|
|
|
|
|
this.enterOuterAlt(localContext, 8);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 697;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.LIST);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 698;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.LT);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 699;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.valueType();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 700;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.GT);
|
|
|
|
|
}
|
|
|
|
|
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 scalarType(): ScalarTypeContext {
|
|
|
|
|
let localContext = new ScalarTypeContext(this.context, this.state);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.enterRule(localContext, 96, QuixosCapabilityParser.RULE_scalarType);
|
2026-09-03 15:46:52 -07:00
|
|
|
let _la: number;
|
|
|
|
|
try {
|
|
|
|
|
this.enterOuterAlt(localContext, 1);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 704;
|
2026-09-03 15:46:52 -07:00
|
|
|
_la = this.tokenStream.LA(1);
|
2026-09-05 12:33:52 -07:00
|
|
|
if(!(((((_la - 72)) & ~0x1F) === 0 && ((1 << (_la - 72)) & 255) !== 0))) {
|
2026-09-03 15:46:52 -07:00
|
|
|
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);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.enterRule(localContext, 98, QuixosCapabilityParser.RULE_cardinality);
|
2026-09-03 15:46:52 -07:00
|
|
|
let _la: number;
|
|
|
|
|
try {
|
|
|
|
|
this.enterOuterAlt(localContext, 1);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 706;
|
2026-09-03 15:46:52 -07:00
|
|
|
_la = this.tokenStream.LA(1);
|
2026-09-05 12:33:52 -07:00
|
|
|
if(!(((((_la - 60)) & ~0x1F) === 0 && ((1 << (_la - 60)) & 15) !== 0))) {
|
2026-09-03 15:46:52 -07:00
|
|
|
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);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.enterRule(localContext, 100, QuixosCapabilityParser.RULE_jsonLiteral);
|
2026-09-03 15:46:52 -07:00
|
|
|
try {
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 716;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.errorHandler.sync(this);
|
|
|
|
|
switch (this.tokenStream.LA(1)) {
|
|
|
|
|
case QuixosCapabilityParser.STRING_LITERAL:
|
|
|
|
|
this.enterOuterAlt(localContext, 1);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 708;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.stringLiteral();
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case QuixosCapabilityParser.INTEGER:
|
|
|
|
|
this.enterOuterAlt(localContext, 2);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 709;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.INTEGER);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case QuixosCapabilityParser.JSON_NUMBER:
|
|
|
|
|
this.enterOuterAlt(localContext, 3);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 710;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.JSON_NUMBER);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case QuixosCapabilityParser.TRUE:
|
|
|
|
|
this.enterOuterAlt(localContext, 4);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 711;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.TRUE);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case QuixosCapabilityParser.FALSE:
|
|
|
|
|
this.enterOuterAlt(localContext, 5);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 712;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.FALSE);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case QuixosCapabilityParser.NULL:
|
|
|
|
|
this.enterOuterAlt(localContext, 6);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 713;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.NULL);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case QuixosCapabilityParser.LBRACE:
|
|
|
|
|
this.enterOuterAlt(localContext, 7);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 714;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.jsonObject();
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case QuixosCapabilityParser.LBRACK:
|
|
|
|
|
this.enterOuterAlt(localContext, 8);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 715;
|
2026-09-03 15:46:52 -07:00
|
|
|
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);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.enterRule(localContext, 102, QuixosCapabilityParser.RULE_jsonObject);
|
2026-09-03 15:46:52 -07:00
|
|
|
let _la: number;
|
|
|
|
|
try {
|
|
|
|
|
this.enterOuterAlt(localContext, 1);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 718;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.LBRACE);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 727;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.errorHandler.sync(this);
|
|
|
|
|
_la = this.tokenStream.LA(1);
|
2026-09-05 12:33:52 -07:00
|
|
|
if (_la === 99) {
|
2026-09-03 15:46:52 -07:00
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 719;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.jsonMember();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 724;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.errorHandler.sync(this);
|
|
|
|
|
_la = this.tokenStream.LA(1);
|
2026-09-05 12:33:52 -07:00
|
|
|
while (_la === 86) {
|
2026-09-03 15:46:52 -07:00
|
|
|
{
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 720;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.COMMA);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 721;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.jsonMember();
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 726;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.errorHandler.sync(this);
|
|
|
|
|
_la = this.tokenStream.LA(1);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 729;
|
2026-09-03 15:46:52 -07:00
|
|
|
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);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.enterRule(localContext, 104, QuixosCapabilityParser.RULE_jsonMember);
|
2026-09-03 15:46:52 -07:00
|
|
|
try {
|
|
|
|
|
this.enterOuterAlt(localContext, 1);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 731;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.stringLiteral();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 732;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.COLON);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 733;
|
2026-09-03 15:46:52 -07:00
|
|
|
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);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.enterRule(localContext, 106, QuixosCapabilityParser.RULE_jsonArray);
|
2026-09-03 15:46:52 -07:00
|
|
|
let _la: number;
|
|
|
|
|
try {
|
|
|
|
|
this.enterOuterAlt(localContext, 1);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 735;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.LBRACK);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 744;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.errorHandler.sync(this);
|
|
|
|
|
_la = this.tokenStream.LA(1);
|
2026-09-05 12:33:52 -07:00
|
|
|
if (((((_la - 80)) & ~0x1F) === 0 && ((1 << (_la - 80)) & 722183) !== 0)) {
|
2026-09-03 15:46:52 -07:00
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 736;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.jsonLiteral();
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 741;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.errorHandler.sync(this);
|
|
|
|
|
_la = this.tokenStream.LA(1);
|
2026-09-05 12:33:52 -07:00
|
|
|
while (_la === 86) {
|
2026-09-03 15:46:52 -07:00
|
|
|
{
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 737;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.match(QuixosCapabilityParser.COMMA);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 738;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.jsonLiteral();
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 743;
|
2026-09-03 15:46:52 -07:00
|
|
|
this.errorHandler.sync(this);
|
|
|
|
|
_la = this.tokenStream.LA(1);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 746;
|
2026-09-03 15:46:52 -07:00
|
|
|
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);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.enterRule(localContext, 108, QuixosCapabilityParser.RULE_identifier);
|
2026-09-03 15:46:52 -07:00
|
|
|
let _la: number;
|
|
|
|
|
try {
|
|
|
|
|
this.enterOuterAlt(localContext, 1);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 748;
|
2026-09-03 15:46:52 -07:00
|
|
|
_la = this.tokenStream.LA(1);
|
2026-09-05 12:33:52 -07:00
|
|
|
if(!(_la === 32 || _la === 98)) {
|
2026-09-03 15:46:52 -07:00
|
|
|
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);
|
2026-09-05 12:33:52 -07:00
|
|
|
this.enterRule(localContext, 110, QuixosCapabilityParser.RULE_stringLiteral);
|
2026-09-03 15:46:52 -07:00
|
|
|
try {
|
|
|
|
|
this.enterOuterAlt(localContext, 1);
|
|
|
|
|
{
|
2026-09-05 12:33:52 -07:00
|
|
|
this.state = 750;
|
2026-09-03 15:46:52 -07:00
|
|
|
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[] = [
|
2026-09-05 12:33:52 -07:00
|
|
|
4,1,102,753,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,
|
2026-09-04 21:03:09 -07:00
|
|
|
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,
|
2026-09-05 12:33:52 -07:00
|
|
|
52,2,53,7,53,2,54,7,54,2,55,7,55,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,
|
|
|
|
|
1,0,3,0,122,8,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,5,1,134,
|
|
|
|
|
8,1,10,1,12,1,137,9,1,1,1,1,1,1,2,1,2,1,2,1,2,1,2,3,2,146,8,2,1,
|
|
|
|
|
3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,3,3,158,8,3,1,4,1,4,1,4,1,
|
|
|
|
|
4,1,4,1,4,1,4,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,6,1,6,1,6,3,6,177,8,
|
|
|
|
|
6,1,7,1,7,1,7,1,7,1,7,1,7,3,7,185,8,7,1,7,1,7,1,8,5,8,190,8,8,10,
|
|
|
|
|
8,12,8,193,9,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,5,8,203,8,8,10,8,
|
|
|
|
|
12,8,206,9,8,1,8,1,8,1,9,1,9,1,9,3,9,213,8,9,1,10,1,10,1,10,1,10,
|
|
|
|
|
1,10,1,10,1,10,1,10,1,10,1,10,1,10,1,10,1,10,1,10,1,10,1,11,1,11,
|
|
|
|
|
1,11,1,11,1,11,1,11,1,11,1,11,5,11,238,8,11,10,11,12,11,241,9,11,
|
|
|
|
|
1,11,1,11,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,
|
|
|
|
|
1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,3,12,264,8,12,1,13,1,13,
|
|
|
|
|
1,13,1,13,1,13,1,13,1,13,1,13,3,13,274,8,13,1,13,1,13,5,13,278,8,
|
|
|
|
|
13,10,13,12,13,281,9,13,1,13,1,13,1,14,1,14,1,14,1,14,1,14,1,14,
|
|
|
|
|
1,14,1,14,1,14,1,14,1,14,1,14,1,14,1,14,1,14,1,14,1,14,1,14,1,14,
|
|
|
|
|
1,14,1,14,1,14,1,14,1,14,3,14,309,8,14,1,15,1,15,1,15,1,15,3,15,
|
|
|
|
|
315,8,15,1,16,5,16,318,8,16,10,16,12,16,321,9,16,1,16,1,16,1,16,
|
|
|
|
|
1,16,1,16,1,16,1,16,1,16,5,16,331,8,16,10,16,12,16,334,9,16,1,16,
|
|
|
|
|
1,16,1,17,1,17,1,17,3,17,341,8,17,1,18,1,18,1,18,1,18,1,18,1,18,
|
|
|
|
|
1,18,1,18,1,18,1,18,1,18,3,18,354,8,18,1,18,1,18,1,18,3,18,359,8,
|
|
|
|
|
18,1,18,1,18,1,19,1,19,1,19,1,19,1,19,1,19,1,19,1,19,1,19,3,19,372,
|
|
|
|
|
8,19,1,19,1,19,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,20,3,20,
|
|
|
|
|
385,8,20,1,20,1,20,1,21,1,21,1,21,1,22,1,22,1,23,1,23,1,23,1,23,
|
|
|
|
|
1,23,1,23,3,23,400,8,23,1,23,3,23,403,8,23,1,24,1,24,1,24,5,24,408,
|
|
|
|
|
8,24,10,24,12,24,411,9,24,1,25,1,25,1,25,5,25,416,8,25,10,25,12,
|
|
|
|
|
25,419,9,25,1,25,1,25,1,26,1,26,1,26,1,26,1,26,1,26,1,26,1,26,1,
|
|
|
|
|
26,1,26,1,26,1,26,1,26,1,26,1,26,1,26,1,26,1,26,1,26,1,26,1,26,1,
|
|
|
|
|
26,1,26,1,26,1,26,1,26,1,26,1,26,1,26,1,26,1,26,1,26,1,26,1,26,1,
|
|
|
|
|
26,3,26,458,8,26,1,27,1,27,1,27,1,27,5,27,464,8,27,10,27,12,27,467,
|
|
|
|
|
9,27,1,27,1,27,1,28,1,28,1,29,1,29,1,29,1,30,1,30,3,30,478,8,30,
|
|
|
|
|
1,31,1,31,1,31,1,31,1,31,1,31,1,31,1,31,1,31,1,31,1,31,1,31,3,31,
|
|
|
|
|
492,8,31,1,31,1,31,1,32,1,32,1,32,1,32,1,32,1,32,3,32,502,8,32,1,
|
|
|
|
|
33,1,33,1,33,1,33,1,33,1,33,1,33,1,33,1,33,1,34,1,34,1,34,1,34,1,
|
|
|
|
|
34,1,34,1,34,3,34,520,8,34,1,34,1,34,1,35,1,35,1,35,1,35,1,35,1,
|
|
|
|
|
35,5,35,530,8,35,10,35,12,35,533,9,35,1,35,1,35,1,36,1,36,1,36,1,
|
|
|
|
|
36,3,36,541,8,36,1,37,1,37,1,37,1,37,1,37,1,37,1,37,1,37,1,37,1,
|
|
|
|
|
37,1,37,1,37,1,37,1,37,1,38,1,38,1,38,1,38,1,38,1,38,1,39,1,39,1,
|
|
|
|
|
39,1,39,1,40,1,40,1,40,1,40,1,40,1,40,1,40,1,40,1,40,1,40,1,40,3,
|
|
|
|
|
40,578,8,40,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,
|
|
|
|
|
41,1,41,1,41,1,41,1,41,1,41,1,41,3,41,597,8,41,3,41,599,8,41,1,42,
|
|
|
|
|
1,42,1,43,1,43,1,44,1,44,1,44,5,44,608,8,44,10,44,12,44,611,9,44,
|
|
|
|
|
1,44,1,44,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,3,45,
|
|
|
|
|
625,8,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,
|
|
|
|
|
1,45,1,45,1,45,3,45,641,8,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,
|
|
|
|
|
1,45,1,45,1,45,1,45,1,45,3,45,655,8,45,1,45,1,45,1,45,1,45,1,45,
|
|
|
|
|
1,45,1,45,1,45,3,45,665,8,45,1,46,1,46,1,46,1,46,1,46,1,46,1,46,
|
|
|
|
|
3,46,674,8,46,1,46,1,46,1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,47,
|
|
|
|
|
1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,47,
|
|
|
|
|
1,47,1,47,1,47,1,47,3,47,703,8,47,1,48,1,48,1,49,1,49,1,50,1,50,
|
|
|
|
|
1,50,1,50,1,50,1,50,1,50,1,50,3,50,717,8,50,1,51,1,51,1,51,1,51,
|
|
|
|
|
5,51,723,8,51,10,51,12,51,726,9,51,3,51,728,8,51,1,51,1,51,1,52,
|
|
|
|
|
1,52,1,52,1,52,1,53,1,53,1,53,1,53,5,53,740,8,53,10,53,12,53,743,
|
|
|
|
|
9,53,3,53,745,8,53,1,53,1,53,1,54,1,54,1,55,1,55,1,55,0,0,56,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,0,7,1,0,53,57,2,0,48,52,54,55,2,
|
|
|
|
|
0,48,49,54,55,2,0,50,52,54,55,1,0,72,79,1,0,60,63,2,0,32,32,98,98,
|
|
|
|
|
783,0,121,1,0,0,0,2,123,1,0,0,0,4,145,1,0,0,0,6,157,1,0,0,0,8,159,
|
|
|
|
|
1,0,0,0,10,166,1,0,0,0,12,176,1,0,0,0,14,178,1,0,0,0,16,191,1,0,
|
|
|
|
|
0,0,18,212,1,0,0,0,20,214,1,0,0,0,22,229,1,0,0,0,24,263,1,0,0,0,
|
|
|
|
|
26,265,1,0,0,0,28,308,1,0,0,0,30,314,1,0,0,0,32,319,1,0,0,0,34,340,
|
|
|
|
|
1,0,0,0,36,342,1,0,0,0,38,362,1,0,0,0,40,375,1,0,0,0,42,388,1,0,
|
|
|
|
|
0,0,44,391,1,0,0,0,46,402,1,0,0,0,48,404,1,0,0,0,50,412,1,0,0,0,
|
|
|
|
|
52,457,1,0,0,0,54,459,1,0,0,0,56,470,1,0,0,0,58,472,1,0,0,0,60,477,
|
|
|
|
|
1,0,0,0,62,479,1,0,0,0,64,501,1,0,0,0,66,503,1,0,0,0,68,512,1,0,
|
|
|
|
|
0,0,70,523,1,0,0,0,72,540,1,0,0,0,74,542,1,0,0,0,76,556,1,0,0,0,
|
|
|
|
|
78,562,1,0,0,0,80,577,1,0,0,0,82,598,1,0,0,0,84,600,1,0,0,0,86,602,
|
|
|
|
|
1,0,0,0,88,604,1,0,0,0,90,664,1,0,0,0,92,666,1,0,0,0,94,702,1,0,
|
|
|
|
|
0,0,96,704,1,0,0,0,98,706,1,0,0,0,100,716,1,0,0,0,102,718,1,0,0,
|
|
|
|
|
0,104,731,1,0,0,0,106,735,1,0,0,0,108,748,1,0,0,0,110,750,1,0,0,
|
|
|
|
|
0,112,113,3,2,1,0,113,114,5,0,0,1,114,122,1,0,0,0,115,116,3,16,8,
|
|
|
|
|
0,116,117,5,0,0,1,117,122,1,0,0,0,118,119,3,32,16,0,119,120,5,0,
|
|
|
|
|
0,1,120,122,1,0,0,0,121,112,1,0,0,0,121,115,1,0,0,0,121,118,1,0,
|
|
|
|
|
0,0,122,1,1,0,0,0,123,124,5,1,0,0,124,125,3,108,54,0,125,126,5,36,
|
|
|
|
|
0,0,126,127,3,110,55,0,127,128,5,35,0,0,128,129,3,110,55,0,129,130,
|
|
|
|
|
5,34,0,0,130,131,3,110,55,0,131,135,5,88,0,0,132,134,3,4,2,0,133,
|
|
|
|
|
132,1,0,0,0,134,137,1,0,0,0,135,133,1,0,0,0,135,136,1,0,0,0,136,
|
|
|
|
|
138,1,0,0,0,137,135,1,0,0,0,138,139,5,89,0,0,139,3,1,0,0,0,140,146,
|
|
|
|
|
3,14,7,0,141,146,3,6,3,0,142,146,3,58,29,0,143,146,3,70,35,0,144,
|
|
|
|
|
146,3,92,46,0,145,140,1,0,0,0,145,141,1,0,0,0,145,142,1,0,0,0,145,
|
|
|
|
|
143,1,0,0,0,145,144,1,0,0,0,146,5,1,0,0,0,147,148,5,2,0,0,148,149,
|
|
|
|
|
5,5,0,0,149,150,3,108,54,0,150,151,5,85,0,0,151,158,1,0,0,0,152,
|
|
|
|
|
153,5,2,0,0,153,154,5,7,0,0,154,155,3,108,54,0,155,156,5,85,0,0,
|
|
|
|
|
156,158,1,0,0,0,157,147,1,0,0,0,157,152,1,0,0,0,158,7,1,0,0,0,159,
|
|
|
|
|
160,5,3,0,0,160,161,5,4,0,0,161,162,3,108,54,0,162,163,5,36,0,0,
|
|
|
|
|
163,164,3,110,55,0,164,165,5,85,0,0,165,9,1,0,0,0,166,167,5,3,0,
|
|
|
|
|
0,167,168,5,5,0,0,168,169,3,108,54,0,169,170,5,35,0,0,170,171,3,
|
|
|
|
|
110,55,0,171,172,5,85,0,0,172,11,1,0,0,0,173,177,3,6,3,0,174,177,
|
|
|
|
|
3,8,4,0,175,177,3,10,5,0,176,173,1,0,0,0,176,174,1,0,0,0,176,175,
|
|
|
|
|
1,0,0,0,177,13,1,0,0,0,178,179,5,4,0,0,179,180,3,108,54,0,180,181,
|
|
|
|
|
5,36,0,0,181,184,3,110,55,0,182,183,5,37,0,0,183,185,3,110,55,0,
|
|
|
|
|
184,182,1,0,0,0,184,185,1,0,0,0,185,186,1,0,0,0,186,187,5,85,0,0,
|
|
|
|
|
187,15,1,0,0,0,188,190,3,12,6,0,189,188,1,0,0,0,190,193,1,0,0,0,
|
|
|
|
|
191,189,1,0,0,0,191,192,1,0,0,0,192,194,1,0,0,0,193,191,1,0,0,0,
|
|
|
|
|
194,195,5,5,0,0,195,196,3,108,54,0,196,197,5,36,0,0,197,198,3,110,
|
|
|
|
|
55,0,198,199,5,35,0,0,199,200,3,110,55,0,200,204,5,88,0,0,201,203,
|
|
|
|
|
3,18,9,0,202,201,1,0,0,0,203,206,1,0,0,0,204,202,1,0,0,0,204,205,
|
|
|
|
|
1,0,0,0,205,207,1,0,0,0,206,204,1,0,0,0,207,208,5,89,0,0,208,17,
|
|
|
|
|
1,0,0,0,209,213,3,22,11,0,210,213,3,26,13,0,211,213,3,20,10,0,212,
|
|
|
|
|
209,1,0,0,0,212,210,1,0,0,0,212,211,1,0,0,0,213,19,1,0,0,0,214,215,
|
|
|
|
|
5,10,0,0,215,216,3,108,54,0,216,217,5,36,0,0,217,218,3,110,55,0,
|
|
|
|
|
218,219,5,84,0,0,219,220,3,94,47,0,220,221,5,83,0,0,221,222,3,94,
|
|
|
|
|
47,0,222,223,5,88,0,0,223,224,5,53,0,0,224,225,5,36,0,0,225,226,
|
|
|
|
|
3,110,55,0,226,227,5,85,0,0,227,228,5,89,0,0,228,21,1,0,0,0,229,
|
|
|
|
|
230,5,8,0,0,230,231,3,108,54,0,231,232,5,36,0,0,232,233,3,110,55,
|
|
|
|
|
0,233,234,5,84,0,0,234,235,3,94,47,0,235,239,5,88,0,0,236,238,3,
|
|
|
|
|
24,12,0,237,236,1,0,0,0,238,241,1,0,0,0,239,237,1,0,0,0,239,240,
|
|
|
|
|
1,0,0,0,240,242,1,0,0,0,241,239,1,0,0,0,242,243,5,89,0,0,243,23,
|
|
|
|
|
1,0,0,0,244,245,5,43,0,0,245,246,5,36,0,0,246,247,3,110,55,0,247,
|
|
|
|
|
248,5,85,0,0,248,264,1,0,0,0,249,250,5,44,0,0,250,251,5,36,0,0,251,
|
|
|
|
|
252,3,110,55,0,252,253,5,85,0,0,253,264,1,0,0,0,254,255,5,45,0,0,
|
|
|
|
|
255,256,5,46,0,0,256,257,5,36,0,0,257,258,3,110,55,0,258,259,5,47,
|
|
|
|
|
0,0,259,260,5,36,0,0,260,261,3,110,55,0,261,262,5,85,0,0,262,264,
|
|
|
|
|
1,0,0,0,263,244,1,0,0,0,263,249,1,0,0,0,263,254,1,0,0,0,264,25,1,
|
|
|
|
|
0,0,0,265,266,5,9,0,0,266,267,3,108,54,0,267,268,5,36,0,0,268,269,
|
|
|
|
|
3,110,55,0,269,270,5,84,0,0,270,271,3,98,49,0,271,273,3,30,15,0,
|
|
|
|
|
272,274,5,64,0,0,273,272,1,0,0,0,273,274,1,0,0,0,274,275,1,0,0,0,
|
|
|
|
|
275,279,5,88,0,0,276,278,3,28,14,0,277,276,1,0,0,0,278,281,1,0,0,
|
|
|
|
|
0,279,277,1,0,0,0,279,280,1,0,0,0,280,282,1,0,0,0,281,279,1,0,0,
|
|
|
|
|
0,282,283,5,89,0,0,283,27,1,0,0,0,284,285,5,50,0,0,285,286,5,36,
|
|
|
|
|
0,0,286,287,3,110,55,0,287,288,5,85,0,0,288,309,1,0,0,0,289,290,
|
|
|
|
|
5,51,0,0,290,291,5,36,0,0,291,292,3,110,55,0,292,293,5,85,0,0,293,
|
|
|
|
|
309,1,0,0,0,294,295,5,52,0,0,295,296,5,36,0,0,296,297,3,110,55,0,
|
|
|
|
|
297,298,5,85,0,0,298,309,1,0,0,0,299,300,5,45,0,0,300,301,5,46,0,
|
|
|
|
|
0,301,302,5,36,0,0,302,303,3,110,55,0,303,304,5,47,0,0,304,305,5,
|
|
|
|
|
36,0,0,305,306,3,110,55,0,306,307,5,85,0,0,307,309,1,0,0,0,308,284,
|
|
|
|
|
1,0,0,0,308,289,1,0,0,0,308,294,1,0,0,0,308,299,1,0,0,0,309,29,1,
|
|
|
|
|
0,0,0,310,311,5,4,0,0,311,315,3,108,54,0,312,313,5,5,0,0,313,315,
|
|
|
|
|
3,108,54,0,314,310,1,0,0,0,314,312,1,0,0,0,315,31,1,0,0,0,316,318,
|
|
|
|
|
3,12,6,0,317,316,1,0,0,0,318,321,1,0,0,0,319,317,1,0,0,0,319,320,
|
|
|
|
|
1,0,0,0,320,322,1,0,0,0,321,319,1,0,0,0,322,323,5,7,0,0,323,324,
|
|
|
|
|
3,108,54,0,324,325,5,36,0,0,325,326,3,110,55,0,326,327,5,35,0,0,
|
|
|
|
|
327,328,3,110,55,0,328,332,5,88,0,0,329,331,3,34,17,0,330,329,1,
|
|
|
|
|
0,0,0,331,334,1,0,0,0,332,330,1,0,0,0,332,333,1,0,0,0,333,335,1,
|
|
|
|
|
0,0,0,334,332,1,0,0,0,335,336,5,89,0,0,336,33,1,0,0,0,337,341,3,
|
|
|
|
|
36,18,0,338,341,3,38,19,0,339,341,3,40,20,0,340,337,1,0,0,0,340,
|
|
|
|
|
338,1,0,0,0,340,339,1,0,0,0,341,35,1,0,0,0,342,343,5,10,0,0,343,
|
|
|
|
|
344,3,108,54,0,344,345,5,36,0,0,345,346,3,110,55,0,346,347,5,84,
|
|
|
|
|
0,0,347,348,3,94,47,0,348,349,5,83,0,0,349,350,3,94,47,0,350,351,
|
|
|
|
|
5,38,0,0,351,353,3,44,22,0,352,354,3,42,21,0,353,352,1,0,0,0,353,
|
|
|
|
|
354,1,0,0,0,354,355,1,0,0,0,355,356,5,40,0,0,356,358,3,46,23,0,357,
|
|
|
|
|
359,3,50,25,0,358,357,1,0,0,0,358,359,1,0,0,0,359,360,1,0,0,0,360,
|
|
|
|
|
361,5,85,0,0,361,37,1,0,0,0,362,363,5,11,0,0,363,364,3,108,54,0,
|
|
|
|
|
364,365,5,36,0,0,365,366,3,110,55,0,366,367,5,84,0,0,367,368,3,94,
|
|
|
|
|
47,0,368,369,5,83,0,0,369,371,3,94,47,0,370,372,3,50,25,0,371,370,
|
|
|
|
|
1,0,0,0,371,372,1,0,0,0,372,373,1,0,0,0,373,374,5,85,0,0,374,39,
|
|
|
|
|
1,0,0,0,375,376,5,12,0,0,376,377,3,108,54,0,377,378,5,36,0,0,378,
|
|
|
|
|
379,3,110,55,0,379,380,5,13,0,0,380,381,3,108,54,0,381,382,5,84,
|
|
|
|
|
0,0,382,384,3,94,47,0,383,385,3,50,25,0,384,383,1,0,0,0,384,385,
|
|
|
|
|
1,0,0,0,385,386,1,0,0,0,386,387,5,85,0,0,387,41,1,0,0,0,388,389,
|
|
|
|
|
5,39,0,0,389,390,3,94,47,0,390,43,1,0,0,0,391,392,7,0,0,0,392,45,
|
|
|
|
|
1,0,0,0,393,403,5,42,0,0,394,395,5,4,0,0,395,403,3,108,54,0,396,
|
|
|
|
|
397,5,6,0,0,397,399,5,90,0,0,398,400,3,48,24,0,399,398,1,0,0,0,399,
|
|
|
|
|
400,1,0,0,0,400,401,1,0,0,0,401,403,5,91,0,0,402,393,1,0,0,0,402,
|
|
|
|
|
394,1,0,0,0,402,396,1,0,0,0,403,47,1,0,0,0,404,409,3,108,54,0,405,
|
|
|
|
|
406,5,86,0,0,406,408,3,108,54,0,407,405,1,0,0,0,408,411,1,0,0,0,
|
|
|
|
|
409,407,1,0,0,0,409,410,1,0,0,0,410,49,1,0,0,0,411,409,1,0,0,0,412,
|
|
|
|
|
413,5,41,0,0,413,417,5,88,0,0,414,416,3,52,26,0,415,414,1,0,0,0,
|
|
|
|
|
416,419,1,0,0,0,417,415,1,0,0,0,417,418,1,0,0,0,418,420,1,0,0,0,
|
|
|
|
|
419,417,1,0,0,0,420,421,5,89,0,0,421,51,1,0,0,0,422,423,5,20,0,0,
|
|
|
|
|
423,424,3,108,54,0,424,425,5,36,0,0,425,426,3,110,55,0,426,427,5,
|
|
|
|
|
84,0,0,427,428,3,94,47,0,428,429,3,54,27,0,429,430,5,85,0,0,430,
|
|
|
|
|
458,1,0,0,0,431,432,5,21,0,0,432,433,3,108,54,0,433,434,5,36,0,0,
|
|
|
|
|
434,435,3,110,55,0,435,436,5,84,0,0,436,437,3,98,49,0,437,438,3,
|
|
|
|
|
30,15,0,438,439,3,54,27,0,439,440,5,85,0,0,440,458,1,0,0,0,441,442,
|
|
|
|
|
5,5,0,0,442,443,3,108,54,0,443,444,5,36,0,0,444,445,3,110,55,0,445,
|
|
|
|
|
446,5,84,0,0,446,447,3,108,54,0,447,448,5,85,0,0,448,458,1,0,0,0,
|
|
|
|
|
449,450,5,12,0,0,450,451,3,108,54,0,451,452,5,36,0,0,452,453,3,110,
|
|
|
|
|
55,0,453,454,5,84,0,0,454,455,3,108,54,0,455,456,5,85,0,0,456,458,
|
|
|
|
|
1,0,0,0,457,422,1,0,0,0,457,431,1,0,0,0,457,441,1,0,0,0,457,449,
|
|
|
|
|
1,0,0,0,458,53,1,0,0,0,459,460,5,90,0,0,460,465,3,56,28,0,461,462,
|
|
|
|
|
5,86,0,0,462,464,3,56,28,0,463,461,1,0,0,0,464,467,1,0,0,0,465,463,
|
|
|
|
|
1,0,0,0,465,466,1,0,0,0,466,468,1,0,0,0,467,465,1,0,0,0,468,469,
|
|
|
|
|
5,91,0,0,469,55,1,0,0,0,470,471,7,1,0,0,471,57,1,0,0,0,472,473,5,
|
|
|
|
|
19,0,0,473,474,3,60,30,0,474,59,1,0,0,0,475,478,3,62,31,0,476,478,
|
|
|
|
|
3,66,33,0,477,475,1,0,0,0,477,476,1,0,0,0,478,61,1,0,0,0,479,480,
|
|
|
|
|
5,20,0,0,480,481,3,108,54,0,481,482,5,36,0,0,482,483,3,110,55,0,
|
|
|
|
|
483,484,5,29,0,0,484,485,3,108,54,0,485,486,5,84,0,0,486,487,3,94,
|
|
|
|
|
47,0,487,488,5,30,0,0,488,491,3,64,32,0,489,490,5,31,0,0,490,492,
|
|
|
|
|
3,100,50,0,491,489,1,0,0,0,491,492,1,0,0,0,492,493,1,0,0,0,493,494,
|
|
|
|
|
5,85,0,0,494,63,1,0,0,0,495,502,5,58,0,0,496,497,5,59,0,0,497,498,
|
|
|
|
|
5,92,0,0,498,499,3,94,47,0,499,500,5,93,0,0,500,502,1,0,0,0,501,
|
|
|
|
|
495,1,0,0,0,501,496,1,0,0,0,502,65,1,0,0,0,503,504,5,21,0,0,504,
|
|
|
|
|
505,3,108,54,0,505,506,5,36,0,0,506,507,3,110,55,0,507,508,5,88,
|
|
|
|
|
0,0,508,509,3,68,34,0,509,510,3,68,34,0,510,511,5,89,0,0,511,67,
|
|
|
|
|
1,0,0,0,512,513,3,30,15,0,513,514,5,22,0,0,514,515,3,108,54,0,515,
|
|
|
|
|
516,5,36,0,0,516,517,3,110,55,0,517,519,3,98,49,0,518,520,5,64,0,
|
|
|
|
|
0,519,518,1,0,0,0,519,520,1,0,0,0,520,521,1,0,0,0,521,522,5,85,0,
|
|
|
|
|
0,522,69,1,0,0,0,523,524,5,14,0,0,524,525,3,108,54,0,525,526,5,15,
|
|
|
|
|
0,0,526,527,3,108,54,0,527,531,5,88,0,0,528,530,3,72,36,0,529,528,
|
|
|
|
|
1,0,0,0,530,533,1,0,0,0,531,529,1,0,0,0,531,532,1,0,0,0,532,534,
|
|
|
|
|
1,0,0,0,533,531,1,0,0,0,534,535,5,89,0,0,535,71,1,0,0,0,536,537,
|
|
|
|
|
5,18,0,0,537,541,3,60,30,0,538,541,3,76,38,0,539,541,3,74,37,0,540,
|
|
|
|
|
536,1,0,0,0,540,538,1,0,0,0,540,539,1,0,0,0,541,73,1,0,0,0,542,543,
|
|
|
|
|
5,26,0,0,543,544,3,108,54,0,544,545,5,27,0,0,545,546,5,28,0,0,546,
|
|
|
|
|
547,5,24,0,0,547,548,5,12,0,0,548,549,3,108,54,0,549,550,5,25,0,
|
|
|
|
|
0,550,551,5,21,0,0,551,552,3,108,54,0,552,553,5,87,0,0,553,554,3,
|
|
|
|
|
108,54,0,554,555,5,85,0,0,555,75,1,0,0,0,556,557,5,16,0,0,557,558,
|
|
|
|
|
3,78,39,0,558,559,5,17,0,0,559,560,3,82,41,0,560,561,5,85,0,0,561,
|
|
|
|
|
77,1,0,0,0,562,563,3,108,54,0,563,564,5,87,0,0,564,565,3,80,40,0,
|
|
|
|
|
565,79,1,0,0,0,566,578,3,108,54,0,567,578,5,53,0,0,568,578,5,43,
|
|
|
|
|
0,0,569,578,5,44,0,0,570,578,5,50,0,0,571,578,5,51,0,0,572,578,5,
|
|
|
|
|
52,0,0,573,578,5,54,0,0,574,578,5,55,0,0,575,578,5,56,0,0,576,578,
|
|
|
|
|
5,57,0,0,577,566,1,0,0,0,577,567,1,0,0,0,577,568,1,0,0,0,577,569,
|
|
|
|
|
1,0,0,0,577,570,1,0,0,0,577,571,1,0,0,0,577,572,1,0,0,0,577,573,
|
|
|
|
|
1,0,0,0,577,574,1,0,0,0,577,575,1,0,0,0,577,576,1,0,0,0,578,81,1,
|
|
|
|
|
0,0,0,579,580,5,20,0,0,580,581,3,108,54,0,581,582,5,87,0,0,582,583,
|
|
|
|
|
3,84,42,0,583,599,1,0,0,0,584,585,5,21,0,0,585,586,3,108,54,0,586,
|
|
|
|
|
587,5,87,0,0,587,588,3,108,54,0,588,589,5,87,0,0,589,590,3,86,43,
|
|
|
|
|
0,590,599,1,0,0,0,591,592,5,7,0,0,592,593,3,108,54,0,593,594,5,87,
|
|
|
|
|
0,0,594,596,3,108,54,0,595,597,3,88,44,0,596,595,1,0,0,0,596,597,
|
|
|
|
|
1,0,0,0,597,599,1,0,0,0,598,579,1,0,0,0,598,584,1,0,0,0,598,591,
|
|
|
|
|
1,0,0,0,599,83,1,0,0,0,600,601,7,2,0,0,601,85,1,0,0,0,602,603,7,
|
|
|
|
|
3,0,0,603,87,1,0,0,0,604,605,5,23,0,0,605,609,5,88,0,0,606,608,3,
|
|
|
|
|
90,45,0,607,606,1,0,0,0,608,611,1,0,0,0,609,607,1,0,0,0,609,610,
|
|
|
|
|
1,0,0,0,610,612,1,0,0,0,611,609,1,0,0,0,612,613,5,89,0,0,613,89,
|
|
|
|
|
1,0,0,0,614,615,3,108,54,0,615,616,5,17,0,0,616,617,5,20,0,0,617,
|
|
|
|
|
624,3,108,54,0,618,619,5,25,0,0,619,620,5,21,0,0,620,621,3,108,54,
|
|
|
|
|
0,621,622,5,87,0,0,622,623,3,108,54,0,623,625,1,0,0,0,624,618,1,
|
|
|
|
|
0,0,0,624,625,1,0,0,0,625,626,1,0,0,0,626,627,5,85,0,0,627,665,1,
|
|
|
|
|
0,0,0,628,629,3,108,54,0,629,630,5,17,0,0,630,631,5,21,0,0,631,632,
|
|
|
|
|
3,108,54,0,632,633,5,87,0,0,633,640,3,108,54,0,634,635,5,25,0,0,
|
|
|
|
|
635,636,5,21,0,0,636,637,3,108,54,0,637,638,5,87,0,0,638,639,3,108,
|
|
|
|
|
54,0,639,641,1,0,0,0,640,634,1,0,0,0,640,641,1,0,0,0,641,642,1,0,
|
|
|
|
|
0,0,642,643,5,85,0,0,643,665,1,0,0,0,644,645,3,108,54,0,645,646,
|
|
|
|
|
5,17,0,0,646,647,5,5,0,0,647,654,3,108,54,0,648,649,5,25,0,0,649,
|
|
|
|
|
650,5,21,0,0,650,651,3,108,54,0,651,652,5,87,0,0,652,653,3,108,54,
|
|
|
|
|
0,653,655,1,0,0,0,654,648,1,0,0,0,654,655,1,0,0,0,655,656,1,0,0,
|
|
|
|
|
0,656,657,5,85,0,0,657,665,1,0,0,0,658,659,3,108,54,0,659,660,5,
|
|
|
|
|
17,0,0,660,661,5,12,0,0,661,662,3,108,54,0,662,663,5,85,0,0,663,
|
|
|
|
|
665,1,0,0,0,664,614,1,0,0,0,664,628,1,0,0,0,664,644,1,0,0,0,664,
|
|
|
|
|
658,1,0,0,0,665,91,1,0,0,0,666,667,5,12,0,0,667,668,3,108,54,0,668,
|
|
|
|
|
669,5,17,0,0,669,670,3,108,54,0,670,671,5,87,0,0,671,673,3,108,54,
|
|
|
|
|
0,672,674,3,88,44,0,673,672,1,0,0,0,673,674,1,0,0,0,674,675,1,0,
|
|
|
|
|
0,0,675,676,5,85,0,0,676,93,1,0,0,0,677,703,3,96,48,0,678,703,5,
|
|
|
|
|
65,0,0,679,703,5,66,0,0,680,681,5,67,0,0,681,703,3,110,55,0,682,
|
|
|
|
|
683,5,68,0,0,683,684,5,94,0,0,684,685,3,108,54,0,685,686,5,95,0,
|
|
|
|
|
0,686,703,1,0,0,0,687,688,5,69,0,0,688,689,5,94,0,0,689,690,3,108,
|
|
|
|
|
54,0,690,691,5,95,0,0,691,703,1,0,0,0,692,693,5,70,0,0,693,694,5,
|
|
|
|
|
94,0,0,694,695,3,94,47,0,695,696,5,95,0,0,696,703,1,0,0,0,697,698,
|
|
|
|
|
5,71,0,0,698,699,5,94,0,0,699,700,3,94,47,0,700,701,5,95,0,0,701,
|
|
|
|
|
703,1,0,0,0,702,677,1,0,0,0,702,678,1,0,0,0,702,679,1,0,0,0,702,
|
|
|
|
|
680,1,0,0,0,702,682,1,0,0,0,702,687,1,0,0,0,702,692,1,0,0,0,702,
|
|
|
|
|
697,1,0,0,0,703,95,1,0,0,0,704,705,7,4,0,0,705,97,1,0,0,0,706,707,
|
|
|
|
|
7,5,0,0,707,99,1,0,0,0,708,717,3,110,55,0,709,717,5,96,0,0,710,717,
|
|
|
|
|
5,97,0,0,711,717,5,80,0,0,712,717,5,81,0,0,713,717,5,82,0,0,714,
|
|
|
|
|
717,3,102,51,0,715,717,3,106,53,0,716,708,1,0,0,0,716,709,1,0,0,
|
|
|
|
|
0,716,710,1,0,0,0,716,711,1,0,0,0,716,712,1,0,0,0,716,713,1,0,0,
|
|
|
|
|
0,716,714,1,0,0,0,716,715,1,0,0,0,717,101,1,0,0,0,718,727,5,88,0,
|
|
|
|
|
0,719,724,3,104,52,0,720,721,5,86,0,0,721,723,3,104,52,0,722,720,
|
|
|
|
|
1,0,0,0,723,726,1,0,0,0,724,722,1,0,0,0,724,725,1,0,0,0,725,728,
|
|
|
|
|
1,0,0,0,726,724,1,0,0,0,727,719,1,0,0,0,727,728,1,0,0,0,728,729,
|
|
|
|
|
1,0,0,0,729,730,5,89,0,0,730,103,1,0,0,0,731,732,3,110,55,0,732,
|
|
|
|
|
733,5,84,0,0,733,734,3,100,50,0,734,105,1,0,0,0,735,744,5,90,0,0,
|
|
|
|
|
736,741,3,100,50,0,737,738,5,86,0,0,738,740,3,100,50,0,739,737,1,
|
|
|
|
|
0,0,0,740,743,1,0,0,0,741,739,1,0,0,0,741,742,1,0,0,0,742,745,1,
|
|
|
|
|
0,0,0,743,741,1,0,0,0,744,736,1,0,0,0,744,745,1,0,0,0,745,746,1,
|
|
|
|
|
0,0,0,746,747,5,91,0,0,747,107,1,0,0,0,748,749,7,6,0,0,749,109,1,
|
|
|
|
|
0,0,0,750,751,5,99,0,0,751,111,1,0,0,0,49,121,135,145,157,176,184,
|
|
|
|
|
191,204,212,239,263,273,279,308,314,319,332,340,353,358,371,384,
|
|
|
|
|
399,402,409,417,457,465,477,491,501,519,531,540,577,596,598,609,
|
|
|
|
|
624,640,654,664,673,702,716,724,727,741,744
|
2026-09-03 15:46:52 -07:00
|
|
|
];
|
|
|
|
|
|
|
|
|
|
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);
|
|
|
|
|
}
|
2026-09-05 12:33:52 -07:00
|
|
|
public workspaceDecl(): WorkspaceDeclContext | null {
|
|
|
|
|
return this.getRuleContext(0, WorkspaceDeclContext);
|
2026-09-03 15:46:52 -07:00
|
|
|
}
|
|
|
|
|
public EOF(): antlr.TerminalNode {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.EOF, 0)!;
|
|
|
|
|
}
|
2026-09-05 12:33:52 -07:00
|
|
|
public interfaceResourceDecl(): InterfaceResourceDeclContext | null {
|
|
|
|
|
return this.getRuleContext(0, InterfaceResourceDeclContext);
|
|
|
|
|
}
|
|
|
|
|
public packageResourceDecl(): PackageResourceDeclContext | null {
|
|
|
|
|
return this.getRuleContext(0, PackageResourceDeclContext);
|
|
|
|
|
}
|
2026-09-03 15:46:52 -07:00
|
|
|
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 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 atomDecl(): AtomDeclContext | null {
|
|
|
|
|
return this.getRuleContext(0, AtomDeclContext);
|
|
|
|
|
}
|
2026-09-05 12:33:52 -07:00
|
|
|
public resourceImportDecl(): ResourceImportDeclContext | null {
|
|
|
|
|
return this.getRuleContext(0, ResourceImportDeclContext);
|
2026-09-03 15:46:52 -07:00
|
|
|
}
|
|
|
|
|
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 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);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2026-09-05 12:33:52 -07:00
|
|
|
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 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);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2026-09-03 15:46:52 -07:00
|
|
|
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);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2026-09-05 12:33:52 -07:00
|
|
|
export class InterfaceResourceDeclContext extends antlr.ParserRuleContext {
|
2026-09-03 15:46:52 -07:00
|
|
|
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)!;
|
|
|
|
|
}
|
2026-09-05 12:33:52 -07:00
|
|
|
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);
|
|
|
|
|
}
|
2026-09-03 15:46:52 -07:00
|
|
|
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 override get ruleIndex(): number {
|
2026-09-05 12:33:52 -07:00
|
|
|
return QuixosCapabilityParser.RULE_interfaceResourceDecl;
|
2026-09-03 15:46:52 -07:00
|
|
|
}
|
|
|
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
2026-09-05 12:33:52 -07:00
|
|
|
if (visitor.visitInterfaceResourceDecl) {
|
|
|
|
|
return visitor.visitInterfaceResourceDecl(this);
|
2026-09-03 15:46:52 -07:00
|
|
|
} else {
|
|
|
|
|
return visitor.visitChildren(this);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export class InterfaceMemberContext extends antlr.ParserRuleContext {
|
|
|
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
|
|
|
super(parent, invokingState);
|
|
|
|
|
}
|
|
|
|
|
public valueMember(): ValueMemberContext | null {
|
|
|
|
|
return this.getRuleContext(0, ValueMemberContext);
|
|
|
|
|
}
|
|
|
|
|
public relationshipMember(): RelationshipMemberContext | null {
|
|
|
|
|
return this.getRuleContext(0, RelationshipMemberContext);
|
|
|
|
|
}
|
|
|
|
|
public operationMember(): OperationMemberContext | null {
|
|
|
|
|
return this.getRuleContext(0, OperationMemberContext);
|
|
|
|
|
}
|
|
|
|
|
public override get ruleIndex(): number {
|
|
|
|
|
return QuixosCapabilityParser.RULE_interfaceMember;
|
|
|
|
|
}
|
|
|
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
|
|
|
if (visitor.visitInterfaceMember) {
|
|
|
|
|
return visitor.visitInterfaceMember(this);
|
|
|
|
|
} else {
|
|
|
|
|
return visitor.visitChildren(this);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export class OperationMemberContext extends antlr.ParserRuleContext {
|
|
|
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
|
|
|
super(parent, invokingState);
|
|
|
|
|
}
|
|
|
|
|
public OPERATION(): antlr.TerminalNode {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.OPERATION, 0)!;
|
|
|
|
|
}
|
|
|
|
|
public identifier(): IdentifierContext {
|
|
|
|
|
return this.getRuleContext(0, IdentifierContext)!;
|
|
|
|
|
}
|
|
|
|
|
public ID(): antlr.TerminalNode[];
|
|
|
|
|
public ID(i: number): antlr.TerminalNode | null;
|
|
|
|
|
public ID(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] {
|
|
|
|
|
if (i === undefined) {
|
|
|
|
|
return this.getTokens(QuixosCapabilityParser.ID);
|
|
|
|
|
} else {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.ID, i);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
public stringLiteral(): StringLiteralContext[];
|
|
|
|
|
public stringLiteral(i: number): StringLiteralContext | null;
|
|
|
|
|
public stringLiteral(i?: number): StringLiteralContext[] | StringLiteralContext | null {
|
|
|
|
|
if (i === undefined) {
|
|
|
|
|
return this.getRuleContexts(StringLiteralContext);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return this.getRuleContext(i, StringLiteralContext);
|
|
|
|
|
}
|
|
|
|
|
public COLON(): antlr.TerminalNode {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.COLON, 0)!;
|
|
|
|
|
}
|
|
|
|
|
public valueType(): ValueTypeContext[];
|
|
|
|
|
public valueType(i: number): ValueTypeContext | null;
|
|
|
|
|
public valueType(i?: number): ValueTypeContext[] | ValueTypeContext | null {
|
|
|
|
|
if (i === undefined) {
|
|
|
|
|
return this.getRuleContexts(ValueTypeContext);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return this.getRuleContext(i, ValueTypeContext);
|
|
|
|
|
}
|
|
|
|
|
public ARROW(): antlr.TerminalNode {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.ARROW, 0)!;
|
|
|
|
|
}
|
|
|
|
|
public LBRACE(): antlr.TerminalNode {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.LBRACE, 0)!;
|
|
|
|
|
}
|
|
|
|
|
public CALL(): antlr.TerminalNode {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.CALL, 0)!;
|
|
|
|
|
}
|
|
|
|
|
public SEMI(): antlr.TerminalNode {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.SEMI, 0)!;
|
|
|
|
|
}
|
|
|
|
|
public RBRACE(): antlr.TerminalNode {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.RBRACE, 0)!;
|
|
|
|
|
}
|
|
|
|
|
public override get ruleIndex(): number {
|
|
|
|
|
return QuixosCapabilityParser.RULE_operationMember;
|
|
|
|
|
}
|
|
|
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
|
|
|
if (visitor.visitOperationMember) {
|
|
|
|
|
return visitor.visitOperationMember(this);
|
|
|
|
|
} else {
|
|
|
|
|
return visitor.visitChildren(this);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export class ValueMemberContext extends antlr.ParserRuleContext {
|
|
|
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
|
|
|
super(parent, invokingState);
|
|
|
|
|
}
|
|
|
|
|
public VALUE(): antlr.TerminalNode {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.VALUE, 0)!;
|
|
|
|
|
}
|
|
|
|
|
public identifier(): IdentifierContext {
|
|
|
|
|
return this.getRuleContext(0, IdentifierContext)!;
|
|
|
|
|
}
|
|
|
|
|
public ID(): antlr.TerminalNode {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.ID, 0)!;
|
|
|
|
|
}
|
|
|
|
|
public stringLiteral(): StringLiteralContext {
|
|
|
|
|
return this.getRuleContext(0, StringLiteralContext)!;
|
|
|
|
|
}
|
|
|
|
|
public COLON(): antlr.TerminalNode {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.COLON, 0)!;
|
|
|
|
|
}
|
|
|
|
|
public valueType(): ValueTypeContext {
|
|
|
|
|
return this.getRuleContext(0, ValueTypeContext)!;
|
|
|
|
|
}
|
|
|
|
|
public LBRACE(): antlr.TerminalNode {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.LBRACE, 0)!;
|
|
|
|
|
}
|
|
|
|
|
public RBRACE(): antlr.TerminalNode {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.RBRACE, 0)!;
|
|
|
|
|
}
|
|
|
|
|
public valueMemberOperation(): ValueMemberOperationContext[];
|
|
|
|
|
public valueMemberOperation(i: number): ValueMemberOperationContext | null;
|
|
|
|
|
public valueMemberOperation(i?: number): ValueMemberOperationContext[] | ValueMemberOperationContext | null {
|
|
|
|
|
if (i === undefined) {
|
|
|
|
|
return this.getRuleContexts(ValueMemberOperationContext);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return this.getRuleContext(i, ValueMemberOperationContext);
|
|
|
|
|
}
|
|
|
|
|
public override get ruleIndex(): number {
|
|
|
|
|
return QuixosCapabilityParser.RULE_valueMember;
|
|
|
|
|
}
|
|
|
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
|
|
|
if (visitor.visitValueMember) {
|
|
|
|
|
return visitor.visitValueMember(this);
|
|
|
|
|
} else {
|
|
|
|
|
return visitor.visitChildren(this);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export class ValueMemberOperationContext extends antlr.ParserRuleContext {
|
|
|
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
|
|
|
super(parent, invokingState);
|
|
|
|
|
}
|
|
|
|
|
public GET(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.GET, 0);
|
|
|
|
|
}
|
|
|
|
|
public ID(): antlr.TerminalNode[];
|
|
|
|
|
public ID(i: number): antlr.TerminalNode | null;
|
|
|
|
|
public ID(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] {
|
|
|
|
|
if (i === undefined) {
|
|
|
|
|
return this.getTokens(QuixosCapabilityParser.ID);
|
|
|
|
|
} else {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.ID, i);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
public stringLiteral(): StringLiteralContext[];
|
|
|
|
|
public stringLiteral(i: number): StringLiteralContext | null;
|
|
|
|
|
public stringLiteral(i?: number): StringLiteralContext[] | StringLiteralContext | null {
|
|
|
|
|
if (i === undefined) {
|
|
|
|
|
return this.getRuleContexts(StringLiteralContext);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return this.getRuleContext(i, StringLiteralContext);
|
|
|
|
|
}
|
|
|
|
|
public SEMI(): antlr.TerminalNode {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.SEMI, 0)!;
|
|
|
|
|
}
|
|
|
|
|
public SET(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.SET, 0);
|
|
|
|
|
}
|
|
|
|
|
public WATCH(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.WATCH, 0);
|
|
|
|
|
}
|
|
|
|
|
public START(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.START, 0);
|
|
|
|
|
}
|
|
|
|
|
public STOP(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.STOP, 0);
|
|
|
|
|
}
|
|
|
|
|
public override get ruleIndex(): number {
|
|
|
|
|
return QuixosCapabilityParser.RULE_valueMemberOperation;
|
|
|
|
|
}
|
|
|
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
|
|
|
if (visitor.visitValueMemberOperation) {
|
|
|
|
|
return visitor.visitValueMemberOperation(this);
|
|
|
|
|
} else {
|
|
|
|
|
return visitor.visitChildren(this);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export class RelationshipMemberContext extends antlr.ParserRuleContext {
|
|
|
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
|
|
|
super(parent, invokingState);
|
|
|
|
|
}
|
|
|
|
|
public RELATION(): antlr.TerminalNode {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.RELATION, 0)!;
|
|
|
|
|
}
|
|
|
|
|
public identifier(): IdentifierContext {
|
|
|
|
|
return this.getRuleContext(0, IdentifierContext)!;
|
|
|
|
|
}
|
|
|
|
|
public ID(): antlr.TerminalNode {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.ID, 0)!;
|
|
|
|
|
}
|
|
|
|
|
public stringLiteral(): StringLiteralContext {
|
|
|
|
|
return this.getRuleContext(0, StringLiteralContext)!;
|
|
|
|
|
}
|
|
|
|
|
public COLON(): antlr.TerminalNode {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.COLON, 0)!;
|
|
|
|
|
}
|
|
|
|
|
public cardinality(): CardinalityContext {
|
|
|
|
|
return this.getRuleContext(0, CardinalityContext)!;
|
|
|
|
|
}
|
|
|
|
|
public targetConstraint(): TargetConstraintContext {
|
|
|
|
|
return this.getRuleContext(0, TargetConstraintContext)!;
|
|
|
|
|
}
|
|
|
|
|
public LBRACE(): antlr.TerminalNode {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.LBRACE, 0)!;
|
|
|
|
|
}
|
|
|
|
|
public RBRACE(): antlr.TerminalNode {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.RBRACE, 0)!;
|
|
|
|
|
}
|
|
|
|
|
public ORDERED(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.ORDERED, 0);
|
|
|
|
|
}
|
|
|
|
|
public relationshipOperation(): RelationshipOperationContext[];
|
|
|
|
|
public relationshipOperation(i: number): RelationshipOperationContext | null;
|
|
|
|
|
public relationshipOperation(i?: number): RelationshipOperationContext[] | RelationshipOperationContext | null {
|
|
|
|
|
if (i === undefined) {
|
|
|
|
|
return this.getRuleContexts(RelationshipOperationContext);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return this.getRuleContext(i, RelationshipOperationContext);
|
|
|
|
|
}
|
|
|
|
|
public override get ruleIndex(): number {
|
|
|
|
|
return QuixosCapabilityParser.RULE_relationshipMember;
|
|
|
|
|
}
|
|
|
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
|
|
|
if (visitor.visitRelationshipMember) {
|
|
|
|
|
return visitor.visitRelationshipMember(this);
|
|
|
|
|
} else {
|
|
|
|
|
return visitor.visitChildren(this);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export class RelationshipOperationContext extends antlr.ParserRuleContext {
|
|
|
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
|
|
|
super(parent, invokingState);
|
|
|
|
|
}
|
|
|
|
|
public RESOLVE(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.RESOLVE, 0);
|
|
|
|
|
}
|
|
|
|
|
public ID(): antlr.TerminalNode[];
|
|
|
|
|
public ID(i: number): antlr.TerminalNode | null;
|
|
|
|
|
public ID(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] {
|
|
|
|
|
if (i === undefined) {
|
|
|
|
|
return this.getTokens(QuixosCapabilityParser.ID);
|
|
|
|
|
} else {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.ID, i);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
public stringLiteral(): StringLiteralContext[];
|
|
|
|
|
public stringLiteral(i: number): StringLiteralContext | null;
|
|
|
|
|
public stringLiteral(i?: number): StringLiteralContext[] | StringLiteralContext | null {
|
|
|
|
|
if (i === undefined) {
|
|
|
|
|
return this.getRuleContexts(StringLiteralContext);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return this.getRuleContext(i, StringLiteralContext);
|
|
|
|
|
}
|
|
|
|
|
public SEMI(): antlr.TerminalNode {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.SEMI, 0)!;
|
|
|
|
|
}
|
|
|
|
|
public CONNECT(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.CONNECT, 0);
|
|
|
|
|
}
|
|
|
|
|
public DISCONNECT(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.DISCONNECT, 0);
|
|
|
|
|
}
|
|
|
|
|
public WATCH(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.WATCH, 0);
|
|
|
|
|
}
|
|
|
|
|
public START(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.START, 0);
|
|
|
|
|
}
|
|
|
|
|
public STOP(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.STOP, 0);
|
|
|
|
|
}
|
|
|
|
|
public override get ruleIndex(): number {
|
|
|
|
|
return QuixosCapabilityParser.RULE_relationshipOperation;
|
|
|
|
|
}
|
|
|
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
|
|
|
if (visitor.visitRelationshipOperation) {
|
|
|
|
|
return visitor.visitRelationshipOperation(this);
|
|
|
|
|
} else {
|
|
|
|
|
return visitor.visitChildren(this);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export class TargetConstraintContext extends antlr.ParserRuleContext {
|
|
|
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
|
|
|
super(parent, invokingState);
|
|
|
|
|
}
|
|
|
|
|
public ATOM(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.ATOM, 0);
|
|
|
|
|
}
|
|
|
|
|
public identifier(): IdentifierContext {
|
|
|
|
|
return this.getRuleContext(0, IdentifierContext)!;
|
|
|
|
|
}
|
|
|
|
|
public INTERFACE(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.INTERFACE, 0);
|
|
|
|
|
}
|
|
|
|
|
public 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);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2026-09-05 12:33:52 -07:00
|
|
|
export class PackageResourceDeclContext extends antlr.ParserRuleContext {
|
2026-09-03 15:46:52 -07:00
|
|
|
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)!;
|
|
|
|
|
}
|
2026-09-05 12:33:52 -07:00
|
|
|
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);
|
|
|
|
|
}
|
2026-09-03 15:46:52 -07:00
|
|
|
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 {
|
2026-09-05 12:33:52 -07:00
|
|
|
return QuixosCapabilityParser.RULE_packageResourceDecl;
|
2026-09-03 15:46:52 -07:00
|
|
|
}
|
|
|
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
2026-09-05 12:33:52 -07:00
|
|
|
if (visitor.visitPackageResourceDecl) {
|
|
|
|
|
return visitor.visitPackageResourceDecl(this);
|
2026-09-03 15:46:52 -07:00
|
|
|
} 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 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 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 eventClause(): EventClauseContext | null {
|
|
|
|
|
return this.getRuleContext(0, EventClauseContext);
|
|
|
|
|
}
|
|
|
|
|
public dependencyBlock(): DependencyBlockContext | null {
|
|
|
|
|
return this.getRuleContext(0, DependencyBlockContext);
|
|
|
|
|
}
|
|
|
|
|
public override get ruleIndex(): number {
|
|
|
|
|
return QuixosCapabilityParser.RULE_packageOperationExport;
|
|
|
|
|
}
|
|
|
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
|
|
|
if (visitor.visitPackageOperationExport) {
|
|
|
|
|
return visitor.visitPackageOperationExport(this);
|
|
|
|
|
} else {
|
|
|
|
|
return visitor.visitChildren(this);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export class PackageFunctionExportContext extends antlr.ParserRuleContext {
|
|
|
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
|
|
|
super(parent, invokingState);
|
|
|
|
|
}
|
|
|
|
|
public FUNCTION(): antlr.TerminalNode {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.FUNCTION, 0)!;
|
|
|
|
|
}
|
|
|
|
|
public identifier(): IdentifierContext {
|
|
|
|
|
return this.getRuleContext(0, IdentifierContext)!;
|
|
|
|
|
}
|
|
|
|
|
public ID(): antlr.TerminalNode {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.ID, 0)!;
|
|
|
|
|
}
|
|
|
|
|
public stringLiteral(): StringLiteralContext {
|
|
|
|
|
return this.getRuleContext(0, StringLiteralContext)!;
|
|
|
|
|
}
|
|
|
|
|
public COLON(): antlr.TerminalNode {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.COLON, 0)!;
|
|
|
|
|
}
|
|
|
|
|
public valueType(): ValueTypeContext[];
|
|
|
|
|
public valueType(i: number): ValueTypeContext | null;
|
|
|
|
|
public valueType(i?: number): ValueTypeContext[] | ValueTypeContext | null {
|
|
|
|
|
if (i === undefined) {
|
|
|
|
|
return this.getRuleContexts(ValueTypeContext);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return this.getRuleContext(i, ValueTypeContext);
|
|
|
|
|
}
|
|
|
|
|
public ARROW(): antlr.TerminalNode {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.ARROW, 0)!;
|
|
|
|
|
}
|
|
|
|
|
public SEMI(): antlr.TerminalNode {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.SEMI, 0)!;
|
|
|
|
|
}
|
|
|
|
|
public dependencyBlock(): DependencyBlockContext | null {
|
|
|
|
|
return this.getRuleContext(0, DependencyBlockContext);
|
|
|
|
|
}
|
|
|
|
|
public override get ruleIndex(): number {
|
|
|
|
|
return QuixosCapabilityParser.RULE_packageFunctionExport;
|
|
|
|
|
}
|
|
|
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
|
|
|
if (visitor.visitPackageFunctionExport) {
|
|
|
|
|
return visitor.visitPackageFunctionExport(this);
|
|
|
|
|
} else {
|
|
|
|
|
return visitor.visitChildren(this);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export class PackageConstructorExportContext extends antlr.ParserRuleContext {
|
|
|
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
|
|
|
super(parent, invokingState);
|
|
|
|
|
}
|
|
|
|
|
public CONSTRUCTOR(): antlr.TerminalNode {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.CONSTRUCTOR, 0)!;
|
|
|
|
|
}
|
|
|
|
|
public identifier(): IdentifierContext[];
|
|
|
|
|
public identifier(i: number): IdentifierContext | null;
|
|
|
|
|
public identifier(i?: number): IdentifierContext[] | IdentifierContext | null {
|
|
|
|
|
if (i === undefined) {
|
|
|
|
|
return this.getRuleContexts(IdentifierContext);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return this.getRuleContext(i, IdentifierContext);
|
|
|
|
|
}
|
|
|
|
|
public ID(): antlr.TerminalNode {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.ID, 0)!;
|
|
|
|
|
}
|
|
|
|
|
public stringLiteral(): StringLiteralContext {
|
|
|
|
|
return this.getRuleContext(0, StringLiteralContext)!;
|
|
|
|
|
}
|
|
|
|
|
public CONSTRUCTS(): antlr.TerminalNode {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.CONSTRUCTS, 0)!;
|
|
|
|
|
}
|
|
|
|
|
public COLON(): antlr.TerminalNode {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.COLON, 0)!;
|
|
|
|
|
}
|
|
|
|
|
public valueType(): ValueTypeContext {
|
|
|
|
|
return this.getRuleContext(0, ValueTypeContext)!;
|
|
|
|
|
}
|
|
|
|
|
public SEMI(): antlr.TerminalNode {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.SEMI, 0)!;
|
|
|
|
|
}
|
|
|
|
|
public dependencyBlock(): DependencyBlockContext | null {
|
|
|
|
|
return this.getRuleContext(0, DependencyBlockContext);
|
|
|
|
|
}
|
|
|
|
|
public override get ruleIndex(): number {
|
|
|
|
|
return QuixosCapabilityParser.RULE_packageConstructorExport;
|
|
|
|
|
}
|
|
|
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
|
|
|
if (visitor.visitPackageConstructorExport) {
|
|
|
|
|
return visitor.visitPackageConstructorExport(this);
|
|
|
|
|
} else {
|
|
|
|
|
return visitor.visitChildren(this);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export class EventClauseContext extends antlr.ParserRuleContext {
|
|
|
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
|
|
|
super(parent, invokingState);
|
|
|
|
|
}
|
|
|
|
|
public EMITS(): antlr.TerminalNode {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.EMITS, 0)!;
|
|
|
|
|
}
|
|
|
|
|
public valueType(): ValueTypeContext {
|
|
|
|
|
return this.getRuleContext(0, ValueTypeContext)!;
|
|
|
|
|
}
|
|
|
|
|
public override get ruleIndex(): number {
|
|
|
|
|
return QuixosCapabilityParser.RULE_eventClause;
|
|
|
|
|
}
|
|
|
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
|
|
|
if (visitor.visitEventClause) {
|
|
|
|
|
return visitor.visitEventClause(this);
|
|
|
|
|
} else {
|
|
|
|
|
return visitor.visitChildren(this);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export class OperationModeContext extends antlr.ParserRuleContext {
|
|
|
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
|
|
|
super(parent, invokingState);
|
|
|
|
|
}
|
|
|
|
|
public CALL(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.CALL, 0);
|
|
|
|
|
}
|
|
|
|
|
public WATCH_START(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.WATCH_START, 0);
|
|
|
|
|
}
|
|
|
|
|
public WATCH_STOP(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.WATCH_STOP, 0);
|
|
|
|
|
}
|
|
|
|
|
public SUBSCRIBE(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.SUBSCRIBE, 0);
|
|
|
|
|
}
|
|
|
|
|
public UNSUBSCRIBE(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.UNSUBSCRIBE, 0);
|
|
|
|
|
}
|
|
|
|
|
public override get ruleIndex(): number {
|
|
|
|
|
return QuixosCapabilityParser.RULE_operationMode;
|
|
|
|
|
}
|
|
|
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
|
|
|
if (visitor.visitOperationMode) {
|
|
|
|
|
return visitor.visitOperationMode(this);
|
|
|
|
|
} else {
|
|
|
|
|
return visitor.visitChildren(this);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export class ReceiverRequirementContext extends antlr.ParserRuleContext {
|
|
|
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
|
|
|
super(parent, invokingState);
|
|
|
|
|
}
|
|
|
|
|
public ANY(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.ANY, 0);
|
|
|
|
|
}
|
|
|
|
|
public ATOM(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.ATOM, 0);
|
|
|
|
|
}
|
|
|
|
|
public identifier(): IdentifierContext | null {
|
|
|
|
|
return this.getRuleContext(0, IdentifierContext);
|
|
|
|
|
}
|
|
|
|
|
public 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 identifierList(): IdentifierListContext | null {
|
|
|
|
|
return this.getRuleContext(0, IdentifierListContext);
|
|
|
|
|
}
|
|
|
|
|
public override get ruleIndex(): number {
|
|
|
|
|
return QuixosCapabilityParser.RULE_receiverRequirement;
|
|
|
|
|
}
|
|
|
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
|
|
|
if (visitor.visitReceiverRequirement) {
|
|
|
|
|
return visitor.visitReceiverRequirement(this);
|
|
|
|
|
} else {
|
|
|
|
|
return visitor.visitChildren(this);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export class IdentifierListContext extends antlr.ParserRuleContext {
|
|
|
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
|
|
|
super(parent, invokingState);
|
|
|
|
|
}
|
|
|
|
|
public identifier(): IdentifierContext[];
|
|
|
|
|
public identifier(i: number): IdentifierContext | null;
|
|
|
|
|
public identifier(i?: number): IdentifierContext[] | IdentifierContext | null {
|
|
|
|
|
if (i === undefined) {
|
|
|
|
|
return this.getRuleContexts(IdentifierContext);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return this.getRuleContext(i, IdentifierContext);
|
|
|
|
|
}
|
|
|
|
|
public COMMA(): antlr.TerminalNode[];
|
|
|
|
|
public COMMA(i: number): antlr.TerminalNode | null;
|
|
|
|
|
public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] {
|
|
|
|
|
if (i === undefined) {
|
|
|
|
|
return this.getTokens(QuixosCapabilityParser.COMMA);
|
|
|
|
|
} else {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.COMMA, i);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
public override get ruleIndex(): number {
|
|
|
|
|
return QuixosCapabilityParser.RULE_identifierList;
|
|
|
|
|
}
|
|
|
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
|
|
|
if (visitor.visitIdentifierList) {
|
|
|
|
|
return visitor.visitIdentifierList(this);
|
|
|
|
|
} else {
|
|
|
|
|
return visitor.visitChildren(this);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export class DependencyBlockContext extends antlr.ParserRuleContext {
|
|
|
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
|
|
|
super(parent, invokingState);
|
|
|
|
|
}
|
|
|
|
|
public REQUIRES(): antlr.TerminalNode {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.REQUIRES, 0)!;
|
|
|
|
|
}
|
|
|
|
|
public LBRACE(): antlr.TerminalNode {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.LBRACE, 0)!;
|
|
|
|
|
}
|
|
|
|
|
public RBRACE(): antlr.TerminalNode {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.RBRACE, 0)!;
|
|
|
|
|
}
|
|
|
|
|
public dependencyPort(): DependencyPortContext[];
|
|
|
|
|
public dependencyPort(i: number): DependencyPortContext | null;
|
|
|
|
|
public dependencyPort(i?: number): DependencyPortContext[] | DependencyPortContext | null {
|
|
|
|
|
if (i === undefined) {
|
|
|
|
|
return this.getRuleContexts(DependencyPortContext);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return this.getRuleContext(i, DependencyPortContext);
|
|
|
|
|
}
|
|
|
|
|
public override get ruleIndex(): number {
|
|
|
|
|
return QuixosCapabilityParser.RULE_dependencyBlock;
|
|
|
|
|
}
|
|
|
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
|
|
|
if (visitor.visitDependencyBlock) {
|
|
|
|
|
return visitor.visitDependencyBlock(this);
|
|
|
|
|
} else {
|
|
|
|
|
return visitor.visitChildren(this);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export class DependencyPortContext extends antlr.ParserRuleContext {
|
|
|
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
|
|
|
super(parent, invokingState);
|
|
|
|
|
}
|
|
|
|
|
public STATE(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.STATE, 0);
|
|
|
|
|
}
|
|
|
|
|
public identifier(): IdentifierContext[];
|
|
|
|
|
public identifier(i: number): IdentifierContext | null;
|
|
|
|
|
public identifier(i?: number): IdentifierContext[] | IdentifierContext | null {
|
|
|
|
|
if (i === undefined) {
|
|
|
|
|
return this.getRuleContexts(IdentifierContext);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return this.getRuleContext(i, IdentifierContext);
|
|
|
|
|
}
|
|
|
|
|
public ID(): antlr.TerminalNode {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.ID, 0)!;
|
|
|
|
|
}
|
|
|
|
|
public stringLiteral(): StringLiteralContext {
|
|
|
|
|
return this.getRuleContext(0, StringLiteralContext)!;
|
|
|
|
|
}
|
|
|
|
|
public COLON(): antlr.TerminalNode {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.COLON, 0)!;
|
|
|
|
|
}
|
|
|
|
|
public valueType(): ValueTypeContext | null {
|
|
|
|
|
return this.getRuleContext(0, ValueTypeContext);
|
|
|
|
|
}
|
|
|
|
|
public primitiveList(): PrimitiveListContext | null {
|
|
|
|
|
return this.getRuleContext(0, PrimitiveListContext);
|
|
|
|
|
}
|
|
|
|
|
public SEMI(): antlr.TerminalNode {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.SEMI, 0)!;
|
|
|
|
|
}
|
|
|
|
|
public EDGE(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.EDGE, 0);
|
|
|
|
|
}
|
|
|
|
|
public cardinality(): CardinalityContext | null {
|
|
|
|
|
return this.getRuleContext(0, CardinalityContext);
|
|
|
|
|
}
|
|
|
|
|
public targetConstraint(): TargetConstraintContext | null {
|
|
|
|
|
return this.getRuleContext(0, TargetConstraintContext);
|
|
|
|
|
}
|
|
|
|
|
public INTERFACE(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.INTERFACE, 0);
|
|
|
|
|
}
|
|
|
|
|
public CONSTRUCTOR(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.CONSTRUCTOR, 0);
|
|
|
|
|
}
|
|
|
|
|
public override get ruleIndex(): number {
|
|
|
|
|
return QuixosCapabilityParser.RULE_dependencyPort;
|
|
|
|
|
}
|
|
|
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
|
|
|
if (visitor.visitDependencyPort) {
|
|
|
|
|
return visitor.visitDependencyPort(this);
|
|
|
|
|
} else {
|
|
|
|
|
return visitor.visitChildren(this);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export class PrimitiveListContext extends antlr.ParserRuleContext {
|
|
|
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
|
|
|
super(parent, invokingState);
|
|
|
|
|
}
|
|
|
|
|
public LBRACK(): antlr.TerminalNode {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.LBRACK, 0)!;
|
|
|
|
|
}
|
|
|
|
|
public primitive(): PrimitiveContext[];
|
|
|
|
|
public primitive(i: number): PrimitiveContext | null;
|
|
|
|
|
public primitive(i?: number): PrimitiveContext[] | PrimitiveContext | null {
|
|
|
|
|
if (i === undefined) {
|
|
|
|
|
return this.getRuleContexts(PrimitiveContext);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return this.getRuleContext(i, PrimitiveContext);
|
|
|
|
|
}
|
|
|
|
|
public RBRACK(): antlr.TerminalNode {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.RBRACK, 0)!;
|
|
|
|
|
}
|
|
|
|
|
public COMMA(): antlr.TerminalNode[];
|
|
|
|
|
public COMMA(i: number): antlr.TerminalNode | null;
|
|
|
|
|
public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] {
|
|
|
|
|
if (i === undefined) {
|
|
|
|
|
return this.getTokens(QuixosCapabilityParser.COMMA);
|
|
|
|
|
} else {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.COMMA, i);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
public override get ruleIndex(): number {
|
|
|
|
|
return QuixosCapabilityParser.RULE_primitiveList;
|
|
|
|
|
}
|
|
|
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
|
|
|
if (visitor.visitPrimitiveList) {
|
|
|
|
|
return visitor.visitPrimitiveList(this);
|
|
|
|
|
} else {
|
|
|
|
|
return visitor.visitChildren(this);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export class PrimitiveContext extends antlr.ParserRuleContext {
|
|
|
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
|
|
|
super(parent, invokingState);
|
|
|
|
|
}
|
|
|
|
|
public READ(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.READ, 0);
|
|
|
|
|
}
|
|
|
|
|
public WRITE(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.WRITE, 0);
|
|
|
|
|
}
|
|
|
|
|
public RESOLVE(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.RESOLVE, 0);
|
|
|
|
|
}
|
|
|
|
|
public CONNECT(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.CONNECT, 0);
|
|
|
|
|
}
|
|
|
|
|
public DISCONNECT(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.DISCONNECT, 0);
|
|
|
|
|
}
|
|
|
|
|
public WATCH_START(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.WATCH_START, 0);
|
|
|
|
|
}
|
|
|
|
|
public WATCH_STOP(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.WATCH_STOP, 0);
|
|
|
|
|
}
|
|
|
|
|
public override get ruleIndex(): number {
|
|
|
|
|
return QuixosCapabilityParser.RULE_primitive;
|
|
|
|
|
}
|
|
|
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
|
|
|
if (visitor.visitPrimitive) {
|
|
|
|
|
return visitor.visitPrimitive(this);
|
|
|
|
|
} else {
|
|
|
|
|
return visitor.visitChildren(this);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export class SharedAttachmentDeclContext extends antlr.ParserRuleContext {
|
|
|
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
|
|
|
super(parent, invokingState);
|
|
|
|
|
}
|
|
|
|
|
public SHARED(): antlr.TerminalNode {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.SHARED, 0)!;
|
|
|
|
|
}
|
|
|
|
|
public attachmentDecl(): AttachmentDeclContext {
|
|
|
|
|
return this.getRuleContext(0, AttachmentDeclContext)!;
|
|
|
|
|
}
|
|
|
|
|
public override get ruleIndex(): number {
|
|
|
|
|
return QuixosCapabilityParser.RULE_sharedAttachmentDecl;
|
|
|
|
|
}
|
|
|
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
|
|
|
if (visitor.visitSharedAttachmentDecl) {
|
|
|
|
|
return visitor.visitSharedAttachmentDecl(this);
|
|
|
|
|
} else {
|
|
|
|
|
return visitor.visitChildren(this);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export class AttachmentDeclContext extends antlr.ParserRuleContext {
|
|
|
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
|
|
|
super(parent, invokingState);
|
|
|
|
|
}
|
|
|
|
|
public stateDecl(): StateDeclContext | null {
|
|
|
|
|
return this.getRuleContext(0, StateDeclContext);
|
|
|
|
|
}
|
|
|
|
|
public edgeDecl(): EdgeDeclContext | null {
|
|
|
|
|
return this.getRuleContext(0, EdgeDeclContext);
|
|
|
|
|
}
|
|
|
|
|
public override get ruleIndex(): number {
|
|
|
|
|
return QuixosCapabilityParser.RULE_attachmentDecl;
|
|
|
|
|
}
|
|
|
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
|
|
|
if (visitor.visitAttachmentDecl) {
|
|
|
|
|
return visitor.visitAttachmentDecl(this);
|
|
|
|
|
} else {
|
|
|
|
|
return visitor.visitChildren(this);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export class StateDeclContext extends antlr.ParserRuleContext {
|
|
|
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
|
|
|
super(parent, invokingState);
|
|
|
|
|
}
|
|
|
|
|
public STATE(): antlr.TerminalNode {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.STATE, 0)!;
|
|
|
|
|
}
|
|
|
|
|
public identifier(): IdentifierContext[];
|
|
|
|
|
public identifier(i: number): IdentifierContext | null;
|
|
|
|
|
public identifier(i?: number): IdentifierContext[] | IdentifierContext | null {
|
|
|
|
|
if (i === undefined) {
|
|
|
|
|
return this.getRuleContexts(IdentifierContext);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return this.getRuleContext(i, IdentifierContext);
|
|
|
|
|
}
|
|
|
|
|
public ID(): antlr.TerminalNode {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.ID, 0)!;
|
|
|
|
|
}
|
|
|
|
|
public stringLiteral(): StringLiteralContext {
|
|
|
|
|
return this.getRuleContext(0, StringLiteralContext)!;
|
|
|
|
|
}
|
|
|
|
|
public ON(): antlr.TerminalNode {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.ON, 0)!;
|
|
|
|
|
}
|
|
|
|
|
public COLON(): antlr.TerminalNode {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.COLON, 0)!;
|
|
|
|
|
}
|
|
|
|
|
public valueType(): ValueTypeContext {
|
|
|
|
|
return this.getRuleContext(0, ValueTypeContext)!;
|
|
|
|
|
}
|
|
|
|
|
public POLICY(): antlr.TerminalNode {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.POLICY, 0)!;
|
|
|
|
|
}
|
|
|
|
|
public storagePolicy(): StoragePolicyContext {
|
|
|
|
|
return this.getRuleContext(0, StoragePolicyContext)!;
|
|
|
|
|
}
|
|
|
|
|
public SEMI(): antlr.TerminalNode {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.SEMI, 0)!;
|
|
|
|
|
}
|
|
|
|
|
public DEFAULT(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.DEFAULT, 0);
|
|
|
|
|
}
|
|
|
|
|
public jsonLiteral(): JsonLiteralContext | null {
|
|
|
|
|
return this.getRuleContext(0, JsonLiteralContext);
|
|
|
|
|
}
|
|
|
|
|
public override get ruleIndex(): number {
|
|
|
|
|
return QuixosCapabilityParser.RULE_stateDecl;
|
|
|
|
|
}
|
|
|
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
|
|
|
if (visitor.visitStateDecl) {
|
|
|
|
|
return visitor.visitStateDecl(this);
|
|
|
|
|
} else {
|
|
|
|
|
return visitor.visitChildren(this);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export class StoragePolicyContext extends antlr.ParserRuleContext {
|
|
|
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
|
|
|
super(parent, invokingState);
|
|
|
|
|
}
|
|
|
|
|
public OPTIMISTIC_REGISTER(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.OPTIMISTIC_REGISTER, 0);
|
|
|
|
|
}
|
|
|
|
|
public CRDT(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.CRDT, 0);
|
|
|
|
|
}
|
|
|
|
|
public LPAREN(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.LPAREN, 0);
|
|
|
|
|
}
|
|
|
|
|
public valueType(): ValueTypeContext | null {
|
|
|
|
|
return this.getRuleContext(0, ValueTypeContext);
|
|
|
|
|
}
|
|
|
|
|
public RPAREN(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.RPAREN, 0);
|
|
|
|
|
}
|
|
|
|
|
public override get ruleIndex(): number {
|
|
|
|
|
return QuixosCapabilityParser.RULE_storagePolicy;
|
|
|
|
|
}
|
|
|
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
|
|
|
if (visitor.visitStoragePolicy) {
|
|
|
|
|
return visitor.visitStoragePolicy(this);
|
|
|
|
|
} else {
|
|
|
|
|
return visitor.visitChildren(this);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export class EdgeDeclContext extends antlr.ParserRuleContext {
|
|
|
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
|
|
|
super(parent, invokingState);
|
|
|
|
|
}
|
|
|
|
|
public EDGE(): antlr.TerminalNode {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.EDGE, 0)!;
|
|
|
|
|
}
|
|
|
|
|
public identifier(): IdentifierContext {
|
|
|
|
|
return this.getRuleContext(0, IdentifierContext)!;
|
|
|
|
|
}
|
|
|
|
|
public ID(): antlr.TerminalNode {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.ID, 0)!;
|
|
|
|
|
}
|
|
|
|
|
public stringLiteral(): StringLiteralContext {
|
|
|
|
|
return this.getRuleContext(0, StringLiteralContext)!;
|
|
|
|
|
}
|
|
|
|
|
public LBRACE(): antlr.TerminalNode {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.LBRACE, 0)!;
|
|
|
|
|
}
|
|
|
|
|
public edgeEndpoint(): EdgeEndpointContext[];
|
|
|
|
|
public edgeEndpoint(i: number): EdgeEndpointContext | null;
|
|
|
|
|
public edgeEndpoint(i?: number): EdgeEndpointContext[] | EdgeEndpointContext | null {
|
|
|
|
|
if (i === undefined) {
|
|
|
|
|
return this.getRuleContexts(EdgeEndpointContext);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return this.getRuleContext(i, EdgeEndpointContext);
|
|
|
|
|
}
|
|
|
|
|
public RBRACE(): antlr.TerminalNode {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.RBRACE, 0)!;
|
|
|
|
|
}
|
|
|
|
|
public override get ruleIndex(): number {
|
|
|
|
|
return QuixosCapabilityParser.RULE_edgeDecl;
|
|
|
|
|
}
|
|
|
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
|
|
|
if (visitor.visitEdgeDecl) {
|
|
|
|
|
return visitor.visitEdgeDecl(this);
|
|
|
|
|
} else {
|
|
|
|
|
return visitor.visitChildren(this);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export class EdgeEndpointContext extends antlr.ParserRuleContext {
|
|
|
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
|
|
|
super(parent, invokingState);
|
|
|
|
|
}
|
|
|
|
|
public targetConstraint(): TargetConstraintContext {
|
|
|
|
|
return this.getRuleContext(0, TargetConstraintContext)!;
|
|
|
|
|
}
|
|
|
|
|
public PROJECTION(): antlr.TerminalNode {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.PROJECTION, 0)!;
|
|
|
|
|
}
|
|
|
|
|
public identifier(): IdentifierContext {
|
|
|
|
|
return this.getRuleContext(0, IdentifierContext)!;
|
|
|
|
|
}
|
|
|
|
|
public ID(): antlr.TerminalNode {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.ID, 0)!;
|
|
|
|
|
}
|
|
|
|
|
public stringLiteral(): StringLiteralContext {
|
|
|
|
|
return this.getRuleContext(0, 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 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 conformanceItem(): ConformanceItemContext[];
|
|
|
|
|
public conformanceItem(i: number): ConformanceItemContext | null;
|
|
|
|
|
public conformanceItem(i?: number): ConformanceItemContext[] | ConformanceItemContext | null {
|
|
|
|
|
if (i === undefined) {
|
|
|
|
|
return this.getRuleContexts(ConformanceItemContext);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return this.getRuleContext(i, ConformanceItemContext);
|
|
|
|
|
}
|
|
|
|
|
public override get ruleIndex(): number {
|
|
|
|
|
return QuixosCapabilityParser.RULE_conformanceDecl;
|
|
|
|
|
}
|
|
|
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
|
|
|
if (visitor.visitConformanceDecl) {
|
|
|
|
|
return visitor.visitConformanceDecl(this);
|
|
|
|
|
} else {
|
|
|
|
|
return visitor.visitChildren(this);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export class ConformanceItemContext extends antlr.ParserRuleContext {
|
|
|
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
|
|
|
super(parent, invokingState);
|
|
|
|
|
}
|
|
|
|
|
public PRIVATE(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.PRIVATE, 0);
|
|
|
|
|
}
|
|
|
|
|
public attachmentDecl(): AttachmentDeclContext | null {
|
|
|
|
|
return this.getRuleContext(0, AttachmentDeclContext);
|
|
|
|
|
}
|
|
|
|
|
public operationBindingDecl(): OperationBindingDeclContext | null {
|
|
|
|
|
return this.getRuleContext(0, OperationBindingDeclContext);
|
|
|
|
|
}
|
2026-09-04 21:03:09 -07:00
|
|
|
public relationshipMaterializationDecl(): RelationshipMaterializationDeclContext | null {
|
|
|
|
|
return this.getRuleContext(0, RelationshipMaterializationDeclContext);
|
|
|
|
|
}
|
2026-09-03 15:46:52 -07:00
|
|
|
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);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2026-09-04 21:03:09 -07:00
|
|
|
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);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2026-09-03 15:46:52 -07:00
|
|
|
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 override get ruleIndex(): number {
|
|
|
|
|
return QuixosCapabilityParser.RULE_operationBindingDecl;
|
|
|
|
|
}
|
|
|
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
|
|
|
if (visitor.visitOperationBindingDecl) {
|
|
|
|
|
return visitor.visitOperationBindingDecl(this);
|
|
|
|
|
} else {
|
|
|
|
|
return visitor.visitChildren(this);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export class MemberOperationRefContext extends antlr.ParserRuleContext {
|
|
|
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
|
|
|
super(parent, invokingState);
|
|
|
|
|
}
|
|
|
|
|
public identifier(): IdentifierContext {
|
|
|
|
|
return this.getRuleContext(0, IdentifierContext)!;
|
|
|
|
|
}
|
|
|
|
|
public DOT(): antlr.TerminalNode {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.DOT, 0)!;
|
|
|
|
|
}
|
|
|
|
|
public operationName(): OperationNameContext {
|
|
|
|
|
return this.getRuleContext(0, OperationNameContext)!;
|
|
|
|
|
}
|
|
|
|
|
public override get ruleIndex(): number {
|
|
|
|
|
return QuixosCapabilityParser.RULE_memberOperationRef;
|
|
|
|
|
}
|
|
|
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
|
|
|
if (visitor.visitMemberOperationRef) {
|
|
|
|
|
return visitor.visitMemberOperationRef(this);
|
|
|
|
|
} else {
|
|
|
|
|
return visitor.visitChildren(this);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export class OperationNameContext extends antlr.ParserRuleContext {
|
|
|
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
|
|
|
super(parent, invokingState);
|
|
|
|
|
}
|
|
|
|
|
public identifier(): IdentifierContext | null {
|
|
|
|
|
return this.getRuleContext(0, IdentifierContext);
|
|
|
|
|
}
|
|
|
|
|
public CALL(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.CALL, 0);
|
|
|
|
|
}
|
|
|
|
|
public GET(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.GET, 0);
|
|
|
|
|
}
|
|
|
|
|
public SET(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.SET, 0);
|
|
|
|
|
}
|
|
|
|
|
public RESOLVE(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.RESOLVE, 0);
|
|
|
|
|
}
|
|
|
|
|
public CONNECT(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.CONNECT, 0);
|
|
|
|
|
}
|
|
|
|
|
public DISCONNECT(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.DISCONNECT, 0);
|
|
|
|
|
}
|
|
|
|
|
public WATCH_START(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.WATCH_START, 0);
|
|
|
|
|
}
|
|
|
|
|
public WATCH_STOP(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.WATCH_STOP, 0);
|
|
|
|
|
}
|
|
|
|
|
public SUBSCRIBE(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.SUBSCRIBE, 0);
|
|
|
|
|
}
|
|
|
|
|
public UNSUBSCRIBE(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.UNSUBSCRIBE, 0);
|
|
|
|
|
}
|
|
|
|
|
public override get ruleIndex(): number {
|
|
|
|
|
return QuixosCapabilityParser.RULE_operationName;
|
|
|
|
|
}
|
|
|
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
|
|
|
if (visitor.visitOperationName) {
|
|
|
|
|
return visitor.visitOperationName(this);
|
|
|
|
|
} else {
|
|
|
|
|
return visitor.visitChildren(this);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export class OperationProviderContext extends antlr.ParserRuleContext {
|
|
|
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
|
|
|
super(parent, invokingState);
|
|
|
|
|
}
|
|
|
|
|
public STATE(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.STATE, 0);
|
|
|
|
|
}
|
|
|
|
|
public identifier(): IdentifierContext[];
|
|
|
|
|
public identifier(i: number): IdentifierContext | null;
|
|
|
|
|
public identifier(i?: number): IdentifierContext[] | IdentifierContext | null {
|
|
|
|
|
if (i === undefined) {
|
|
|
|
|
return this.getRuleContexts(IdentifierContext);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return this.getRuleContext(i, IdentifierContext);
|
|
|
|
|
}
|
|
|
|
|
public DOT(): antlr.TerminalNode[];
|
|
|
|
|
public DOT(i: number): antlr.TerminalNode | null;
|
|
|
|
|
public DOT(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] {
|
|
|
|
|
if (i === undefined) {
|
|
|
|
|
return this.getTokens(QuixosCapabilityParser.DOT);
|
|
|
|
|
} else {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.DOT, i);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
public statePrimitive(): StatePrimitiveContext | null {
|
|
|
|
|
return this.getRuleContext(0, StatePrimitiveContext);
|
|
|
|
|
}
|
|
|
|
|
public EDGE(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.EDGE, 0);
|
|
|
|
|
}
|
|
|
|
|
public edgePrimitive(): EdgePrimitiveContext | null {
|
|
|
|
|
return this.getRuleContext(0, EdgePrimitiveContext);
|
|
|
|
|
}
|
|
|
|
|
public PACKAGE(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.PACKAGE, 0);
|
|
|
|
|
}
|
|
|
|
|
public dependencyBindingBlock(): DependencyBindingBlockContext | null {
|
|
|
|
|
return this.getRuleContext(0, DependencyBindingBlockContext);
|
|
|
|
|
}
|
|
|
|
|
public override get ruleIndex(): number {
|
|
|
|
|
return QuixosCapabilityParser.RULE_operationProvider;
|
|
|
|
|
}
|
|
|
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
|
|
|
if (visitor.visitOperationProvider) {
|
|
|
|
|
return visitor.visitOperationProvider(this);
|
|
|
|
|
} else {
|
|
|
|
|
return visitor.visitChildren(this);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export class StatePrimitiveContext extends antlr.ParserRuleContext {
|
|
|
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
|
|
|
super(parent, invokingState);
|
|
|
|
|
}
|
|
|
|
|
public READ(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.READ, 0);
|
|
|
|
|
}
|
|
|
|
|
public WRITE(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.WRITE, 0);
|
|
|
|
|
}
|
|
|
|
|
public WATCH_START(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.WATCH_START, 0);
|
|
|
|
|
}
|
|
|
|
|
public WATCH_STOP(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.WATCH_STOP, 0);
|
|
|
|
|
}
|
|
|
|
|
public override get ruleIndex(): number {
|
|
|
|
|
return QuixosCapabilityParser.RULE_statePrimitive;
|
|
|
|
|
}
|
|
|
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
|
|
|
if (visitor.visitStatePrimitive) {
|
|
|
|
|
return visitor.visitStatePrimitive(this);
|
|
|
|
|
} else {
|
|
|
|
|
return visitor.visitChildren(this);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export class EdgePrimitiveContext extends antlr.ParserRuleContext {
|
|
|
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
|
|
|
super(parent, invokingState);
|
|
|
|
|
}
|
|
|
|
|
public RESOLVE(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.RESOLVE, 0);
|
|
|
|
|
}
|
|
|
|
|
public CONNECT(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.CONNECT, 0);
|
|
|
|
|
}
|
|
|
|
|
public DISCONNECT(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.DISCONNECT, 0);
|
|
|
|
|
}
|
|
|
|
|
public WATCH_START(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.WATCH_START, 0);
|
|
|
|
|
}
|
|
|
|
|
public WATCH_STOP(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.WATCH_STOP, 0);
|
|
|
|
|
}
|
|
|
|
|
public override get ruleIndex(): number {
|
|
|
|
|
return QuixosCapabilityParser.RULE_edgePrimitive;
|
|
|
|
|
}
|
|
|
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
|
|
|
if (visitor.visitEdgePrimitive) {
|
|
|
|
|
return visitor.visitEdgePrimitive(this);
|
|
|
|
|
} else {
|
|
|
|
|
return visitor.visitChildren(this);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export class DependencyBindingBlockContext extends antlr.ParserRuleContext {
|
|
|
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
|
|
|
super(parent, invokingState);
|
|
|
|
|
}
|
|
|
|
|
public WITH(): antlr.TerminalNode {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.WITH, 0)!;
|
|
|
|
|
}
|
|
|
|
|
public LBRACE(): antlr.TerminalNode {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.LBRACE, 0)!;
|
|
|
|
|
}
|
|
|
|
|
public RBRACE(): antlr.TerminalNode {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.RBRACE, 0)!;
|
|
|
|
|
}
|
|
|
|
|
public dependencyBinding(): DependencyBindingContext[];
|
|
|
|
|
public dependencyBinding(i: number): DependencyBindingContext | null;
|
|
|
|
|
public dependencyBinding(i?: number): DependencyBindingContext[] | DependencyBindingContext | null {
|
|
|
|
|
if (i === undefined) {
|
|
|
|
|
return this.getRuleContexts(DependencyBindingContext);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return this.getRuleContext(i, DependencyBindingContext);
|
|
|
|
|
}
|
|
|
|
|
public override get ruleIndex(): number {
|
|
|
|
|
return QuixosCapabilityParser.RULE_dependencyBindingBlock;
|
|
|
|
|
}
|
|
|
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
|
|
|
if (visitor.visitDependencyBindingBlock) {
|
|
|
|
|
return visitor.visitDependencyBindingBlock(this);
|
|
|
|
|
} else {
|
|
|
|
|
return visitor.visitChildren(this);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export class DependencyBindingContext extends antlr.ParserRuleContext {
|
|
|
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
|
|
|
super(parent, invokingState);
|
|
|
|
|
}
|
|
|
|
|
public identifier(): IdentifierContext[];
|
|
|
|
|
public identifier(i: number): IdentifierContext | null;
|
|
|
|
|
public identifier(i?: number): IdentifierContext[] | IdentifierContext | null {
|
|
|
|
|
if (i === undefined) {
|
|
|
|
|
return this.getRuleContexts(IdentifierContext);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return this.getRuleContext(i, IdentifierContext);
|
|
|
|
|
}
|
|
|
|
|
public TO(): antlr.TerminalNode {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.TO, 0)!;
|
|
|
|
|
}
|
|
|
|
|
public STATE(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.STATE, 0);
|
|
|
|
|
}
|
|
|
|
|
public SEMI(): antlr.TerminalNode {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.SEMI, 0)!;
|
|
|
|
|
}
|
2026-09-04 21:03:09 -07:00
|
|
|
public VIA(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.VIA, 0);
|
2026-09-03 15:46:52 -07:00
|
|
|
}
|
2026-09-04 21:03:09 -07:00
|
|
|
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);
|
|
|
|
|
}
|
2026-09-03 15:46:52 -07:00
|
|
|
}
|
|
|
|
|
public INTERFACE(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.INTERFACE, 0);
|
|
|
|
|
}
|
|
|
|
|
public CONSTRUCTOR(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.CONSTRUCTOR, 0);
|
|
|
|
|
}
|
|
|
|
|
public override get ruleIndex(): number {
|
|
|
|
|
return QuixosCapabilityParser.RULE_dependencyBinding;
|
|
|
|
|
}
|
|
|
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
|
|
|
if (visitor.visitDependencyBinding) {
|
|
|
|
|
return visitor.visitDependencyBinding(this);
|
|
|
|
|
} else {
|
|
|
|
|
return visitor.visitChildren(this);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export class ConstructorBindingDeclContext extends antlr.ParserRuleContext {
|
|
|
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
|
|
|
super(parent, invokingState);
|
|
|
|
|
}
|
|
|
|
|
public CONSTRUCTOR(): antlr.TerminalNode {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.CONSTRUCTOR, 0)!;
|
|
|
|
|
}
|
|
|
|
|
public identifier(): IdentifierContext[];
|
|
|
|
|
public identifier(i: number): IdentifierContext | null;
|
|
|
|
|
public identifier(i?: number): IdentifierContext[] | IdentifierContext | null {
|
|
|
|
|
if (i === undefined) {
|
|
|
|
|
return this.getRuleContexts(IdentifierContext);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return this.getRuleContext(i, IdentifierContext);
|
|
|
|
|
}
|
|
|
|
|
public TO(): antlr.TerminalNode {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.TO, 0)!;
|
|
|
|
|
}
|
|
|
|
|
public DOT(): antlr.TerminalNode {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.DOT, 0)!;
|
|
|
|
|
}
|
|
|
|
|
public SEMI(): antlr.TerminalNode {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.SEMI, 0)!;
|
|
|
|
|
}
|
|
|
|
|
public dependencyBindingBlock(): DependencyBindingBlockContext | null {
|
|
|
|
|
return this.getRuleContext(0, DependencyBindingBlockContext);
|
|
|
|
|
}
|
|
|
|
|
public override get ruleIndex(): number {
|
|
|
|
|
return QuixosCapabilityParser.RULE_constructorBindingDecl;
|
|
|
|
|
}
|
|
|
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
|
|
|
if (visitor.visitConstructorBindingDecl) {
|
|
|
|
|
return visitor.visitConstructorBindingDecl(this);
|
|
|
|
|
} else {
|
|
|
|
|
return visitor.visitChildren(this);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export class ValueTypeContext extends antlr.ParserRuleContext {
|
|
|
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
|
|
|
super(parent, invokingState);
|
|
|
|
|
}
|
|
|
|
|
public scalarType(): ScalarTypeContext | null {
|
|
|
|
|
return this.getRuleContext(0, ScalarTypeContext);
|
|
|
|
|
}
|
|
|
|
|
public UNIT(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.UNIT, 0);
|
|
|
|
|
}
|
|
|
|
|
public WATCH_HANDLE(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.WATCH_HANDLE, 0);
|
|
|
|
|
}
|
|
|
|
|
public MESSAGE(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.MESSAGE, 0);
|
|
|
|
|
}
|
|
|
|
|
public stringLiteral(): StringLiteralContext | null {
|
|
|
|
|
return this.getRuleContext(0, StringLiteralContext);
|
|
|
|
|
}
|
|
|
|
|
public ATOM_REF(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.ATOM_REF, 0);
|
|
|
|
|
}
|
|
|
|
|
public LT(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.LT, 0);
|
|
|
|
|
}
|
|
|
|
|
public identifier(): IdentifierContext | null {
|
|
|
|
|
return this.getRuleContext(0, IdentifierContext);
|
|
|
|
|
}
|
|
|
|
|
public GT(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.GT, 0);
|
|
|
|
|
}
|
|
|
|
|
public INTERFACE_REF(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.INTERFACE_REF, 0);
|
|
|
|
|
}
|
|
|
|
|
public 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 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 ScalarTypeContext extends antlr.ParserRuleContext {
|
|
|
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
|
|
|
super(parent, invokingState);
|
|
|
|
|
}
|
|
|
|
|
public BOOL(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.BOOL, 0);
|
|
|
|
|
}
|
|
|
|
|
public BYTES(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.BYTES, 0);
|
|
|
|
|
}
|
|
|
|
|
public DOUBLE(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.DOUBLE, 0);
|
|
|
|
|
}
|
|
|
|
|
public INT32(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.INT32, 0);
|
|
|
|
|
}
|
|
|
|
|
public INT64(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.INT64, 0);
|
|
|
|
|
}
|
|
|
|
|
public STRING(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.STRING, 0);
|
|
|
|
|
}
|
|
|
|
|
public UINT32(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.UINT32, 0);
|
|
|
|
|
}
|
|
|
|
|
public UINT64(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.UINT64, 0);
|
|
|
|
|
}
|
|
|
|
|
public override get ruleIndex(): number {
|
|
|
|
|
return QuixosCapabilityParser.RULE_scalarType;
|
|
|
|
|
}
|
|
|
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
|
|
|
if (visitor.visitScalarType) {
|
|
|
|
|
return visitor.visitScalarType(this);
|
|
|
|
|
} else {
|
|
|
|
|
return visitor.visitChildren(this);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export class CardinalityContext extends antlr.ParserRuleContext {
|
|
|
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
|
|
|
super(parent, invokingState);
|
|
|
|
|
}
|
|
|
|
|
public OPTIONAL_ONE(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.OPTIONAL_ONE, 0);
|
|
|
|
|
}
|
|
|
|
|
public EXACTLY_ONE(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.EXACTLY_ONE, 0);
|
|
|
|
|
}
|
|
|
|
|
public MANY(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.MANY, 0);
|
|
|
|
|
}
|
|
|
|
|
public MANY_UNIQUE(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.MANY_UNIQUE, 0);
|
|
|
|
|
}
|
|
|
|
|
public override get ruleIndex(): number {
|
|
|
|
|
return QuixosCapabilityParser.RULE_cardinality;
|
|
|
|
|
}
|
|
|
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
|
|
|
if (visitor.visitCardinality) {
|
|
|
|
|
return visitor.visitCardinality(this);
|
|
|
|
|
} else {
|
|
|
|
|
return visitor.visitChildren(this);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export class JsonLiteralContext extends antlr.ParserRuleContext {
|
|
|
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
|
|
|
super(parent, invokingState);
|
|
|
|
|
}
|
|
|
|
|
public stringLiteral(): StringLiteralContext | null {
|
|
|
|
|
return this.getRuleContext(0, StringLiteralContext);
|
|
|
|
|
}
|
|
|
|
|
public INTEGER(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.INTEGER, 0);
|
|
|
|
|
}
|
|
|
|
|
public JSON_NUMBER(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.JSON_NUMBER, 0);
|
|
|
|
|
}
|
|
|
|
|
public TRUE(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.TRUE, 0);
|
|
|
|
|
}
|
|
|
|
|
public FALSE(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.FALSE, 0);
|
|
|
|
|
}
|
|
|
|
|
public NULL(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.NULL, 0);
|
|
|
|
|
}
|
|
|
|
|
public jsonObject(): JsonObjectContext | null {
|
|
|
|
|
return this.getRuleContext(0, JsonObjectContext);
|
|
|
|
|
}
|
|
|
|
|
public jsonArray(): JsonArrayContext | null {
|
|
|
|
|
return this.getRuleContext(0, JsonArrayContext);
|
|
|
|
|
}
|
|
|
|
|
public override get ruleIndex(): number {
|
|
|
|
|
return QuixosCapabilityParser.RULE_jsonLiteral;
|
|
|
|
|
}
|
|
|
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
|
|
|
if (visitor.visitJsonLiteral) {
|
|
|
|
|
return visitor.visitJsonLiteral(this);
|
|
|
|
|
} else {
|
|
|
|
|
return visitor.visitChildren(this);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export class JsonObjectContext extends antlr.ParserRuleContext {
|
|
|
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
|
|
|
super(parent, invokingState);
|
|
|
|
|
}
|
|
|
|
|
public LBRACE(): antlr.TerminalNode {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.LBRACE, 0)!;
|
|
|
|
|
}
|
|
|
|
|
public RBRACE(): antlr.TerminalNode {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.RBRACE, 0)!;
|
|
|
|
|
}
|
|
|
|
|
public jsonMember(): JsonMemberContext[];
|
|
|
|
|
public jsonMember(i: number): JsonMemberContext | null;
|
|
|
|
|
public jsonMember(i?: number): JsonMemberContext[] | JsonMemberContext | null {
|
|
|
|
|
if (i === undefined) {
|
|
|
|
|
return this.getRuleContexts(JsonMemberContext);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return this.getRuleContext(i, JsonMemberContext);
|
|
|
|
|
}
|
|
|
|
|
public COMMA(): antlr.TerminalNode[];
|
|
|
|
|
public COMMA(i: number): antlr.TerminalNode | null;
|
|
|
|
|
public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] {
|
|
|
|
|
if (i === undefined) {
|
|
|
|
|
return this.getTokens(QuixosCapabilityParser.COMMA);
|
|
|
|
|
} else {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.COMMA, i);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
public override get ruleIndex(): number {
|
|
|
|
|
return QuixosCapabilityParser.RULE_jsonObject;
|
|
|
|
|
}
|
|
|
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
|
|
|
if (visitor.visitJsonObject) {
|
|
|
|
|
return visitor.visitJsonObject(this);
|
|
|
|
|
} else {
|
|
|
|
|
return visitor.visitChildren(this);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export class JsonMemberContext extends antlr.ParserRuleContext {
|
|
|
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
|
|
|
super(parent, invokingState);
|
|
|
|
|
}
|
|
|
|
|
public stringLiteral(): StringLiteralContext {
|
|
|
|
|
return this.getRuleContext(0, StringLiteralContext)!;
|
|
|
|
|
}
|
|
|
|
|
public COLON(): antlr.TerminalNode {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.COLON, 0)!;
|
|
|
|
|
}
|
|
|
|
|
public jsonLiteral(): JsonLiteralContext {
|
|
|
|
|
return this.getRuleContext(0, JsonLiteralContext)!;
|
|
|
|
|
}
|
|
|
|
|
public override get ruleIndex(): number {
|
|
|
|
|
return QuixosCapabilityParser.RULE_jsonMember;
|
|
|
|
|
}
|
|
|
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
|
|
|
if (visitor.visitJsonMember) {
|
|
|
|
|
return visitor.visitJsonMember(this);
|
|
|
|
|
} else {
|
|
|
|
|
return visitor.visitChildren(this);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export class JsonArrayContext extends antlr.ParserRuleContext {
|
|
|
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
|
|
|
super(parent, invokingState);
|
|
|
|
|
}
|
|
|
|
|
public LBRACK(): antlr.TerminalNode {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.LBRACK, 0)!;
|
|
|
|
|
}
|
|
|
|
|
public RBRACK(): antlr.TerminalNode {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.RBRACK, 0)!;
|
|
|
|
|
}
|
|
|
|
|
public jsonLiteral(): JsonLiteralContext[];
|
|
|
|
|
public jsonLiteral(i: number): JsonLiteralContext | null;
|
|
|
|
|
public jsonLiteral(i?: number): JsonLiteralContext[] | JsonLiteralContext | null {
|
|
|
|
|
if (i === undefined) {
|
|
|
|
|
return this.getRuleContexts(JsonLiteralContext);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return this.getRuleContext(i, JsonLiteralContext);
|
|
|
|
|
}
|
|
|
|
|
public COMMA(): antlr.TerminalNode[];
|
|
|
|
|
public COMMA(i: number): antlr.TerminalNode | null;
|
|
|
|
|
public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] {
|
|
|
|
|
if (i === undefined) {
|
|
|
|
|
return this.getTokens(QuixosCapabilityParser.COMMA);
|
|
|
|
|
} else {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.COMMA, i);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
public override get ruleIndex(): number {
|
|
|
|
|
return QuixosCapabilityParser.RULE_jsonArray;
|
|
|
|
|
}
|
|
|
|
|
public override accept<Result>(visitor: QuixosCapabilityVisitor<Result>): Result | null {
|
|
|
|
|
if (visitor.visitJsonArray) {
|
|
|
|
|
return visitor.visitJsonArray(this);
|
|
|
|
|
} else {
|
|
|
|
|
return visitor.visitChildren(this);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export class IdentifierContext extends antlr.ParserRuleContext {
|
|
|
|
|
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
|
|
|
|
|
super(parent, invokingState);
|
|
|
|
|
}
|
|
|
|
|
public IDENTIFIER(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.IDENTIFIER, 0);
|
|
|
|
|
}
|
|
|
|
|
public SOURCE(): antlr.TerminalNode | null {
|
|
|
|
|
return this.getToken(QuixosCapabilityParser.SOURCE, 0);
|
|
|
|
|
}
|
|
|
|
|
public 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);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|