C# Class antlr.CharScanner

Inheritance: TokenStream, ICharScannerDebugSubject
显示文件 Open project: nachocove/DDay-iCal-Xamarin Class Usage Examples

Public Properties

Property Type Description
EOF_CHAR char

Protected Properties

Property Type Description
cached_LA1 char
cached_LA2 char
caseSensitive bool
caseSensitiveLiterals bool
commitToPath bool
inputState LexerSharedInputState
literals System.Collections.Hashtable
returnToken_ IToken
saveConsumedInput bool
tabsize int
text System.Text.StringBuilder
tokenCreator TokenCreator
traceDepth int

Public Methods

Method Description
CharScanner ( ) : System
CharScanner ( antlr.InputBuffer cb ) : System
CharScanner ( antlr.LexerSharedInputState sharedState ) : System
LA ( int i ) : char
append ( char c ) : void
append ( string s ) : void
commit ( ) : void
consume ( ) : void
consumeUntil ( antlr.collections.impl.BitSet bset ) : void
consumeUntil ( int c ) : void
getCaseSensitive ( ) : bool
getCaseSensitiveLiterals ( ) : bool
getColumn ( ) : int
getCommitToPath ( ) : bool
getFilename ( ) : string
getInputBuffer ( ) : InputBuffer
getInputState ( ) : LexerSharedInputState
getLine ( ) : int
getTabSize ( ) : int
getText ( ) : string
getTokenObject ( ) : IToken
mark ( ) : int
match ( antlr.collections.impl.BitSet b ) : void
match ( char c ) : void
match ( int c ) : void
match ( string s ) : void
matchNot ( char c ) : void
matchNot ( int c ) : void
matchRange ( char c1, char c2 ) : void
matchRange ( int c1, int c2 ) : void
newline ( ) : void
nextToken ( ) : IToken
panic ( ) : void
panic ( string s ) : void

This method is executed by ANTLR internally when it detected an illegal state that cannot be recovered from. The previous implementation of this method called Environment.Exit and writes directly to Console.Error, which is usually not appropriate when a translator is embedded into a larger application.

recover ( RecognitionException ex, antlr.collections.impl.BitSet tokenSet ) : void
refresh ( ) : void
reportError ( RecognitionException ex ) : void
reportError ( string s ) : void
reportWarning ( string s ) : void
resetState ( InputBuffer ib ) : void
resetState ( System.IO.Stream s ) : void
resetState ( System.IO.TextReader tr ) : void
resetText ( ) : void
rewind ( int pos ) : void
setCaseSensitive ( bool t ) : void
setColumn ( int c ) : void
setCommitToPath ( bool commit ) : void
setFilename ( string f ) : void
setInputState ( LexerSharedInputState state ) : void
setLine ( int line ) : void
setTabSize ( int size ) : void
setText ( string s ) : void
setTokenCreator ( TokenCreator tokenCreator ) : void
setTokenObjectClass ( string cl ) : void
tab ( ) : void
testLiteralsTable ( int ttype ) : int
testLiteralsTable ( string someText, int ttype ) : int
toLower ( int c ) : char
traceIn ( string rname ) : void
traceIndent ( ) : void
traceOut ( string rname ) : void
uponEOF ( ) : void

Protected Methods

Method Description
makeToken ( int t ) : IToken

Method Details

CharScanner() public method

public CharScanner ( ) : System
return System

CharScanner() public method

public CharScanner ( antlr.InputBuffer cb ) : System
cb antlr.InputBuffer
return System

CharScanner() public method

public CharScanner ( antlr.LexerSharedInputState sharedState ) : System
sharedState antlr.LexerSharedInputState
return System

LA() public method

public LA ( int i ) : char
i int
return char

append() public method

public append ( char c ) : void
c char
return void

append() public method

public append ( string s ) : void
s string
return void

commit() public method

public commit ( ) : void
return void

consume() public method

public consume ( ) : void
return void

consumeUntil() public method

public consumeUntil ( antlr.collections.impl.BitSet bset ) : void
bset antlr.collections.impl.BitSet
return void

consumeUntil() public method

public consumeUntil ( int c ) : void
c int
return void

getCaseSensitive() public method

public getCaseSensitive ( ) : bool
return bool

getCaseSensitiveLiterals() public method

public getCaseSensitiveLiterals ( ) : bool
return bool

getColumn() public method

public getColumn ( ) : int
return int

getCommitToPath() public method

public getCommitToPath ( ) : bool
return bool

getFilename() public method

public getFilename ( ) : string
return string

getInputBuffer() public method

public getInputBuffer ( ) : InputBuffer
return InputBuffer

getInputState() public method

public getInputState ( ) : LexerSharedInputState
return LexerSharedInputState

getLine() public method

public getLine ( ) : int
return int

getTabSize() public method

public getTabSize ( ) : int
return int

getText() public method

public getText ( ) : string
return string

