LexBuffer<'Char> Type
Input buffers consumed by lexers generated by
Instance members
Instance member |
Description
|
|
Dynamically typed, non-lexically scoped parameter table.
|
|
Logs a recoverable error if a language feature is unsupported, at the specified range.
|
Full Usage:
this.EndPos
|
The end position for the lexeme. |
Full Usage:
this.IsPastEndOfStream
|
True if the refill of the buffer ever failed , or if explicitly set to True. |
|
Get the language version being supported
|
Full Usage:
this.LexemeChar
Parameters:
int
Returns: 'Char
|
Get single character of matched string
|
Full Usage:
this.LexemeContains
Parameters:
'Char
Returns: bool
|
Determine if Lexeme contains a specific character
|
|
The currently matched text as a Span, it is only valid until the lexer is advanced
|
Full Usage:
this.ReportLibraryOnlyFeatures
Returns: bool
|
Determines if the parser can report FSharpCore library-only features.
|
Full Usage:
this.StartPos
|
The start position for the lexeme. |
Full Usage:
this.StrictIndentation
Returns: bool option
|
|
|
Static members
Static member |
Description
|
Full Usage:
LexBuffer.FromChars(reportLibraryOnlyFeatures, langVersion, strictIndentation, arg4)
Parameters:
bool
langVersion : LanguageVersion
strictIndentation : bool option
arg3 : char[]
Returns: LexBuffer<char>
|
Create a lex buffer suitable for Unicode lexing that reads characters from the given array. Important: does take ownership of the array.
|
Full Usage:
LexBuffer.FromFunction(reportLibraryOnlyFeatures, langVersion, strictIndentation, arg4)
Parameters:
bool
langVersion : LanguageVersion
strictIndentation : bool option
arg3 : 'Char[] * int * int -> int
Returns: LexBuffer<'Char>
|
Create a lex buffer that reads character or byte inputs by using the given function.
|
Full Usage:
LexBuffer.FromSourceText(reportLibraryOnlyFeatures, langVersion, strictIndentation, arg4)
Parameters:
bool
langVersion : LanguageVersion
strictIndentation : bool option
arg3 : ISourceText
Returns: LexBuffer<char>
|
Create a lex buffer backed by source text.
|
|
Fast helper to turn the matched characters into a string, avoiding an intermediate array.
|