AnalysisScript 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package AnalysisScript --version 1.0.0
                    
NuGet\Install-Package AnalysisScript -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="AnalysisScript" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AnalysisScript" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="AnalysisScript" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add AnalysisScript --version 1.0.0
                    
#r "nuget: AnalysisScript, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package AnalysisScript@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=AnalysisScript&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=AnalysisScript&version=1.0.0
                    
Install as a Cake Tool

Analysis Script

A super mini script for log analysis

Example (with BasicFunctionV2)

using AnalysisScript.Library;

var lexicalTokens = LexicalAnalyzer.Analyze("...source...");
var ast = ScriptParser.Parse(lexicalTokens);
AsInterpreter interpreter = new AsInterpreter(ast)
.RegisterBasicFunctionsV2()
.AddVariable("a", new List<string>() { "ab", "ac", "bc" })
.AddVariable("b", "result is: ");

var result = await interpreter.RunAndReturn<string>();

Console.WriteLine(result);
// Output: result is: ab,ac
param a
param b

let c = a
| filter_regex "a."
| join "|"

let d = "${b}${a}"

return d

Grammar

param -> identity

argument -> number | string | identity

arguments -> arguments argument

pipe -> pipe identity argument newline

pipes -> pipes pipe | empty

variable -> identity

let -> let variable = argument [pipes]

ui -> ui newline pipes

cmd -> let | ui | comment | param

return -> return identity

cmds -> cmds cmd | empty

analysis -> cmds return
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.4-beta.1 96 5/29/2024
1.0.3 154 3/1/2024
1.0.3-beta.26 73 2/29/2024
1.0.3-beta.25 81 2/28/2024
1.0.3-beta.24 76 2/27/2024
1.0.3-beta.23 86 2/27/2024
1.0.3-beta.22 72 2/27/2024
1.0.3-beta.21 74 2/27/2024
1.0.3-beta.20 74 2/26/2024
1.0.3-beta.19 77 2/26/2024
1.0.3-beta.18 77 2/26/2024
1.0.3-beta.17 76 2/26/2024
1.0.3-beta.16 82 2/23/2024
1.0.3-beta.15 81 2/23/2024
1.0.3-beta.13 79 2/23/2024
1.0.3-beta.12 75 2/23/2024
1.0.3-beta.11 79 2/23/2024
1.0.3-beta.10 77 2/23/2024
1.0.3-beta.9 78 2/23/2024
1.0.3-beta.8 81 2/23/2024
1.0.3-beta.7 80 2/23/2024
1.0.3-beta.6 81 2/23/2024
1.0.3-beta.5 84 2/23/2024
1.0.3-beta.4 82 2/23/2024
1.0.3-beta.3 85 2/21/2024
1.0.3-beta.2 83 2/21/2024
1.0.3-beta.1 94 2/7/2024
1.0.2 124 2/7/2024
1.0.2-beta.10 105 1/19/2024
1.0.2-beta.9 74 1/19/2024
1.0.2-beta.8 73 1/18/2024
1.0.2-beta.7 73 1/18/2024
1.0.2-beta.6 80 1/18/2024
1.0.2-beta.5 73 1/18/2024
1.0.2-beta.4 79 1/16/2024
1.0.2-beta.3 84 1/13/2024
1.0.2-beta.2 80 1/12/2024
1.0.2-beta.1 82 1/12/2024
1.0.2-alpha.2 79 1/12/2024
1.0.2-alpha.1 75 1/12/2024
1.0.1 199 12/18/2023
1.0.0 101 12/18/2023