C# Class Antlr4.StringTemplate.Compiler.TemplateLexer

Inheritance: ITokenSource
Show file Open project: antlr/antlrcs Class Usage Examples

Public Properties

Property Type Description
SkipToken IToken
subtemplateDepth int

Public Methods

Method Description
Emit ( IToken token ) : void
IsIDLetter ( char c ) : bool
IsIDStartLetter ( char c ) : bool
IsUnicodeLetter ( char c ) : bool
IsWS ( char c ) : bool
Match ( char x ) : void
NewToken ( int ttype ) : IToken
NewToken ( int ttype, string text ) : IToken
NewToken ( int ttype, string text, int pos ) : IToken
NewTokenFromPreviousChar ( int ttype ) : IToken
NextToken ( ) : IToken
NextTokenImpl ( ) : IToken
TemplateLexer ( Antlr4.StringTemplate.Misc.ErrorManager errMgr, ICharStream input, IToken templateToken ) : System.Collections.Generic
TemplateLexer ( Antlr4.StringTemplate.Misc.ErrorManager errMgr, ICharStream input, IToken templateToken, char delimiterStartChar, char delimiterStopChar ) : System.Collections.Generic
TemplateLexer ( ICharStream input ) : System.Collections.Generic

Protected Methods

Method Description
Consume ( ) : void
NextTokenInside ( ) : IToken
NextTokenOutside ( ) : IToken

Private Methods

Method Description
ConsumeLineBreak ( ) : void
ConsumeWhitespace ( ) : void
GetCharString ( char c ) : string
MatchComment ( ) : IToken
MatchEscape ( ) : IToken
MatchIdentifier ( ) : IToken
MatchString ( ) : IToken
MatchSubTemplate ( ) : IToken
MatchText ( ) : IToken
MatchUnicode ( ) : IToken

Method Details

Consume() protected method

protected Consume ( ) : void
return void

Emit() public method

public Emit ( IToken token ) : void
token IToken
return void

IsIDLetter() public static method

public static IsIDLetter ( char c ) : bool
c char
return bool

IsIDStartLetter() public static method

public static IsIDStartLetter ( char c ) : bool
c char
return bool

IsUnicodeLetter() public static method

public static IsUnicodeLetter ( char c ) : bool
c char
return bool

IsWS() public static method

public static IsWS ( char c ) : bool
c char
return bool

Match() public method

public Match ( char x ) : void
x char
return void

NewToken() public method

public NewToken ( int ttype ) : IToken
ttype int
return IToken

NewToken() public method

public NewToken ( int ttype, string text ) : IToken
ttype int
text string
return IToken

NewToken() public method

public NewToken ( int ttype, string text, int pos ) : IToken
ttype int
text string
pos int
return IToken

NewTokenFromPreviousChar() public method

public NewTokenFromPreviousChar ( int ttype ) : IToken
ttype int
return IToken

NextToken() public method

public NextToken ( ) : IToken
return IToken

NextTokenImpl() public method

public NextTokenImpl ( ) : IToken
return IToken

NextTokenInside() protected method

protected NextTokenInside ( ) : IToken
return IToken

NextTokenOutside() protected method

protected NextTokenOutside ( ) : IToken
return IToken

TemplateLexer() public method

public TemplateLexer ( Antlr4.StringTemplate.Misc.ErrorManager errMgr, ICharStream input, IToken templateToken ) : System.Collections.Generic
errMgr Antlr4.StringTemplate.Misc.ErrorManager
input ICharStream
templateToken IToken
return System.Collections.Generic

TemplateLexer() public method

public TemplateLexer ( Antlr4.StringTemplate.Misc.ErrorManager errMgr, ICharStream input, IToken templateToken, char delimiterStartChar, char delimiterStopChar ) : System.Collections.Generic
errMgr Antlr4.StringTemplate.Misc.ErrorManager
input ICharStream
templateToken IToken
delimiterStartChar char
delimiterStopChar char
return System.Collections.Generic

TemplateLexer() public method

public TemplateLexer ( ICharStream input ) : System.Collections.Generic
input ICharStream
return System.Collections.Generic

Property Details

SkipToken public static property

public static IToken SkipToken
return IToken

subtemplateDepth public property

public int subtemplateDepth
return int