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

Literal Class

Represents a dylan.NET literal.

Syntax

public class Literal : dylan.NET.Tokenizer.AST.Tokens.Token

Remarks

All literals are to inherit this class to make sure they are properly processed.

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

Members

See Also: Inherited members from dylan.NET.Tokenizer.AST.Tokens.Token.

Public Constructors

Constructs a new Literal.
Constructs a new Literal.

Public Fields

Conv bool . Holds a flag indicating whether a conversion is to be made or not.
Line int . The Line where this Token was found. (Inherited from 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.
TTok dylan.NET.Tokenizer.AST.Tokens.TypeToks.TypeTok . Holds a TypeTok indicating the type to convert to.
Value string . The textual value of the Token. (Inherited from Token.)

Member Details

Literal Constructor

Constructs a new Literal.

Syntax

public Literal ()

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

Literal Constructor

Constructs a new Literal.

Syntax

public Literal (string value)

Parameters

value
The string to assign to the Value field.

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

Conv Field

Holds a flag indicating whether a conversion is to be made or not.

Syntax

public bool Conv

Remarks

Set this if a conversion is required. Also give a value to TTok to indicate the destination type.

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

LitTyp Field

Holds a TypeTok indicating the type of literal represented. The RefTyp field of the TypeTok is useful during code generation.

Syntax

Remarks

This vaue is automatically assigned by the constructor of inheriting classes. Please do not change it.

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

TTok Field

Holds a TypeTok indicating the type to convert to.

Syntax

Remarks

For the value of this field to have effects the Conv field is to be set true.

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