C# Class Loyc.Syntax.Les.Les2LanguageService

The Value property provides easy access to the lexer, parser and printer for Loyc Expression Syntax (LES).
LES overview: http://loyc.net/les
Inheritance: IParsingService, ILNodePrinter
ファイルを表示 Open project: qwertie/ecsharp

Public Properties

Property Type Description
Value Les2LanguageService

Public Methods

Method Description
Parse ( ICharSource text, string fileName, IMessageSink msgs, ParsingMode inputType = null, bool preserveComments = true ) : IListSource
Parse ( ILexer input, IMessageSink msgs, ParsingMode inputType = null, bool preserveComments = true ) : IListSource
Parse ( IListSource input, ISourceFile file, IMessageSink msgs, ParsingMode inputType = null ) : IListSource
Print ( IEnumerable nodes, StringBuilder target, IMessageSink msgs = null, ParsingMode mode = null, ILNodePrinterOptions options = null ) : void
Print ( ILNode node, StringBuilder target, IMessageSink sink = null, ParsingMode mode = null, ILNodePrinterOptions options = null ) : void
ToString ( ) : string
Tokenize ( ICharSource text, string fileName, IMessageSink msgs ) : ILexer

Private Methods

Method Description
ILNodePrinter ( LNode node, StringBuilder target, IMessageSink sink, ParsingMode mode, ILNodePrinterOptions options ) : void

Method Details

Parse() public method

public Parse ( ICharSource text, string fileName, IMessageSink msgs, ParsingMode inputType = null, bool preserveComments = true ) : IListSource
text ICharSource
fileName string
msgs IMessageSink
inputType ParsingMode
preserveComments bool
return IListSource

Parse() public method

public Parse ( ILexer input, IMessageSink msgs, ParsingMode inputType = null, bool preserveComments = true ) : IListSource
input ILexer
msgs IMessageSink
inputType ParsingMode
preserveComments bool
return IListSource

Parse() public method

public Parse ( IListSource input, ISourceFile file, IMessageSink msgs, ParsingMode inputType = null ) : IListSource
input IListSource
file ISourceFile
msgs IMessageSink
inputType ParsingMode
return IListSource

Print() public method

public Print ( IEnumerable nodes, StringBuilder target, IMessageSink msgs = null, ParsingMode mode = null, ILNodePrinterOptions options = null ) : void
nodes IEnumerable
target StringBuilder
msgs IMessageSink
mode ParsingMode
options ILNodePrinterOptions
return void

Print() public method

public Print ( ILNode node, StringBuilder target, IMessageSink sink = null, ParsingMode mode = null, ILNodePrinterOptions options = null ) : void
node ILNode
target StringBuilder
sink IMessageSink
mode ParsingMode
options ILNodePrinterOptions
return void

ToString() public method

public ToString ( ) : string
return string

Tokenize() public method

public Tokenize ( ICharSource text, string fileName, IMessageSink msgs ) : ILexer
text ICharSource
fileName string
msgs IMessageSink
return ILexer

Property Details

Value public_oe static_oe property

public static Les2LanguageService,Loyc.Syntax.Les Value
return Les2LanguageService