Show / Hide Table of Contents

    Struct IntrinsicNamespace

    Represents a namespace of intrinsics.

    Inherited Members
    System.ValueType.Equals(System.Object)
    System.ValueType.GetHashCode()
    System.ValueType.ToString()
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetType()
    Namespace: Flame.Compiler.Instructions
    Assembly: Flame.Compiler.dll
    Syntax
    public struct IntrinsicNamespace

    Constructors

    | Improve this Doc View Source

    IntrinsicNamespace(String)

    Creates an intrinsic namespace.

    Declaration
    public IntrinsicNamespace(string ns)
    Parameters
    Type Name Description
    System.String ns

    The namespace to manage.

    Properties

    | Improve this Doc View Source

    Namespace

    Gets the name of the namespace of intrinsics.

    Declaration
    public string Namespace { get; }
    Property Value
    Type Description
    System.String

    The namespace, as a string.

    Methods

    | Improve this Doc View Source

    GetIntrinsicName(String)

    Creates a namespaced intrinsic name from a namespaced operator name.

    Declaration
    public string GetIntrinsicName(string operatorName)
    Parameters
    Type Name Description
    System.String operatorName

    The operator name to wrap in a namespaced intrinsic name.

    Returns
    Type Description
    System.String

    A namespaced intrinsic name.

    | Improve this Doc View Source

    IsIntrinsicName(String)

    Tests if an intrinsic name is a namespaced intrinsic name.

    Declaration
    public bool IsIntrinsicName(string intrinsicName)
    Parameters
    Type Name Description
    System.String intrinsicName

    The intrinsic name to examine.

    Returns
    Type Description
    System.Boolean

    true if the intrinsic name is a namespaced intrinsic name; otherwise, false.

    | Improve this Doc View Source

    IsIntrinsicPrototype(InstructionPrototype)

    Tests if an instruction prototype is a intrinsic prototype defined in the current namespace.

    Declaration
    public bool IsIntrinsicPrototype(InstructionPrototype prototype)
    Parameters
    Type Name Description
    InstructionPrototype prototype

    The prototype to examine.

    Returns
    Type Description
    System.Boolean

    true if the prototype is a namespaced intrinsic prototype; otherwise, false.

    | Improve this Doc View Source

    IsIntrinsicPrototype(InstructionPrototype, String)

    Tests if an instruction prototype is a intrinsic prototype with a particular name defined in the current namespace.

    Declaration
    public bool IsIntrinsicPrototype(InstructionPrototype prototype, string name)
    Parameters
    Type Name Description
    InstructionPrototype prototype

    The prototype to examine.

    System.String name

    The prototype name to expect.

    Returns
    Type Description
    System.Boolean

    true if the prototype is a namespaced intrinsic prototype with a name equal to name; otherwise, false.

    | Improve this Doc View Source

    ParseIntrinsicName(String)

    Parses an intrinsic name as a namespaced intrinsic name, assuming that the intrinsic name is a namespaced intrinsic name. Returns the name of the operator wrapped by the namespaced intrinsic name.

    Declaration
    public string ParseIntrinsicName(string intrinsicName)
    Parameters
    Type Name Description
    System.String intrinsicName

    The namespaced intrinsic name to parse.

    Returns
    Type Description
    System.String

    The operator name wrapped by the namespaced intrinsic name.

    | Improve this Doc View Source

    TryParseIntrinsicName(String, out String)

    Tries to parse an intrinsic name as an intrinsic name in this namespace.

    Declaration
    public bool TryParseIntrinsicName(string intrinsicName, out string operatorName)
    Parameters
    Type Name Description
    System.String intrinsicName

    The intrinsic name to parse.

    System.String operatorName

    The name of the operator specified by the intrinsic, if the intrinsic name is an namespaced intrinsic name.

    Returns
    Type Description
    System.Boolean

    true if the intrinsic name is an intrinsic name in the current namespace; otherwise, false.

    • Improve this Doc
    • View Source
    Back to top Generated by DocFX