Click here to Skip to main content
Click here to Skip to main content
Articles » Languages » C# » General » Downloads
 

Conscript: An embeddable, compiled scripting language for .NET

By , 5 Sep 2008
 
conscript_api_and_demo_source.zip
Conscript_API_&_Demo_Source
Conscript
Collections
vssver2.scc
Compiler
vssver2.scc
Conscript.doxyfile
Properties
vssver2.scc
Resources
Conscript.ico
vssver2.scc
Runtime
vssver2.scc
vssver2.scc
ConscriptDemo
Conscript.ico
Properties
Settings.settings
vssver2.scc
Resources
Conscript.ico
vssver2.scc
vssver2.scc
SampleScripts
BubbleSort.cns
Dungeon.cns
Factorial.cns
HelloWorld.cns
vssver2.scc
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 use 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)

About the Author

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

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