Skip Navigation Links

JScript.NET Expression Evalulator

Information

Description

JScript.NET Expression Evalulator dynamically evaluates JScript.NET expressions, which can include functions, function calls, variable declarations and assignments, etc. This program illustrates how to add interpreted scripting features to your C# programs.

JScript.NET Expression Evaluator

JScript.NET Expression Evaluator Screen Shot

Press Evalulate Expression to evalulate the JScript.NET expression. The result will be displayed unless there are syntax errors. If syntax errors occur, the offending text will be displayed, along with a description of the error, and the line and column where the error was found.

This program uses a DLL written in (compiled) JScript.NET. The source code is in package.js. Use the BuildPackage.bat file to compile it using the command-line JScript.NET compiler.

The C# concepts illustrated by this source code include:

  1. Including JScript.NET packages in C# programs
  2. Using interpreted JScript.NET scripting

Requirements

This source code was developed with Microsoft Visual C# .net.

Source Code



Home Page   Vault 3   Shareware   C# .NET Tips   Download C# .NET Source Code   Browse C# .NET Source Code   C# .NET Open Source   On-Line Utilities   Blog   Contact