XmlParserBase Class
Provides an abstract base class of a parser for the XML
language.
public abstract class XmlParserBase : LLParserBase, ILLParser, IParser, IKeyedObject
- Inheritance:
- object ParserBase LLParserBase object
- Derived:
- XmlParser
- Implements:
- ILLParser IParser IKeyedObject
Constructors
XmlParserBase(Grammar)
Initializes a new instance of the XmlParserBase
class.
protected XmlParserBase(Grammar grammar)
Parameter | Type | Description |
---|---|---|
grammar | Grammar | The Grammar instance to use. |
Methods
CreateParseData(IParseRequest, IParserState)
Creates an IParseData for the specified IParserState.
protected override IParseData CreateParseData(IParseRequest request, IParserState state)
Parameter | Type | Description |
---|---|---|
request | IParseRequest | The IParseRequest that contains data about the requested parsing operation. |
state | IParserState | The IParserState to examine. |
Returns
- IParseData:
The IParseData that was created.
InitializeParserState(IParserState, IParseRequest)
Initializes the IParserState, allowing its CustomData property to be configured based on data from the IParseRequest, immediately prior to the parse operation running.
protected override void InitializeParserState(IParserState state, IParseRequest request)
Parameter | Type | Description |
---|---|---|
state | IParserState | The IParserState to initialize. |
request | IParseRequest | The IParseRequest that initiated the parse operation. |
Validate(IParseRequest, IParserState)
Validates XML if no parse errors were found.
protected virtual void Validate(IParseRequest request, IParserState state)
Parameter | Type | Description |
---|---|---|
request | IParseRequest | The IParseRequest that contains data about the requested parsing operation. |
state | IParserState | The IParserState to examine. |
Inherited Members
- LLParserBase.CreateParserState(ITokenReader, IAstNodeBuilder, ITextSnapshot)
- LLParserBase.CreateTokenReader(ITextBufferReader)
- LLParserBase.InitializeParseData(LLParseData, IParserState)
- LLParserBase.Parse(IParseRequest)
- LLParserBase.Grammar
- ParserBase.Key
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()