Click or drag to resize

CdssLibraryParser Methods

The CdssLibraryParser type exposes the following members.

Methods
 NameDescription
Public methodAction
(Inherited from RecognizerIToken, ParserATNSimulator)
Protected methodAddContextToParseTree
(Inherited from Parser)
Public methodAddErrorListener
(Inherited from RecognizerIToken, ParserATNSimulator)
Public methodAddParseListener Registers listener to receive events during the parsing process.

To support output-preserving grammar transformations (including but not limited to left-recursion removal, automated left-factoring, and optimized code generation), calls to listener methods during the parse may differ substantially from calls made by Default used after the parse is complete. In particular, rule entry and exit events may occur in a different order during the parse than after the parser. In addition, calls to certain rule entry methods may be omitted.

With the following specific exceptions, calls to listener events are deterministic, i.e. for identical input the calls to listener methods will be the same.

  • Alterations to the grammar used to generate code may change the behavior of the listener calls.
  • Alterations to the command line options passed to ANTLR 4 when generating the parser may change the behavior of the listener calls.
  • Changing the version of the ANTLR Tool used to generate the parser may change the behavior of the listener calls.

(Inherited from Parser)
Public methodall_logic 
Public methodany_logic 
Public methodapply_action_statement 
Public methodassign_action_statement 
Public methodCompileParseTreePattern(String, Int32)The preferred method of getting a tree pattern.
(Inherited from Parser)
Public methodCompileParseTreePattern(String, Int32, Lexer) The same as CompileParseTreePattern(String, Int32) but specify a Lexer rather than trying to deduce it from this parser.
(Inherited from Parser)
Public methodConsume Consume and return the #getCurrentToken current symbol .

E.g., given the following input with A being the current lookahead symbol, this function moves the cursor to B and returns A .

            A B
            ^
            
If the parser is not in error recovery mode, the consumed symbol is added to the parse tree using AddChild(IToken) , and VisitTerminal(ITerminalNode) is called on any parse listeners. If the parser is in error recovery mode, the consumed symbol is added to the parse tree using AddErrorNode(IToken) , and VisitErrorNode(IErrorNode) is called on any parse listeners.
(Inherited from Parser)
Protected methodCreateTokenTypeMap
(Inherited from RecognizerIToken, ParserATNSimulator)
Public methodcsharp_logic 
Public methoddata_block 
Public methoddefine_fact 
Public methoddefine_model 
Public methoddefine_protocol 
Public methoddefine_rule 
Public methodDumpDFAFor debugging and other purposes.
(Inherited from Parser)
Public methodEnterLeftFactoredRule
(Inherited from Parser)
Public methodEnterOuterAlt
(Inherited from Parser)
Public methodEnterRecursionRule(ParserRuleContext, Int32)
(Inherited from Parser)
Obsolete
Public methodEnterRecursionRule(ParserRuleContext, Int32, Int32, Int32)
(Inherited from Parser)
Public methodEnterRuleAlways called by generated parsers upon entry to a rule.
(Inherited from Parser)
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodExitRule
(Inherited from Parser)
Public methodfact_computation 
Public methodfact_having_statements 
Public methodfact_normalization 
Public methodfact_ref 
Public methodfact_reference_or_computation 
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetATNWithBypassAlts The ATN with bypass alternatives is expensive to create so we create it lazily.
(Inherited from Parser)
Public methodGetDFAStringsFor debugging and other purposes.
(Inherited from Parser)
Public methodGetErrorHeaderWhat is the error header, normally line/character position information?
(Inherited from RecognizerIToken, ParserATNSimulator)
Public methodGetExpectedTokens Computes the set of input symbols which could follow the current parser state and context, as given by State and Context , respectively.
(Inherited from Parser)
Public methodGetExpectedTokensWithinCurrentRule
(Inherited from Parser)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetInvokingContext
(Inherited from Parser)
Public methodGetRuleIndex Get a rule's index (i.e., RULE_ruleName field) or -1 if not found.
(Inherited from Parser)
Public methodGetRuleInvocationStack Return List<String> of the rule names in your parser instance leading up to a call to the current rule.
(Inherited from Parser)
Public methodGetRuleInvocationStack(RuleContext)
(Inherited from Parser)
Public methodGetRuleInvocationStackAsString
(Inherited from Parser)
Public methodGetTokenErrorDisplay How should a token be displayed in an error message? The default is to display just the text, but during development you might want to have a lot of information spit out.
(Inherited from RecognizerIToken, ParserATNSimulator)
Obsolete
Public methodGetTokenType
(Inherited from RecognizerIToken, ParserATNSimulator)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodhaving_context 
Public methodhaving_id 
Public methodhaving_model 
Public methodhaving_negation 
Public methodhaving_oid 
Public methodhaving_priority 
Public methodhaving_scope 
Public methodhaving_statements 
Public methodhaving_status 
Public methodhaving_type 
Public methodhaving_uuid 
Public methodhdsi_logic 
Public methodinclude_definition 
Public methodInContext
(Inherited from Parser)
Public methodinline_rule_definition 
Public methodIsExpectedToken Checks whether or not symbol can follow the current state in the ATN. The behavior of this method is equivalent to the following, but is implemented such that the complete context-sensitive follow set does not need to be explicitly constructed.
             return getExpectedTokens().contains(symbol);
             

