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

BooleanLiteral Class

Represents a boolean literal.

Syntax

public class BooleanLiteral : Literal

Remarks

It is usually one of the literals 'true' or 'false'.

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 Literal.

Public Constructors

Constructs a new BooleanLiteral.
Constructs a new BooleanLiteral with the given value.
Cosntructs a new BooleanLiteral.

Public Fields

BoolVal bool . Holds the value of the literal.
Conv bool . Holds a flag indicating whether a conversion is to be made or not. (Inherited from Literal.)
DoNot bool . This flag indicates whether a negation of the vaue is required.
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.)
OrdOp string . Contains the order in which unary operations are to be done on the literal.
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.)

Member Details

BooleanLiteral Constructor

Constructs a new BooleanLiteral.

Syntax

public BooleanLiteral ()

Remarks

Also sets the LitTyp field to an instance of BooleanTok.

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

BooleanLiteral Constructor

Constructs a new BooleanLiteral with the given value.

Syntax

public BooleanLiteral (bool value)

Parameters

value
The boolean value to assign to the BooleanLiteral.

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

BooleanLiteral Constructor

Cosntructs a new BooleanLiteral.

Syntax

public BooleanLiteral (string value)

Parameters

value
The value to give the 'Value' field which is useless in this case.

Remarks

Also sets the LitTyp field to an instance of BooleanTok.

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

BoolVal Field

Holds the value of the literal.

Syntax

public bool BoolVal

Remarks

This value is loaded as the number 1 or 0 for true or false repectively.

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

DoNot Field

This flag indicates whether a negation of the vaue is required.

Syntax

public bool DoNot

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

OrdOp Field

Contains the order in which unary operations are to be done on the literal.

Syntax

public string OrdOp

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

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. "true" or "false".

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