Header menu logo FsLexYacc

LexBuffer<'char> Type

Input buffers consumed by lexers generated by fslex.exe

Instance members

Instance member Description

this.BufferLocalStore

Full Usage: this.BufferLocalStore

Returns: IDictionary<string, obj>

Dynamically typed, non-lexically scoped parameter table

Returns: IDictionary<string, obj>

this.DiscardInput

Full Usage: this.DiscardInput

Remove all input, though don't discard the current lexeme

this.EndPos

Full Usage: this.EndPos

The end position for the lexeme

this.IsPastEndOfStream

Full Usage: this.IsPastEndOfStream

True if the refill of the buffer ever failed , or if explicitly set to true.

this.Lexeme

Full Usage: this.Lexeme

Returns: 'char array

The matched string

Returns: 'char array

this.LexemeChar

Full Usage: this.LexemeChar

Parameters:
    arg0 : int

Returns: 'char

Fetch a particular character in the matched string

arg0 : int
Returns: 'char

this.LexemeLength

Full Usage: this.LexemeLength

Returns: int

The length of the matched string

Returns: int

this.StartPos

Full Usage: this.StartPos

The start position for the lexeme

Static members

Static member Description

LexBuffer.FromAsyncFunction(arg1)

Full Usage: LexBuffer.FromAsyncFunction(arg1)

Parameters:
    arg0 : 'char[] * int * int -> Async<int>

Returns: LexBuffer<'char>

Create a lex buffer that asynchronously reads character or byte inputs by using the given function

arg0 : 'char[] * int * int -> Async<int>
Returns: LexBuffer<'char>

LexBuffer.FromBinaryReader(arg1)

Full Usage: LexBuffer.FromBinaryReader(arg1)

Parameters:
Returns: LexBuffer<byte>

Create a lex buffer suitable for use with ASCII byte lexing that reads byte inputs from the given binary reader

arg0 : BinaryReader
Returns: LexBuffer<byte>

LexBuffer.FromBytes(arg1)

Full Usage: LexBuffer.FromBytes(arg1)

Parameters:
    arg0 : byte[]

Returns: LexBuffer<byte>

Create a lex buffer suitable for byte lexing that reads characters from the given array

arg0 : byte[]
Returns: LexBuffer<byte>

LexBuffer.FromChars(arg1)

Full Usage: LexBuffer.FromChars(arg1)

Parameters:
    arg0 : char[]

Returns: LexBuffer<char>

Create a lex buffer suitable for Unicode lexing that reads characters from the given array

arg0 : char[]
Returns: LexBuffer<char>

LexBuffer.FromFunction(arg1)

Full Usage: LexBuffer.FromFunction(arg1)

Parameters:
    arg0 : 'char[] * int * int -> int

Returns: LexBuffer<'char>

Create a lex buffer that reads character or byte inputs by using the given function

arg0 : 'char[] * int * int -> int
Returns: LexBuffer<'char>

LexBuffer.FromString(arg1)

Full Usage: LexBuffer.FromString(arg1)

Parameters:
    arg0 : string

Returns: LexBuffer<char>

Create a lex buffer suitable for Unicode lexing that reads characters from the given string

arg0 : string
Returns: LexBuffer<char>

LexBuffer.FromTextReader(arg1)

Full Usage: LexBuffer.FromTextReader(arg1)

Parameters:
Returns: LexBuffer<char>

Create a lex buffer suitable for use with a Unicode lexer that reads character inputs from the given text reader

arg0 : TextReader
Returns: LexBuffer<char>

LexBuffer.LexemeString(arg1)

Full Usage: LexBuffer.LexemeString(arg1)

Parameters:
Returns: string

Fast helper to turn the matched characters into a string, avoiding an intermediate array

arg0 : LexBuffer<char>
Returns: string

Type something to start searching.