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

StringLiteral Class

Represents a string literal.

Syntax

public class StringLiteral : Literal

Remarks

All strings specified in dylan.NET source code are converted to instances of this class.

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 StringLiteral.
Constructs a new StringLiteral.

Public Fields

Conv bool . Holds a flag indicating whether a conversion is to be made or not. (Inherited from Literal.)
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.)
MemberAccessFlg bool . This flag when set indicates that chaining must occur after this literal is loaded.
MemberToAccess dylan.NET.Tokenizer.AST.Tokens.Token . The token representing the method/field to be loaded using the instance of the loaded literal.
OrdOp string . Indicates the order in which the unary operators get applied in.
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

StringLiteral Constructor

Constructs a new StringLiteral.

Syntax

public StringLiteral ()

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

StringLiteral Constructor

Constructs a new StringLiteral.

Syntax

public StringLiteral (string value)

Parameters

value
The value to give to the 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, 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

MemberAccessFlg Field

This flag when set indicates that chaining must occur after this literal is loaded.

Syntax

public bool MemberAccessFlg

Remarks

The MemberToAccess fied must be given value if this is set.

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

MemberToAccess Field

The token representing the method/field to be loaded using the instance of the loaded literal.

Syntax

Remarks

For this field to have significance the MemberAccessFlg must be set to 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, 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

Indicates the order in which the unary operators get applied in.

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. "\"" + Value + "\"".

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