Enhanced C#
Loyc library documentation
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
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...
 
ILiteralParser LiteralParser [get]
 Requests that a specific parser be used to convert literals into strings. More...
 

Property Documentation

ILiteralParser Loyc.Syntax.IParsingOptions.LiteralParser
get

Requests that a specific parser be used to convert literals into strings.

Support for this property is optional, and if it is supported, the parser may choose to use this parser only for type markers for which it does not have built-in support, or it may use it for all literals.

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.Les3LanguageService.Parse(), and Loyc.Syntax.Les.Les2LanguageService.Parse().

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(), and Loyc.Syntax.Les.Les2LanguageService.Parse().

int Loyc.Syntax.IParsingOptions.SpacesPerTab
get

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

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.