Click or drag to resize

PegCharParser Class

Provides PEG parsing support for character input.
Inheritance Hierarchy

Namespace: Altaxo.Main.PegParser
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
public class PegCharParser : PegBaseParser

The PegCharParser type exposes the following members.

Constructors
 NameDescription
Public methodPegCharParser Initializes a new instance of the PegCharParser class.
Public methodPegCharParser(String) Initializes a new instance of the PegCharParser class.
Public methodPegCharParser(String, TextWriter) Initializes a new instance of the PegCharParser class.
Top
Methods
 NameDescription
Public methodAnd Performs a positive lookahead with tree rollback support.
(Inherited from PegBaseParser)
Public methodAny Matches any single source element.
(Inherited from PegBaseParser)
Public methodChar(Char) Matches the specified character literal.
Public methodChar(String) Matches the specified string literal.
Public methodChar(Char, Char) Matches the specified two-character literal.
Public methodChar(Char, Char, Char) Matches the specified three-character literal.
Public methodChar(Char, Char, Char, Char) Matches the specified four-character literal.
Public methodChar(Char, Char, Char, Char, Char) Matches the specified five-character literal.
Public methodChar(Char, Char, Char, Char, Char, Char) Matches the specified six-character literal.
Public methodChar(Char, Char, Char, Char, Char, Char, Char) Matches the specified seven-character literal.
Public methodChar(Char, Char, Char, Char, Char, Char, Char, Char) Matches the specified eight-character literal.
Public methodConstruct(TextWriter) Reinitializes the parser.
(Inherited from PegBaseParser)
Public methodConstruct(String, TextWriter) Reinitializes the parser with the specified source and error writer.
Protected methodDefaultNodeCreator Creates a default parse tree node.
(Inherited from PegBaseParser)
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodFatal Reports a fatal parser error.
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.
(Inherited from PegBaseParser)
Public methodForRepeat(Int32, Int32, PegBaseParserMatcher) Matches the specified expression within the provided repetition range.
(Inherited from PegBaseParser)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetProperties Gets the file loading properties expected by the parser.
(Inherited from PegBaseParser)
Public methodGetRoot Gets the root node of the parse tree.
(Inherited from PegBaseParser)
Public methodGetRuleNameFromId Gets the rule name for the specified identifier.
(Inherited from PegBaseParser)
Public methodGetSource Gets the current source text.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodIChar(Char) Matches the specified character literal case-insensitively.
Public methodIChar(String) Matches the specified string literal case-insensitively.
Public methodIChar(Char, Char) Matches the specified two-character literal case-insensitively.
Public methodIChar(Char, Char, Char) Matches the specified three-character literal case-insensitively.
Public methodIChar(Char, Char, Char, Char) Matches the specified four-character literal case-insensitively.
Public methodIChar(Char, Char, Char, Char, Char) Matches the specified five-character literal case-insensitively.
Public methodIChar(Char, Char, Char, Char, Char, Char) Matches the specified six-character literal case-insensitively.
Public methodIChar(Char, Char, Char, Char, Char, Char, Char) Matches the specified seven-character literal case-insensitively.
Public methodIn(String) Matches a character within any of the inclusive ranges defined by the string.
Public methodIn(Char, Char) Matches a character within the specified inclusive range.
Public methodIn(Char, Char, Char, Char) Matches a character within either of the specified inclusive ranges.
Public methodIn(Char, Char, Char, Char, Char, Char) Matches a character within any of the specified inclusive ranges.
Public methodIn(Char, Char, Char, Char, Char, Char, Char, Char) Matches a character within any of the specified inclusive ranges.
Public methodInto(PegBaseParserMatcher, PegBegEnd) Captures the source range matched by the specified matcher.
Public methodInto(PegBaseParserMatcher, Double) Captures the text matched by the specified matcher and converts it to a double.
Public methodInto(PegBaseParserMatcher, Int32) Captures the text matched by the specified matcher and converts it to an integer.
Public methodInto(PegBaseParserMatcher, String) Captures the text matched by the specified matcher.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodNot Performs a negative lookahead match without consuming input.
(Inherited from PegBaseParser)
Public methodNotIn Matches a character outside all inclusive ranges defined by the string.
Public methodNotOneOf Matches any character not contained in the specified string.
Public methodOneOf(PegCharParserOptimizedCharset) Matches any character contained in the specified optimized character set.
Public methodOneOf(String) Matches any character contained in the specified string.
Public methodOneOf(Char, Char) Matches one of the specified characters.
Public methodOneOf(Char, Char, Char) Matches one of the specified characters.
Public methodOneOf(Char, Char, Char, Char) Matches one of the specified characters.
Public methodOneOf(Char, Char, Char, Char, Char) Matches one of the specified characters.
Public methodOneOf(Char, Char, Char, Char, Char, Char) Matches one of the specified characters.
Public methodOneOf(Char, Char, Char, Char, Char, Char, Char) Matches one of the specified characters.
Public methodOneOf(Char, Char, Char, Char, Char, Char, Char, Char) Matches one of the specified characters.
Public methodOneOfLiterals Matches one of the specified optimized literal alternatives.
Public methodOption Optionally matches the specified expression.
(Inherited from PegBaseParser)
Public methodOptRepeat(PegBaseParserMatcher) Matches zero or more repetitions.
(Inherited from PegBaseParser)
Public methodOptRepeat(PegCharParserOptimizedCharset) Matches zero or more characters from the specified optimized character set.
Public methodPeek Performs a lookahead match without consuming input.
(Inherited from PegBaseParser)
Public methodPlusRepeat(PegBaseParserMatcher) Matches one or more repetitions.
(Inherited from PegBaseParser)
Public methodPlusRepeat(PegCharParserOptimizedCharset) Matches one or more characters from the specified optimized character set.
Public methodResetTree Clears the parse tree.
(Inherited from PegBaseParser)
Public methodRewind Resets the current parser position to the beginning of the source.
(Inherited from PegBaseParser)
Public methodSetErrorDestination Sets the destination for parser diagnostics.
(Inherited from PegBaseParser)
Public methodSetNodeCreator Sets the callback used to create parse tree nodes.
(Inherited from PegBaseParser)
Public methodSetSource Sets the current source text.
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.
(Inherited from PegBaseParser)
Public methodTreeAST(PegBaseParserCreator, PegBaseParserMatcher) Matches an anonymous abstract syntax tree node and stores it in the parse tree.
(Inherited from PegBaseParser)
Public methodTreeAST(Int32, PegBaseParserMatcher) Matches an abstract syntax tree node and stores it in the parse tree.
(Inherited from PegBaseParser)
Public methodTreeAST(PegBaseParserCreator, Int32, PegBaseParserMatcher) Matches an abstract syntax tree node and stores it in the parse tree.
(Inherited from PegBaseParser)
Public methodTreeChars(PegBaseParserMatcher) Matches character data and stores it as an anonymous tree node.
(Inherited from PegBaseParser)
Public methodTreeChars(PegBaseParserCreator, PegBaseParserMatcher) Matches character data and stores it as an anonymous tree node.
(Inherited from PegBaseParser)
Public methodTreeCharsWithId(Int32, PegBaseParserMatcher) Matches character data and stores it using the specified node identifier.
(Inherited from PegBaseParser)
Public methodTreeCharsWithId(PegBaseParserCreator, Int32, PegBaseParserMatcher) Matches character data and stores it using the specified creator and node identifier.
(Inherited from PegBaseParser)
Public methodTreeNodeToString Converts the specified tree node to a display string.
(Overrides PegBaseParserTreeNodeToString(PegNode))
Public methodTreeNT(PegBaseParserMatcher) Matches an anonymous nonterminal and stores it in the parse tree.
(Inherited from PegBaseParser)
Public methodTreeNT(PegBaseParserCreator, PegBaseParserMatcher) Matches an anonymous nonterminal and stores it in the parse tree.
(Inherited from PegBaseParser)
Public methodTreeNT(Int32, PegBaseParserMatcher) Matches a nonterminal and stores it in the parse tree.
(Inherited from PegBaseParser)
Public methodTreeNT(PegBaseParserCreator, Int32, PegBaseParserMatcher) Matches a nonterminal and stores it in the parse tree.
(Inherited from PegBaseParser)
Public methodWarning Reports a parser warning.
Top
Fields
 NameDescription
Protected fieldbMute_ A value indicating whether tree creation is muted.
(Inherited from PegBaseParser)
Protected fielderrOut_ The writer used for parser diagnostics.
(Inherited from PegBaseParser)
Protected fieldnodeCreator_ The callback used to create tree nodes.
(Inherited from PegBaseParser)
Protected fieldpos_ The current parser position.
(Inherited from PegBaseParser)
Protected fieldsrc_ The current character source.
Protected fieldsrcLen_ The length of the current source.
(Inherited from PegBaseParser)
Top
See Also