Skip to main content
Version: 0.1.0

Class RCaronParser

Assembly: RCaron.dll
View Source
Declaration
csharp
public static class RCaronParser
Declaration
csharp
public static class RCaronParser

Properties

DefaultThrowHandler

View Source
Declaration
csharp
public static ParsingErrorThrowHandler DefaultThrowHandler { get; }
Declaration
csharp
public static ParsingErrorThrowHandler DefaultThrowHandler { get; }

FromPipelineObject

View Source
Declaration
csharp
public static object FromPipelineObject { get; }
Declaration
csharp
public static object FromPipelineObject { get; }

Methods

Parse(string, bool, bool, IParsingErrorHandler?)

View Source
Declaration
csharp
public static RCaronParserContext Parse(string text, bool returnIgnored = false, bool returnDescriptive = false, IParsingErrorHandler? errorHandler = null)
Declaration
csharp
public static RCaronParserContext Parse(string text, bool returnIgnored = false, bool returnDescriptive = false, IParsingErrorHandler? errorHandler = null)
Returns

RCaron.Parsing.RCaronParserContext

Parameters
TypeName
System.Stringtext
System.BooleanreturnIgnored
System.BooleanreturnDescriptive
RCaron.Parsing.IParsingErrorHandlererrorHandler

GetLine(PosToken[], ref int, in string, IParsingErrorHandler)

View Source
Declaration
csharp
public static Line GetLine(PosToken[] tokens, ref int i, in string text, IParsingErrorHandler errorHandler)
Declaration
csharp
public static Line GetLine(PosToken[] tokens, ref int i, in string text, IParsingErrorHandler errorHandler)
Returns

RCaron.Line

Parameters
TypeName
RCaron.PosToken[]tokens
System.Int32i
System.Stringtext
RCaron.Parsing.IParsingErrorHandlererrorHandler

DoFunction(IList<PosToken>, IParsingErrorHandler, int)

View Source
Declaration
csharp
public static (string name, FunctionArgument[]? arguments) DoFunction(IList<PosToken> tokens, IParsingErrorHandler errorHandler, int offset = 0)
Declaration
csharp
public static (string name, FunctionArgument[]? arguments) DoFunction(IList<PosToken> tokens, IParsingErrorHandler errorHandler, int offset = 0)
Returns

System.ValueTuple<System.String,RCaron.FunctionArgument[]>

Parameters
TypeName
System.Collections.Generic.IList<RCaron.PosToken>tokens
RCaron.Parsing.IParsingErrorHandlererrorHandler
System.Int32offset

EvaluateConstantToken(PosToken, IParsingErrorHandler)

View Source
Declaration
csharp
public static object? EvaluateConstantToken(PosToken token, IParsingErrorHandler errorHandler)
Declaration
csharp
public static object? EvaluateConstantToken(PosToken token, IParsingErrorHandler errorHandler)
Returns

System.Object

Parameters
TypeName
RCaron.PosTokentoken
RCaron.Parsing.IParsingErrorHandlererrorHandler