(Inherited from Parser)
Public methodlibrary 
Public methodlibrary_definition 
Public methodlibrary_definitions 
Public methodlogic_block 
Public methodlogic_definitions 
Public methodlogic_having_statements 
Public methodMatch Match current input symbol against ttype . If the symbol type matches, ReportMatch(Parser) and Consume are called to complete the match process.

If the symbol type does not match, RecoverInline(Parser) is called on the current error strategy to attempt recovery. If BuildParseTree is and the token index of the symbol returned by RecoverInline(Parser) is -1, the symbol is added to the parse tree by calling AddErrorNode(IToken) .


(Inherited from Parser)
Public methodMatchWildcardMatch current input symbol as a wildcard.
(Inherited from Parser)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodmetadata_author_statement 
Public methodmetadata_documentation_statement 
Public methodmetadata_statement 
Public methodmetadata_version_statement 
Public methodnone_logic 
Public methodNotifyErrorListeners(String)
(Inherited from Parser)
Public methodNotifyErrorListeners(IToken, String, RecognitionException)
(Inherited from Parser)
Public methodPrecpred
(Inherited from Parser)
Public methodpropose_action_statement 
Public methodprotocol_having_statements 
Public methodPushNewRecursionContext Like EnterRule(ParserRuleContext, Int32, Int32) but for recursive rules.
(Inherited from Parser)
Public methodquery_logic 
Public methodraise_action_statement 
Public methodRemoveErrorListener
(Inherited from RecognizerIToken, ParserATNSimulator)
Public methodRemoveErrorListeners
(Inherited from RecognizerIToken, ParserATNSimulator)
Public methodRemoveParseListener Remove listener from the list of parse listeners.

If listener is or has not been added as a parse listener, this method does nothing.


(Inherited from Parser)
Public methodRemoveParseListenersRemove all parse listeners.
(Inherited from Parser)
Public methodrepeat_action_statement 
Public methodResetreset the parser's state
(Inherited from Parser)
Public methodSempred
(Inherited from RecognizerIToken, ParserATNSimulator)
Public methodthen_action_statements 
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Protected methodTriggerEnterRuleEventNotify any parse listeners of an enter rule event.
(Inherited from Parser)
Protected methodTriggerExitRuleEventNotify any parse listeners of an exit rule event.
(Inherited from Parser)
Public methodUnrollRecursionContexts
(Inherited from Parser)
Public methodusing_model 
Public methodwhen_guard_condition 
Public methodwith_effective 
Top
Extension Methods
 NameDescription
Public Extension MethodConvertTReturn The purpose of this method is to convert object me to TReturn. Why? Because if you have an instance of Act that actually needs to be a SubstanceAdministration we can't just cast so we have to copy.
(Defined by ExtensionMethods)
Public Extension MethodWithControl With control parameter is used as a wrapper for _ parameters
(Defined by QueryFilterExtensions)
Top
See Also