C# Class Irony.Parsing.FreeTextLiteral

Inheritance: Irony.Parsing.Terminal
显示文件 Open project: o2platform/O2.Platform.Projects Class Usage Examples

Public Properties

Property Type Description
Escapes StringDictionary
Firsts StringSet
FreeTextOptions FreeTextOptions
Terminators StringSet

Public Methods

Method Description
FreeTextLiteral ( string name ) : System
FreeTextLiteral ( string name, FreeTextOptions freeTextOptions ) : System
GetFirsts ( ) : IList
Init ( Irony.Parsing.GrammarData grammarData ) : void
TryMatch ( ParsingContext context, ISourceStream source ) : Token

Private Methods

Method Description
CheckEscape ( ISourceStream source, string &tokenText ) : bool
CheckTerminators ( ISourceStream source, string &tokenText ) : bool
IsSet ( FreeTextOptions option ) : bool

Method Details

FreeTextLiteral() public method

public FreeTextLiteral ( string name ) : System
name string
return System

FreeTextLiteral() public method

public FreeTextLiteral ( string name, FreeTextOptions freeTextOptions ) : System
name string
freeTextOptions FreeTextOptions
return System

GetFirsts() public method

public GetFirsts ( ) : IList
return IList

Init() public method

public Init ( Irony.Parsing.GrammarData grammarData ) : void
grammarData Irony.Parsing.GrammarData
return void

TryMatch() public method

public TryMatch ( ParsingContext context, ISourceStream source ) : Token
context ParsingContext
source ISourceStream
return Token

Property Details

Escapes public_oe property

public StringDictionary Escapes
return StringDictionary

Firsts public_oe property

public StringSet Firsts
return StringSet

FreeTextOptions public_oe property

public FreeTextOptions FreeTextOptions
return FreeTextOptions

Terminators public_oe property

public StringSet Terminators
return StringSet