C# Class ExamplesFx.ColorCode.Parsing.LanguageParser

Inheritance: ILanguageParser
Show file Open project: MarcosMeli/ExamplesFx

Public Methods

Method Description
LanguageParser ( ILanguageCompiler languageCompiler, ILanguageRepository languageRepository ) : System
Parse ( string sourceCode, ILanguage language, Action parseHandler ) : void

Private Methods

Method Description
AddScopeToNestedScopes ( Scope scope, Scope &currentScope, ICollection capturedStyleTree ) : void
AppendCapturedStylesForNestedLanguage ( Capture regexCapture, int offset, string nestedLanguageId, ICollection capturedStyles ) : void
AppendCapturedStylesForRegexCapture ( Capture regexCapture, int currentIndex, string styleName, ICollection capturedStyles ) : void
CreateCapturedStyleTree ( IList capturedStyles ) : List
GetCapturedStyles ( Match regexMatch, int currentIndex, CompiledLanguage compiledLanguage ) : List
IncreaseCapturedStyleIndicies ( IList capturedStyles, int amountToIncrease ) : void
Parse ( string sourceCode, CompiledLanguage compiledLanguage, Action parseHandler ) : void

Method Details

LanguageParser() public method

public LanguageParser ( ILanguageCompiler languageCompiler, ILanguageRepository languageRepository ) : System
languageCompiler ILanguageCompiler
languageRepository ILanguageRepository
return System

Parse() public method

public Parse ( string sourceCode, ILanguage language, Action parseHandler ) : void
sourceCode string
language ILanguage
parseHandler Action
return void