In This Article

IDynamicLexer Interface

Provides the base requirements for a dynamic lexer, one that is pattern based.

public interface IDynamicLexer : IMergeableLexer, ILexer, IKeyedObject

Properties

CanLineFeedMatchAnyLineTerminator

Whether a line feed ('\n') character in regex patterns should match any line terminator, not just LF-only characters.

bool CanLineFeedMatchAnyLineTerminator { get; set; }

Property Value

bool:

The default value is true.

Remarks

This property simplifies regex patterns by replacing '\n' usage in two scenarios. First, a \n in a character class will add all other line terminators characters to the character class. Second, a \n outside of a character class will match any valid line terminator sequence.

See Also

DefaultLexicalState

The root ILexicalState for when the language is entered.

DynamicLexicalState? DefaultLexicalState { get; set; }

Property Value

DynamicLexicalState

See Also

Key

A string that identifies the lexer, generally the related language name.

string Key { get; set; }

Property Value

string

See Also

LexicalMacros

The collection of lexical macros.

IDynamicLexicalMacroCollection LexicalMacros { get; }

Property Value

IDynamicLexicalMacroCollection

See Also

LexicalStates

The collection of lexical states.

IDynamicLexicalStateCollection LexicalStates { get; }

Property Value

IDynamicLexicalStateCollection

See Also

Inherited Members

Extension Methods

See Also