Table of Contents

Class LanguageDefinition

Namespace
BlazOrbit.SyntaxHighlight.Builder
Assembly
BlazOrbit.SyntaxHighlight.dll

Defines the tokenization rules and behavior for a specific programming language.

public sealed class LanguageDefinition
Inheritance
object
LanguageDefinition

Properties

CaseSensitive

Gets a value indicating whether the language is case-sensitive.

public bool CaseSensitive { get; }

Property Value

bool

Name

Gets the name of the language.

public string Name { get; }

Property Value

string

Methods

Create(string)

Creates a new LanguageDefinitionBuilder for the specified language name.

public static LanguageDefinitionBuilder Create(string name)

Parameters

name string

The language name.

Returns

LanguageDefinitionBuilder

A new language definition builder.

Tokenize(string)

Tokenizes the specified input string into a list of tokens.

public IReadOnlyList<Token> Tokenize(string input)

Parameters

input string

The source code to tokenize.

Returns

IReadOnlyList<Token>

A read-only list of tokens.