ClearScript
ExpressionEvaluator
Our great sponsors
ClearScript | ExpressionEvaluator | |
---|---|---|
8 | 4 | |
1,659 | 562 | |
2.1% | - | |
5.6 | 4.9 | |
about 1 month ago | 7 months ago | |
C# | C# | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
ClearScript
-
I found a remote code execution bug in VSCode that can be triggered from untrusted workspaces. Microsoft fixed it but marked it as moderate severity and ineligible under their bug bounty program.
Microsoft makes ClearScript
-
Is there a way to dynamically interpret a string as javascript within a C# winforms program?
I've used ClearScript before to use JavaScript as a DSL in a tool. No issues at all. https://github.com/microsoft/ClearScript
- [OC] Options for Runtime (Dynamic) Scripting for .NET [C#, Scripting, Modding]
-
Lua or JavaScript as an extension language?
I've had good luck with Microsoft's Clearscript - https://github.com/microsoft/ClearScript)
-
Scripting languages that use host language's libraries?
The ClearScript library https://github.com/microsoft/ClearScript enables V8, JScript and VBScript to be used as extension languages for .NET languages. Our company uses it extensively and has done so with great success for years. Anything done in C# can be exposed to the scripting language and to some extent back the other way as well.
- What is the/your current/popular choice for dotnet c# scripting ?
-
Compiling source at runtime using dotnet 5
Along the same lines, I use Microsoft ClearScript which uses JavaScript.
- ClearScript: Library to add scripting to .NET applications
ExpressionEvaluator
-
parsing strings for calculation
If you don't want to roll your own, there are many existing libraries for this purpose.
- [OC] Options for Runtime (Dynamic) Scripting for .NET [C#, Scripting, Modding]
- Is there any easy way to call a variable through a string?
-
okidoki - markdown editor with C# support
Yup it's in Blazor. For C# evaluation I've used ExpressionEvaluator. I'll probably replace it with Microsoft.CodeAnalysis.CSharp.Scripting library but I had some issues when i try to run it on WASM. I guess it's related to this issue
What are some alternatives?
cs-script - C# scripting platform
Roslyn - The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.
dotnet-script - Run C# scripts from the .NET CLI.
Calcpad - Free and open source software for mathematical and engineering calculations.
bullseye - 🎯 A .NET library for running a target dependency graph.
MathParser.org-mXparser - Math Parser Java Android C# .NET/MONO (.NET Framework, .NET Core, .NET Standard, .NET PCL, Xamarin.Android, Xamarin.iOS) CLS Library - a super easy, rich and flexible mathematical expression parser (expression evaluator, expression provided as plain text / strings) for JAVA and C#. Main features: rich built-in library of operators, constants, math functions, user defined: arguments, functions, recursive functions and general recursion (direct / indirect). Additionally parser provides grammar and internal syntax checking.
ScriptCS - Write C# apps with a text editor, nuget and the power of Roslyn!
water-shader-unity - Simulation of water in Unity
simple-exec - 🏃 A .NET library that runs external commands.
YoowzxCalc - .NET library for processing of mathematical expressions developed with emphasis on performance and flexibility of use.
interactive - .NET Interactive combines the power of .NET with many other languages to create notebooks, REPLs, and embedded coding experiences. Share code, explore data, write, and learn across your apps in ways you couldn't before.
Westwind.Scripting - Small C# library to provide dynamic runtime code compilation from source code for code and expressions execution