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

IntLiteral Class

Represents an integer (int32) literal.

Syntax

public class IntLiteral : NumberLiteral

Remarks

Such literals may or may not have an 'i' 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, 11.2.8.2, 11.2.8.3, 11.2.8.4, 11.2.8.5, 11.2.8.6, 11.2.8.7, 11.2.8.9, 11.2.9.1, 11.2.9.2, 11.2.9.3, 11.2.9.4, 11.2.9.5, 11.2.9.6

Members

See Also: Inherited members from NumberLiteral.

Public Constructors

Constructs a new IntLiteral.
Constructs a new IntLiteral with the given value.
Constructs a new IntLiteral.

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 int . The numerical value of this 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.)

Public Methods

override
ToString () : string
Returns the dylan.NET syntax that is parsable into this literal.
override
ToString () : string
Outputs the Token in terms of dylan.NET syntax. (Inherited from dylan.NET.Tokenizer.AST.Tokens.Token.)
ToStringNoI () : string
Documentation for this section has not yet been entered.

Member Details

IntLiteral Constructor

Constructs a new IntLiteral.

Syntax

public IntLiteral ()

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, 11.2.8.2, 11.2.8.3, 11.2.8.4, 11.2.8.5, 11.2.8.6, 11.2.8.7, 11.2.8.9, 11.2.9.1, 11.2.9.2, 11.2.9.3, 11.2.9.4, 11.2.9.5, 11.2.9.6

IntLiteral Constructor

Constructs a new IntLiteral with the given value.

Syntax

public IntLiteral (int value)

Parameters

value
The integer value to assign to the IntLiteral.

Remarks

Sets the Value and LitTyp fields accodingly.

Requirements

Namespace: dylan.NET.Tokenizer.AST.Tokens.Literals
Assembly: tokenizer.AST (in tokenizer.AST.dll)
Assembly Versions: 11.2.8.9, 11.2.9.1, 11.2.9.2, 11.2.9.3, 11.2.9.4, 11.2.9.5, 11.2.9.6

IntLiteral Constructor

Constructs a new IntLiteral.

Syntax

public IntLiteral (string value)

Parameters

value

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, 11.2.8.2, 11.2.8.3, 11.2.8.4, 11.2.8.5, 11.2.8.6, 11.2.8.7, 11.2.8.9, 11.2.9.1, 11.2.9.2, 11.2.9.3, 11.2.9.4, 11.2.9.5, 11.2.9.6

NumVal Field

The numerical value of this literal.

Syntax

public int NumVal

Remarks

It is loaded using just the ldc.i4 set of opcodes.

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, 11.2.8.2, 11.2.8.3, 11.2.8.4, 11.2.8.5, 11.2.8.6, 11.2.8.7, 11.2.8.9, 11.2.9.1, 11.2.9.2, 11.2.9.3, 11.2.9.4, 11.2.9.5, 11.2.9.6

ToString Method

Returns the dylan.NET syntax that is parsable into this literal.

Syntax

public override string ToString ()

Returns

The dylan.NET syntactic equivalent to this literal ie. NumVal + "i".

Remarks

Requirements

Namespace: dylan.NET.Tokenizer.AST.Tokens.Literals
Assembly: tokenizer.AST (in tokenizer.AST.dll)
Assembly Versions: 11.2.8.9, 11.2.9.1, 11.2.9.2, 11.2.9.3, 11.2.9.4, 11.2.9.5, 11.2.9.6

ToStringNoI Method

Documentation for this section has not yet been entered.

Syntax

public string ToStringNoI ()

Returns

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: dylan.NET.Tokenizer.AST.Tokens.Literals
Assembly: tokenizer.AST (in tokenizer.AST.dll)
Assembly Versions: 11.2.9.6