Click here to Skip to main content
15,893,790 members
Articles / Programming Languages / C#

Script Engine Implemented by C# and Regular Expression

Rate me:
Please Sign up or sign in to vote.
4.60/5 (4 votes)
21 Nov 2009CPOL2 min read 24.8K   853   24  
Script engine to execute script codes, which is built by C# and regular expression
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <ProductVersion>8.0.50727</ProductVersion>
    <SchemaVersion>2.0</SchemaVersion>
    <ProjectGuid>{DA660F1C-058A-4BF4-9F6B-F9A61AA2F3A0}</ProjectGuid>
    <OutputType>Library</OutputType>
    <AppDesignerFolder>Properties</AppDesignerFolder>
    <RootNamespace>Zadesoft.Library.Script</RootNamespace>
    <AssemblyName>Zadesoft.Library.Script</AssemblyName>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <Optimize>false</Optimize>
    <OutputPath>..\builddbg\</OutputPath>
    <DefineConstants>DEBUG;TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    <DebugType>pdbonly</DebugType>
    <Optimize>true</Optimize>
    <OutputPath>bin\Release\</OutputPath>
    <DefineConstants>TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="System" />
    <Reference Include="System.Data" />
    <Reference Include="System.Xml" />
  </ItemGroup>
  <ItemGroup>
    <Compile Include="Aggregate\ForAllLogicExpression.cs" />
    <Compile Include="Aggregate\ForAnyExistLogicExpression.cs" />
    <Compile Include="Arithmetic\AddExpression.cs" />
    <Compile Include="Arithmetic\DivideExpression.cs" />
    <Compile Include="Arithmetic\MinusExpression.cs" />
    <Compile Include="Arithmetic\ModularityExpression.cs" />
    <Compile Include="Arithmetic\MultipleExpression.cs" />
    <Compile Include="AvailableNotFoundInProviderException.cs" />
    <Compile Include="CodeSeparator.cs" />
    <Compile Include="Common\SetValueExpression.cs" />
    <Compile Include="Compare\NotEqualExpression.cs" />
    <Compile Include="Control\CaseSwitchExpression.cs" />
    <Compile Include="Control\ForLoopExpression.cs" />
    <Compile Include="Control\IfElseExpression.cs" />
    <Compile Include="ExpressionParseFailedException.cs" />
    <Compile Include="ExpressionPriority.cs" />
    <Compile Include="ExternalValueProviders\DataRowExternalValueProvider.cs" />
    <Compile Include="ExternalValueProviders\DictionaryExternalValueProvider.cs" />
    <Compile Include="Functions\BuiltInFunctions.cs" />
    <Compile Include="Functions\DoesContainWordFunction.cs" />
    <Compile Include="Functions\IsAfterTodayFunction.cs" />
    <Compile Include="Functions\IsBeforeTodayFunction.cs" />
    <Compile Include="IExpressionParser.cs" />
    <Compile Include="AbstractParseRout.cs" />
    <Compile Include="IFunctionExecutor.cs" />
    <Compile Include="IRuntimePortal.cs" />
    <Compile Include="IToken.cs" />
    <Compile Include="Logic\AndExpression.cs" />
    <Compile Include="Common\AvailableExpression.cs" />
    <Compile Include="Common\BooleanExpression.cs" />
    <Compile Include="Common\DateTimeExpression.cs" />
    <Compile Include="Common\DecimalExpression.cs" />
    <Compile Include="Common\FunctionExpression.cs" />
    <Compile Include="Common\IntegerExpression.cs" />
    <Compile Include="Common\ObjectExpression.cs" />
    <Compile Include="Common\StringExpression.cs" />
    <Compile Include="Compare\EqualExpression.cs" />
    <Compile Include="Compare\GreaterThanEqualExpression.cs" />
    <Compile Include="Compare\GreaterThanExpression.cs" />
    <Compile Include="Compare\LessThanEqualExpression.cs" />
    <Compile Include="Compare\LessThanExpression.cs" />
    <Compile Include="Common\ExternalAvailableExpression.cs" />
    <Compile Include="IExternalValueProvider.cs" />
    <Compile Include="IFunction.cs" />
    <Compile Include="InvalidExpressionException.cs" />
    <Compile Include="Expression.cs" />
    <Compile Include="ExpressionException.cs" />
    <Compile Include="Logic\NotExpression.cs" />
    <Compile Include="Logic\OrExpression.cs" />
    <Compile Include="ScriptParser.cs" />
    <Compile Include="ScriptProcessor.cs" />
    <Compile Include="Properties\AssemblyInfo.cs" />
    <Compile Include="Functions\DoesMatchRegexFunction.cs" />
    <Compile Include="Functions\IsNullOrEmptyFunction.cs" />
    <Compile Include="Functions\IsTodayFunction.cs" />
    <Compile Include="ScriptContext.cs" />
  </ItemGroup>
  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
       Other similar extension points exist, see Microsoft.Common.targets.
  <Target Name="BeforeBuild">
  </Target>
  <Target Name="AfterBuild">
  </Target>
  -->
</Project>

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)


Written By
Software Developer (Senior) Totaldata Web Data Mining(extractweb.com)
China China
Just develop simple softwares. C# is my favorite prgramming languare, though I hope to create a new one...

Comments and Discussions