In This Article

IronyParser Class

Represents an IParser (syntax/semantic analyzer) implementation that can be used to call an Irony Parser.

public class IronyParser : ParserBase, IParser, IKeyedObject
Inheritance:
object ParserBase object
Implements:
IParser IKeyedObject

Constructors

IronyParser(Grammar)

Initializes an instance of the class.

public IronyParser(Grammar grammar)
Parameter Type Description
grammar Grammar

The Irony Irony.Parsing.Grammar to use.

Properties

Parser

The Irony parser that is used by this class.

public Parser Parser { get; }

Property Value

Parser

Methods

Parse(IParseRequest)

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

public override 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