C# Class Irony.Compiler.NumberLiteral

Inheritance: CompoundTerminalBase
Mostra file Open project: Zepheus/Fiesta_Utils Class Usage Examples

Public Properties

Property Type Description
DecimalSeparator char
DefaultFloatType TypeCode
DefaultIntTypes TypeCode[]
ExponentSymbols string
QuickParseTerminators string

Public Methods

Method Description
DivRem ( int a, int b, int &result ) : int
GetFirsts ( ) : IList
Init ( Grammar grammar ) : void
NumberLiteral ( string name ) : System
NumberLiteral ( string name, TermOptions options ) : System
NumberLiteral ( string name, string displayName ) : System

Protected Methods

Method Description
ConvertValue ( ScanDetails details ) : bool
QuickParse ( Irony.Compiler.CompilerContext context, ISourceStream source ) : Token
ReadBody ( ISourceStream source, ScanDetails details ) : bool
ReadPrefix ( ISourceStream source, ScanDetails details ) : void
ReadSuffix ( ISourceStream source, ScanDetails details ) : void

Private Methods

Method Description
ConvertToBigInteger ( ScanDetails details ) : bool
ConvertToFloat ( TypeCode typeCode, ScanDetails details ) : bool
GetDigits ( ScanDetails details ) : string
GetRadix ( ScanDetails details ) : int
GetSafeWordLength ( ScanDetails details ) : int
GetSafeWordRadix ( ScanDetails details ) : ulong
GetSectionCount ( int stringLength, int safeWordLength ) : int
IsIntegerCode ( TypeCode code ) : bool
QuickConvertToDouble ( ScanDetails details ) : bool
QuickConvertToInt32 ( ScanDetails details ) : bool
TryCastToIntegerType ( TypeCode typeCode, ScanDetails details ) : bool
TryConvertToUlong ( ScanDetails details ) : bool

Method Details

ConvertValue() protected method

protected ConvertValue ( ScanDetails details ) : bool
details ScanDetails
return bool

DivRem() public static method

public static DivRem ( int a, int b, int &result ) : int
a int
b int
result int
return int

GetFirsts() public method

public GetFirsts ( ) : IList
return IList

Init() public method

public Init ( Grammar grammar ) : void
grammar Grammar
return void

NumberLiteral() public method

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

NumberLiteral() public method

public NumberLiteral ( string name, TermOptions options ) : System
name string
options TermOptions
return System

NumberLiteral() public method

public NumberLiteral ( string name, string displayName ) : System
name string
displayName string
return System

QuickParse() protected method

protected QuickParse ( Irony.Compiler.CompilerContext context, ISourceStream source ) : Token
context Irony.Compiler.CompilerContext
source ISourceStream
return Token

ReadBody() protected method

protected ReadBody ( ISourceStream source, ScanDetails details ) : bool
source ISourceStream
details ScanDetails
return bool

ReadPrefix() protected method

protected ReadPrefix ( ISourceStream source, ScanDetails details ) : void
source ISourceStream
details ScanDetails
return void

ReadSuffix() protected method

protected ReadSuffix ( ISourceStream source, ScanDetails details ) : void
source ISourceStream
details ScanDetails
return void

Property Details

DecimalSeparator public_oe property

public char DecimalSeparator
return char

DefaultFloatType public_oe property

public TypeCode DefaultFloatType
return TypeCode

DefaultIntTypes public_oe property

public TypeCode[] DefaultIntTypes
return TypeCode[]

ExponentSymbols public_oe property

public string ExponentSymbols
return string

QuickParseTerminators public_oe property

public string QuickParseTerminators
return string