getTokenObject() public method

public getTokenObject ( ) : IToken
return IToken

makeToken() protected method

protected makeToken ( int t ) : IToken
t int
return IToken

mark() public method

public mark ( ) : int
return int

match() public method

public match ( antlr.collections.impl.BitSet b ) : void
b antlr.collections.impl.BitSet
return void

match() public method

public match ( char c ) : void
c char
return void

match() public method

public match ( int c ) : void
c int
return void

match() public method

public match ( string s ) : void
s string
return void

matchNot() public method

public matchNot ( char c ) : void
c char
return void

matchNot() public method

public matchNot ( int c ) : void
c int
return void

matchRange() public method

public matchRange ( char c1, char c2 ) : void
c1 char
c2 char
return void

matchRange() public method

public matchRange ( int c1, int c2 ) : void
c1 int
c2 int
return void

newline() public method

public newline ( ) : void
return void

nextToken() public method

public nextToken ( ) : IToken
return IToken

panic() public method

public panic ( ) : void
return void

panic() public method

This method is executed by ANTLR internally when it detected an illegal state that cannot be recovered from. The previous implementation of this method called Environment.Exit and writes directly to Console.Error, which is usually not appropriate when a translator is embedded into a larger application.
public panic ( string s ) : void
s string Error message.
return void

recover() public method

public recover ( RecognitionException ex, antlr.collections.impl.BitSet tokenSet ) : void
ex RecognitionException
tokenSet antlr.collections.impl.BitSet
return void

refresh() public method

public refresh ( ) : void
return void

reportError() public method

public reportError ( RecognitionException ex ) : void
ex RecognitionException
return void

reportError() public method

public reportError ( string s ) : void
s string
return void

reportWarning() public method

public reportWarning ( string s ) : void
s string
return void

resetState() public method

public resetState ( InputBuffer ib ) : void
ib InputBuffer
return void

resetState() public method

public resetState ( System.IO.Stream s ) : void
s System.IO.Stream
return void

resetState() public method

public resetState ( System.IO.TextReader tr ) : void
tr System.IO.TextReader
return void

resetText() public method

public resetText ( ) : void
return void

rewind() public method

public rewind ( int pos ) : void
pos int
return void

setCaseSensitive() public method

public setCaseSensitive ( bool t ) : void
t bool
return void

setColumn() public method

public setColumn ( int c ) : void
c int
return void

setCommitToPath() public method

public setCommitToPath ( bool commit ) : void
commit bool
return void

setFilename() public method

public setFilename ( string f ) : void
f string
return void

setInputState() public method

public setInputState ( LexerSharedInputState state ) : void
state LexerSharedInputState
return void

setLine() public method

public setLine ( int line ) : void
line int
return void

setTabSize() public method

public setTabSize ( int size ) : void
size int
return void

setText() public method

public setText ( string s ) : void
s string
return void

setTokenCreator() public method

public setTokenCreator ( TokenCreator tokenCreator ) : void
tokenCreator TokenCreator
return void

setTokenObjectClass() public method

public setTokenObjectClass ( string cl ) : void
cl string
return void

tab() public method

public tab ( ) : void
return void

testLiteralsTable() public method

public testLiteralsTable ( int ttype ) : int
ttype int
return int

testLiteralsTable() public method

public testLiteralsTable ( string someText, int ttype ) : int
someText string
ttype int
return int

toLower() public method

public toLower ( int c ) : char
c int
return char

traceIn() public method

public traceIn ( string rname ) : void
rname string
return void

traceIndent() public method

public traceIndent ( ) : void
return void

traceOut() public method

public traceOut ( string rname ) : void
rname string
return void

uponEOF() public method

public uponEOF ( ) : void
return void

Property Details

EOF_CHAR public_oe static_oe property

public static char EOF_CHAR
return char

cached_LA1 protected_oe property

Used for caching lookahead characters.
protected char cached_LA1
return char

cached_LA2 protected_oe property

protected char cached_LA2
return char

caseSensitive protected_oe property

protected bool caseSensitive
return bool

caseSensitiveLiterals protected_oe property

protected bool caseSensitiveLiterals
return bool

commitToPath protected_oe property

protected bool commitToPath
return bool

inputState protected_oe property

protected LexerSharedInputState inputState
return LexerSharedInputState

literals protected_oe property

protected System.Collections.Hashtable literals
return System.Collections.Hashtable

returnToken_ protected_oe property

protected IToken returnToken_
return IToken

saveConsumedInput protected_oe property

protected bool saveConsumedInput
return bool

tabsize protected_oe property

protected int tabsize
return int

text protected_oe property

protected System.Text.StringBuilder text
return System.Text.StringBuilder

tokenCreator protected_oe property

Used for creating Token instances.
protected TokenCreator tokenCreator
return TokenCreator

traceDepth protected_oe property

protected int traceDepth
return int