VBParser Class
Represents a parser for the Visual Basic language.
public class VBParser : DotNetParserBase, ILLParser, IParser, IKeyedObject
- Inheritance:
- object ParserBase LLParserBase DotNetParserBase object
- Implements:
- ILLParser IParser IKeyedObject
Constructors
VBParser(Grammar?)
Represents a parser for the Visual Basic language.
public VBParser(Grammar? grammar = null)
| Parameter | Type | Description |
|---|---|---|
| grammar | Grammar | The optional Grammar instance to use, with a new VBGrammar being created if none is specified. |
Methods
CreateTokenReader(ITextBufferReader)
Creates an ITokenReader that is used by the parser to read through tokens.
public override ITokenReader CreateTokenReader(ITextBufferReader reader)
| Parameter | Type | Description |
|---|---|---|
| reader | ITextBufferReader | The ITextBufferReader that provides access to the text buffer. |
Returns
InitializeParseData(LLParseData, IParserState)
Initializes a LLParseData using the specified IParserState.
protected override void InitializeParseData(LLParseData parseData, IParserState state)
| Parameter | Type | Description |
|---|---|---|
| parseData | LLParseData | The LLParseData to initialize. |
| state | IParserState | The IParserState to examine. |
Remarks
This method is called by default from the CreateParseData(IParseRequest, IParserState) method.
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. |
ParseExpression(string)
Parses the specified expression text.
public static IDotNetParseData? ParseExpression(string text)
| Parameter | Type | Description |
|---|---|---|
| text | string | The expression text to parse. |
Returns
- IDotNetParseData:
The IDotNetParseData that contains the parse results.
Inherited Members
- DotNetParserBase.CreateParseData(IParseRequest, IParserState)
- LLParserBase.CreateParserState(ITokenReader, IAstNodeBuilder, ITextSnapshot)
- 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()