CodeInput

Description

sealed class Tinman.Core.Parsing.CodeInput

Derived from

CodeInputBase abstract

An input token source of char values.

The CodeInput supports the concepts of text lines. Two consecutive text lines are separated by \r\n, \n or \r tokens.

Public / Methods

FromChars


public static method FromChars → (3)

input in : char [ ]

[not-null]
The input token array.

inputOffset in : int32

[>=0]
Offset into input in to first input token.

inputLength in : int32

[>=0]
Length of input token array, starting at inputOffset in.

returns → CodeInput

The token input object.

Creates a new instance of CodeInput.

The given character array is used as is, no copying is performed.

FromString


public static method FromString → (1)

input in : string

[not-null]
The input string that represents the sequence of input tokens.

returns → CodeInput

The token input object.

Creates a new instance of CodeInput.