tokenizer.AST : dylan.NET.Tokenizer.AST.Tokens.Literals Namespace

FloatLiteral Class

Represents a single (float32) literal.

Syntax

public class FloatLiteral : NumberLiteral

Remarks

Such literals have an 'f' suffix.

Requirements

Namespace: dylan.NET.Tokenizer.AST.Tokens.Literals
Assembly: tokenizer.AST (in tokenizer.AST.dll)
Assembly Versions: 11.2.7.2, 11.2.7.3, 11.2.7.4, 11.2.7.5, 11.2.7.6, 11.2.7.7, 11.2.7.8, 11.2.7.9, 11.2.8.1

Members

See Also: Inherited members from NumberLiteral.

Public Constructors

Constructs a new FloatLiteral.
Constructs a new FloatLiteral.

Public Fields

Conv bool . Holds a flag indicating whether a conversion is to be made or not. (Inherited from Literal.)
DoNeg bool . Determines if a two's complement negation should be applied to the literal after loading. (Inherited from NumberLiteral.)
DoNot bool . Determines if a bitwise not should be applied on the literal after loading. (Inherited from NumberLiteral.)
Line int . The Line where this Token was found. (Inherited from dylan.NET.Tokenizer.AST.Tokens.Token.)
LitTyp dylan.NET.Tokenizer.AST.Tokens.TypeToks.TypeTok . Holds a TypeTok indicating the type of literal represented. The RefTyp field of the TypeTok is useful during code generation. (Inherited from Literal.)
NumVal float . The numeric value of the literal.
OrdOp string . Contains the order in which unary operations are to be done on the literal. (Inherited from NumberLiteral.)
TTok dylan.NET.Tokenizer.AST.Tokens.TypeToks.TypeTok . Holds a TypeTok indicating the type to convert to. (Inherited from Literal.)
Value string . The textual value of the Token. (Inherited from dylan.NET.Tokenizer.AST.Tokens.Token.)

Member Details

FloatLiteral Constructor

Constructs a new FloatLiteral.

Syntax

public FloatLiteral ()

Remarks

Requirements

Namespace: dylan.NET.Tokenizer.AST.Tokens.Literals
Assembly: tokenizer.AST (in tokenizer.AST.dll)
Assembly Versions: 11.2.7.2, 11.2.7.3, 11.2.7.4, 11.2.7.5, 11.2.7.6, 11.2.7.7, 11.2.7.8, 11.2.7.9, 11.2.8.1

FloatLiteral Constructor

Constructs a new FloatLiteral.

Syntax

public FloatLiteral (string value)

Parameters

value
This parameter is of no use in this case.

Remarks

Requirements

Namespace: dylan.NET.Tokenizer.AST.Tokens.Literals
Assembly: tokenizer.AST (in tokenizer.AST.dll)
Assembly Versions: 11.2.7.2, 11.2.7.3, 11.2.7.4, 11.2.7.5, 11.2.7.6, 11.2.7.7, 11.2.7.8, 11.2.7.9, 11.2.8.1

NumVal Field

The numeric value of the literal.

Syntax

public float NumVal

Remarks

It is loaded using the ldc.r4 opcode.

Requirements

Namespace: dylan.NET.Tokenizer.AST.Tokens.Literals
Assembly: tokenizer.AST (in tokenizer.AST.dll)
Assembly Versions: 11.2.7.2, 11.2.7.3, 11.2.7.4, 11.2.7.5, 11.2.7.6, 11.2.7.7, 11.2.7.8, 11.2.7.9, 11.2.8.1