diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml new file mode 100644 index 0000000..df5d6e8 --- /dev/null +++ b/.github/workflows/dotnet.yml @@ -0,0 +1,28 @@ +# This workflow will build a .NET project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net + +name: .NET + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 8.0.x + - name: Restore dependencies + run: dotnet restore + - name: Build + run: dotnet build ./src --no-restore + - name: Test + run: dotnet test ./src --no-build --verbosity normal diff --git a/README.md b/README.md index bfe8236..d321c33 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ YesNt is a line-based, interpreted scripting language. The core idea is simple: YesNt is intentionally minimal and is well suited for: - Scripting in games or applications where simple syntax and customizability are needed -- Rapid prototyping or automation tasks where a lightweight embedded language is beneficial +- Automation tasks where a lightweight embedded language is beneficial - Educational purposes to learn language design by adding new statements or modifying existing ones - Embedding as a scripting engine in larger C# projects, with the ability to expose custom functionality through registered statements diff --git a/docs/README.md b/docs/README.md index 548d867..12935e6 100644 --- a/docs/README.md +++ b/docs/README.md @@ -16,7 +16,7 @@ Each line is one statement. There are no multi-line expressions. ### Running a script from the command line ```bash -dotnet run --project YesNt.Interpreter.App -- path/to/script.ynt +yesnt path/to/script.ynt ``` ### Hello world diff --git a/docs/editor.md b/docs/editor.md index 5daf983..36c96d6 100644 --- a/docs/editor.md +++ b/docs/editor.md @@ -5,7 +5,7 @@ ## Start the editor ```bash -dotnet run --project YesNt.CodeEditor -- [optional-path-to-file.ynt] +yesntcode [optional-path-to-file.ynt] ``` If you pass a file path, it is loaded on startup. diff --git a/docs/library-api.md b/docs/library-api.md index bb6fd1a..1fcfd87 100644 --- a/docs/library-api.md +++ b/docs/library-api.md @@ -1,6 +1,6 @@ # YesNt Library API -The `YesNt.Interpreter` project is a .NET 8 class library. You can reference it from any C# project +The `YesNt.Interpreter` project is a .NET 10 class library. You can reference it from any C# project to embed the YesNt interpreter and run scripts programmatically. ---