Click here to Skip to main content
12,695,743 members (33,925 online)
Click here to Skip to main content
Articles » Languages » C# » General » Downloads

Stats

103.6K views
1.1K downloads
136 bookmarked
Posted

Conscript: An embeddable, compiled scripting language for .NET

, 5 Sep 2008 CPOL
An API for enhancing any .NET application with a scripting language
using System;
using System.Collections.Generic;
using System.Text;

namespace Conscript.Runtime
{
    /// <summary>
    /// Represents operator codes used in script instructions.
    /// </summary>
    public enum Opcode
    {
        /// <summary>
        /// Debug information.
        /// </summary>
        DBG,

        /// <summary>
        /// Null (placeholder) operator.
        /// </summary>
        NOP,

        /// <summary>
        /// Declare global variable.
        /// </summary>
        DCG,

        /// <summary>
        /// Declare local variable.
        /// </summary>
        DCL,

        /// <summary>
        /// Interrupt execution.
        /// </summary>
        INT,

        /// <summary>
        /// Critical section lock.
        /// </summary>
        LOCK,

        /// <summary>
        /// Critical section unlock.
        /// </summary>
        ULCK,

        /// <summary>
        /// Move data.
        /// </summary>
        MOV,

        /// <summary>
        /// Increment variable.
        /// </summary>
        INC,

        /// <summary>
        /// Decrement variable.
        /// </summary>
        DEC,

        /// <summary>
        /// Negate variable.
        /// </summary>
        NEG,

        /// <summary>
        /// Addition
        /// </summary>
        ADD,

        /// <summary>
        /// Subtraction.
        /// </summary>
        SUB,

        /// <summary>
        /// Multiplication.
        /// </summary>
        MUL,

        /// <summary>
        /// Division.
        /// </summary>
        DIV,

        /// <summary>
        /// Exponent.
        /// </summary>
        POW,

        /// <summary>
        /// Modulo.
        /// </summary>
        MOD,

        /// <summary>
        /// Compare to NULL.
        /// </summary>
        CNL,

        /// <summary>
        /// Equal
        /// </summary>
        CEQ,

        /// <summary>
        /// Not equal.
        /// </summary>
        CNE,

        /// <summary>
        /// Greater than.
        /// </summary>
        CG,

        /// <summary>
        /// Greater than or equal.
        /// </summary>
        CGE,

        /// <summary>
        /// Less than.
        /// </summary>
        CL,

        /// <summary>
        /// Less than or equal.
        /// </summary>
        CLE,
        
        /// <summary>
        /// Bolean OR.
        /// </summary>
        OR,

        /// <summary>
        /// Boolean AND
        /// </summary>
        AND,

        /// <summary>
        /// Boolean NOT
        /// </summary>
        NOT,

        /// <summary>
        /// Unconditional jump.
        /// </summary>
        JMP,

        /// <summary>
        /// Jump if true.
        /// </summary>
        JT,

        /// <summary>
        /// Jump if false.
        /// </summary>
        JF,

        /// <summary>
        /// Clear array.
        /// </summary>
        CLRA,

        /// <summary>
        /// Array iterator.
        /// </summary>
        NEXT,

        /// <summary>
        /// Push argument on stack.
        /// </summary>
        PUSH,

        /// <summary>
        /// Pop argument from stack.
        /// </summary>
        POP,

        /// <summary>
        /// Call routine.
        /// </summary>
        CALL,

        /// <summary>
        /// Return from routine.
        /// </summary>
        RET,

        /// <summary>
        /// Invoke host function.
        /// </summary>
        HOST,

        /// <summary>
        /// Spawn thread.
        /// </summary>
        THRD
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Colin Vella
Software Developer (Senior)
Malta Malta
No Biography provided

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170118.1 | Last Updated 5 Sep 2008
Article Copyright 2007 by Colin Vella
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid