C# Class LispEngine.Lexing.Scanner

Show file Open project: Patient0/FirstClassLisp Class Usage Examples

Public Methods

Method Description
Create ( string s ) : Scanner
GetNext ( ) : Token
Recover ( ) : IEnumerable
Scan ( ) : IEnumerable
Scanner ( TextReader input ) : System
fail ( string fmt ) : ParseException

Private Methods

Method Description
isDigit ( ) : bool
isExponent ( ) : bool
isInitial ( ) : bool
isLetter ( ) : bool
isOneOf ( string chars ) : bool
isSpecialInitial ( ) : bool
isSpecialSubsequent ( ) : bool
isSubsequent ( ) : bool
isWhiteSpace ( ) : bool
leadingFloat ( Scanner s ) : TokenType?
match ( TokenType tokenType, Action matchDelegate ) : Matcher
match ( ) : Token
matchDot ( Scanner s ) : TokenType?
matchHash ( Scanner s ) : TokenType?
matchNumber ( Scanner s ) : TokenType?
matchPredicate ( TokenType tokenType, bool>.Func predicate ) : Matcher
matchSingle ( TokenType tokenType, char c ) : Matcher
matchSymbol ( Scanner s ) : bool
more ( ) : bool
peek ( ) : char
readChar ( ) : void
readExponent ( Scanner s ) : TokenType?
remainingFloat ( Scanner s ) : TokenType?
tok ( TokenType type ) : Token
unsignedNumber ( Scanner s ) : TokenType?

Method Details

Create() public static method

public static Create ( string s ) : Scanner
s string
return Scanner

GetNext() public method

public GetNext ( ) : Token
return Token

Recover() public method

public Recover ( ) : IEnumerable
return IEnumerable

Scan() public method

public Scan ( ) : IEnumerable
return IEnumerable

Scanner() public method

public Scanner ( TextReader input ) : System
input TextReader
return System

fail() public method

public fail ( string fmt ) : ParseException
fmt string
return LispEngine.Parsing.ParseException