Enhanced C#
Language of your choice: library documentation
Properties | List of all members
Loyc.Syntax.IParsingOptions Interface Reference

A set of relatively universal parsing options that IParsingServices should understand. More...


Source file:
Inheritance diagram for Loyc.Syntax.IParsingOptions:
Loyc.Syntax.ParsingOptions

Remarks

A set of relatively universal parsing options that IParsingServices should understand.

See also
ParsingOptions

Properties

ParsingMode Mode [get]
 A global::Loyc.Syntax.ParsingMode value indicating which part of the language is being parsed (e.g. expressions, or an entire file). More...
 
bool PreserveComments [get]
 Whether to preserve comments and newlines by attaching trivia attributes to the output. If IParsingService.CanPreserveComments is false, this parameter will have no effect. More...
 
bool SurfaceScanOnly [get]
 Indicates that the parsing service is only being used for syntax highlighting, so the content of literals is not important. The produced tokens or LNode can claim every literal is null. More...
 
int SpacesPerTab [get]
 If tabs are significant, this option controls the number of spaces a single tab should be equated with. More...
 

Property Documentation

◆ Mode

ParsingMode Loyc.Syntax.IParsingOptions.Mode
get

A global::Loyc.Syntax.ParsingMode value indicating which part of the language is being parsed (e.g. expressions, or an entire file).

Referenced by Loyc.Syntax.Les.Les2LanguageService.Parse(), Loyc.Syntax.Les.Les3LanguageService.Parse(), and Loyc.Ecs.EcsLanguageService.Parse().

◆ PreserveComments

bool Loyc.Syntax.IParsingOptions.PreserveComments
get

Whether to preserve comments and newlines by attaching trivia attributes to the output. If IParsingService.CanPreserveComments is false, this parameter will have no effect.

Referenced by Loyc.Syntax.Les.Les3LanguageService.Parse(), Loyc.Syntax.Les.Les2LanguageService.Parse(), and Loyc.Ecs.EcsLanguageService.Parse().

◆ SpacesPerTab

int Loyc.Syntax.IParsingOptions.SpacesPerTab
get

If tabs are significant, this option controls the number of spaces a single tab should be equated with.

Referenced by Loyc.Syntax.Les.Les2LanguageService.Tokenize(), Loyc.Syntax.Les.Les3LanguageService.Tokenize(), and Loyc.Ecs.EcsLanguageService.Tokenize().

◆ SurfaceScanOnly

bool Loyc.Syntax.IParsingOptions.SurfaceScanOnly
get

Indicates that the parsing service is only being used for syntax highlighting, so the content of literals is not important. The produced tokens or LNode can claim every literal is null.

Referenced by Loyc.Syntax.Les.Les2LanguageService.Tokenize().