dotnet-parseidon
3.1.3
dotnet tool install --global dotnet-parseidon --version 3.1.3
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
dotnet tool install --local dotnet-parseidon --version 3.1.3
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=dotnet-parseidon&version=3.1.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package dotnet-parseidon --version 3.1.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
dotnet-parseidon
Global dotnet tool that compiles .pgram grammar files into C# parsers, TextMate grammars, or full VS Code language packages. Project home: https://github.com/parseidon/parseidon
Install
dotnet tool install -g dotnet-parseidon
Commands
parser: generate a C# parser file. Options:--namespace|-noverrides the generated namespace,--class-name|-coverrides the generated parser class name.vscode: emit a VS Code package (package.json,language-configuration.json,syntaxes/*.tmLanguage.json).textmate: write a standalone TextMate grammar JSON.ast: generate an AST by first compiling a parser from the grammar file and then parsing a code file. Usage:dotnet parseidon ast GRAMMAR-FILE CODE-FILE OUTPUT-FILE.
Common option: --override|-o {ask|abort|backup|override} controls how existing outputs are handled.
Examples
# Create a parser and keep any existing file as .bak
dotnet parseidon parser hello.pgram DemoParser.cs -o backup
# Generate a VS Code package with a specific version and override file
dotnet parseidon vscode hello.pgram out/vscode -o override -v 1.0.0 --package-json-override ./package.patch.json
# Export a TextMate grammar only
dotnet parseidon textmate hello.pgram syntaxes/demo.tmLanguage.json
See the full CLI reference at https://github.com/parseidon/parseidon/blob/main/docs/cli.md
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. 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.
This package has no dependencies.