Click or drag to resize

PegBaseParser Methods

The PegBaseParser type exposes the following members.

Methods
 NameDescription
Public methodAnd Performs a positive lookahead with tree rollback support.
Public methodAny Matches any single source element.
Public methodConstruct Reinitializes the parser.
Protected methodDefaultNodeCreator Creates a default parse tree node.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
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 methodForRepeat(Int32, PegBaseParserMatcher) Matches the specified expression an exact number of times.
Public methodForRepeat(Int32, Int32, PegBaseParserMatcher) Matches the specified expression within the provided repetition range.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetProperties Gets the file loading properties expected by the parser.
Public methodGetRoot Gets the root node of the parse tree.
Public methodGetRuleNameFromId Gets the rule name for the specified identifier.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodNot Performs a negative lookahead match without consuming input.
Public methodOption Optionally matches the specified expression.
Public methodOptRepeat Matches zero or more repetitions.
Public methodPeek Performs a lookahead match without consuming input.
Public methodPlusRepeat Matches one or more repetitions.
Public methodResetTree Clears the parse tree.
Public methodRewind Resets the current parser position to the beginning of the source.
Public methodSetErrorDestination Sets the destination for parser diagnostics.
Public methodSetNodeCreator Sets the callback used to create parse tree nodes.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodTreeAST(PegBaseParserMatcher) Matches an anonymous abstract syntax tree node and stores it in the parse tree.
Public methodTreeAST(PegBaseParserCreator, PegBaseParserMatcher) Matches an anonymous abstract syntax tree node and stores it in the parse tree.
Public methodTreeAST(Int32, PegBaseParserMatcher) Matches an abstract syntax tree node and stores it in the parse tree.
Public methodTreeAST(PegBaseParserCreator, Int32, PegBaseParserMatcher) Matches an abstract syntax tree node and stores it in the parse tree.
Public methodTreeChars(PegBaseParserMatcher) Matches character data and stores it as an anonymous tree node.
Public methodTreeChars(PegBaseParserCreator, PegBaseParserMatcher) Matches character data and stores it as an anonymous tree node.
Public methodTreeCharsWithId(Int32, PegBaseParserMatcher) Matches character data and stores it using the specified node identifier.
Public methodTreeCharsWithId(PegBaseParserCreator, Int32, PegBaseParserMatcher) Matches character data and stores it using the specified creator and node identifier.
Public methodTreeNodeToString Converts the specified tree node to a display string.
Public methodTreeNT(PegBaseParserMatcher) Matches an anonymous nonterminal and stores it in the parse tree.
Public methodTreeNT(PegBaseParserCreator, PegBaseParserMatcher) Matches an anonymous nonterminal and stores it in the parse tree.
Public methodTreeNT(Int32, PegBaseParserMatcher) Matches a nonterminal and stores it in the parse tree.
Public methodTreeNT(PegBaseParserCreator, Int32, PegBaseParserMatcher) Matches a nonterminal and stores it in the parse tree.
Top
See Also