In This Article

ParserBase Class

Represents the base implementation of a parser (syntax/semantic analyzer) for a language.

public abstract class ParserBase : IParser, IKeyedObject
Inheritance:
object object
Derived:
AntlrParser IronyParser LLParserBase
Implements:
IParser IKeyedObject

Constructors

ParserBase(string)

Represents the base implementation of a parser (syntax/semantic analyzer) for a language.

protected ParserBase(string key)
Parameter Type Description
key string

A string that identifies the parser.

Properties

Key

A string that identifies the parser, generally the related language name.

public string Key { get; protected set; }

Property Value

string

Methods

Parse(IParseRequest)

Performs a parsing operation using the parameters specified in the supplied IParseRequest and returns the resulting parse data.

public abstract IParseData? Parse(IParseRequest request)
Parameter Type Description
request IParseRequest

The IParseRequest that contains data about the requested parsing operation.

Returns

IParseData:

An IParseData that is the result of the parsing operation.

Remarks

A IParseRequestDispatcher typically calls this method when a queued parse request is ready to be processed.

Inherited Members

Extension Methods