Click here to Skip to main content
13,191,642 members (60,477 online)
Click here to Skip to main content
Articles » Languages » C# » General » Downloads

Stats

109.9K views
1.2K downloads
136 bookmarked
Posted 13 Jul 2007

Conscript: An embeddable, compiled scripting language for .NET

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

namespace Conscript.Compiler
{
    /// <summary>
    /// The token type identifier related to the lexemes extracted by the script
    /// lexer.
    /// </summary>
    public enum TokenType
    {
        /// <summary>
        /// Script inclusion keyword.
        /// </summary>
        Include,

        /// <summary>
        /// Global variable declaration.
        /// </summary>
        Global,

        /// <summary>
        /// Local variable declaration.
        /// </summary>
        Var,

        /// <summary>
        /// Opening brace.
        /// </summary>
        LeftBrace,

        /// <summary>
        /// Closing brace.
        /// </summary>
        RightBrace,

        /// <summary>
        /// Opening parenthesis.
        /// </summary>
        LeftPar,

        /// <summary>
        /// Closing parenthesis.
        /// </summary>
        RightPar,

        /// <summary>
        /// Opening bracket.
        /// </summary>
        LeftBracket,

        /// <summary>
        /// Closing bracket.
        /// </summary>
        RightBracket,

        /// <summary>
        /// Membership operator.
        /// </summary>
        Period,

        /// <summary>
        /// Argument delimeter.
        /// </summary>
        Comma,

        /// <summary>
        /// Statement delimeter.
        /// </summary>
        SemiColon,

        /// <summary>
        /// Pre or post increment operator (++).
        /// </summary>
        Increment,

        /// <summary>
        /// Pre or post decrement operator (--).
        /// </summary>
        Decrement,

        /// <summary>
        /// Numeric addition / string concatentation / array operator.
        /// </summary>
        Plus,

        /// <summary>
        /// Numeric substraction / array operator.
        /// </summary>
        Minus,

        /// <summary>
        /// Multiplication operator.
        /// </summary>
        Multiply,

        /// <summary>
        /// Division operator.
        /// </summary>
        Divide,

        /// <summary>
        /// Exponent operator.
        /// </summary>
        Power,

        /// <summary>
        /// Modulo operator.
        /// </summary>
        Modulo,

        /// <summary>
        /// Assignment operator.
        /// </summary>
        Assign,

        /// <summary>
        /// Additive assignment operator.
        /// </summary>
        AssignPlus,

        /// <summary>
        /// Subtractive assignment operator.
        /// </summary>
        AssignMinus,

        /// <summary>
        /// Multiplicative assignment operator.
        /// </summary>
        AssignMultiply,

        /// <summary>
        /// Divisive assignment operator.
        /// </summary>
        AssignDivide,

        /// <summary>
        /// Exponential assignment operator.
        /// </summary>
        AssignPower,

        /// <summary>
        /// Modulo assignment operator.
        /// </summary>
        AssignModulo,

        /// <summary>
        /// Boolean conjunction operator.
        /// </summary>
        And,

        /// <summary>
        /// Boolean disjunction operator.
        /// </summary>
        Or,

        /// <summary>
        /// Boolean negation operator.
        /// </summary>
        Not,

        /// <summary>
        /// Equality operator.
        /// </summary>
        Equal,

        /// <summary>
        /// Inequality operator.
        /// </summary>
        NotEqual,

        /// <summary>
        /// Inequality operator.
        /// </summary>
        Greater,

        /// <summary>
        /// Inequality operator.
        /// </summary>
        GreaterOrEqual,

        /// <summary>
        /// Inequality operator.
        /// </summary>
        Less,

        /// <summary>
        /// Inequality operator.
        /// </summary>
        LessOrEqual,

        /// <summary>
        /// Execution control keyword.
        /// </summary>
        Yield,

        /// <summary>
        /// Wait semaphore keyword.
        /// </summary>
        Wait,

        /// <summary>
        /// Notify semaphore keyword.
        /// </summary>
        Notify,

        /// <summary>
        /// Critical section specifier.
        /// </summary>
        Lock,

        /// <summary>
        /// Conditional expression keyword
        /// </summary>
        If,

        /// <summary>
        /// Conditional expression keyword
        /// </summary>
        Else,

        /// <summary>
        /// Conditional expression keyword
        /// </summary>
        Switch,

        /// <summary>
        /// Conditional expression keyword
        /// </summary>
        Case,

        /// <summary>
        /// Conditional expression keyword
        /// </summary>
        Default,

        /// <summary>
        /// Conditional expression keyword
        /// </summary>
        Colon,

        /// <summary>
        /// Looping expression keyword.
        /// </summary>
        While,

        /// <summary>
        /// Looping expression keyword.
        /// </summary>
        For,

        /// <summary>
        /// Looping expression keyword.
        /// </summary>
        Foreach,

        /// <summary>
        /// Looping expression keyword.
        /// </summary>
        In,

        /// <summary>
        /// Looping control keyword.
        /// </summary>
        Break,

        /// <summary>
        /// Looping control keyword.
        /// </summary>
        Continue,

        /// <summary>
        /// Function declaration keyword.
        /// </summary>
        Function,

        /// <summary>
        /// Function control keyword.
        /// </summary>
        Return,

        /// <summary>
        /// Concurrency control keyword.
        /// </summary>
        Thread,

        /// <summary>
        /// Variable or function identifier.
        /// </summary>
        Identifier,

        /// <summary>
        /// Null reference keyword.
        /// </summary>
        Null,

        /// <summary>
        /// Integer literal.
        /// </summary>
        Integer,

        /// <summary>
        /// Floating point literal.
        /// </summary>
        Float,

        /// <summary>
        /// Boolean literal.
        /// </summary>
        Boolean,

        /// <summary>
        /// String literal.
        /// </summary>
        String
    }
}

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

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