GotochanCs 2.3.0

dotnet add package GotochanCs --version 2.3.0
                    
NuGet\Install-Package GotochanCs -Version 2.3.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="GotochanCs" Version="2.3.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="GotochanCs" Version="2.3.0" />
                    
Directory.Packages.props
<PackageReference Include="GotochanCs" />
                    
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 GotochanCs --version 2.3.0
                    
#r "nuget: GotochanCs, 2.3.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 GotochanCs@2.3.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=GotochanCs&version=2.3.0
                    
Install as a Cake Addin
#tool nuget:?package=GotochanCs&version=2.3.0
                    
Install as a Cake Tool

<img src="https://github.com/gotochan-org/GotochanCs/blob/main/Assets/GotochanIcon2x.png?raw=true">

NuGet

Gotochan for C#

A scripting language to power the universe.

Designed in 2023 and perfected in 2025.

Getting Started

Let's create a basic 'hello world' program:

what = ~hello~world!
goto say

Gotochan does not use type annotations, curly braces, capital letters, or anything else that just gets in the way.

Gotochan is simple and elegant, so everything is accomplished with goto, label and if.

Now let's make a rocket launch.

counter = 10
what = ~countdown:~
what += counter
what += ~\n
goto say
counteriszero = counter == 0
seconds = 0.5
goto wait
counter -= 1
goto +2 if counteriszero
goto -9
what = ~blast~off!
goto say

It's aesthetic. It's easy. You use goto for everything.

But can you goto a goto?

Yes.

goto dosomething

label dosomething
goto goto dosomething

Goto goto goes to the last goto label for a label you've gone to. So you can goto the line after the line of the goto for the label you wanted to go to.

What if you have a lot of goto?

That's okay. Become best friends with goto.

Thingies

There are only four types of thing in Gotochan:

  • nothing: the absence of all things
  • flag: something that's either there or not there
  • number: a numeric value
  • string: a list of graphemes

These are the four thingies that make up Gotochan.

Comments

Since Gotochan is a stylistic, elegant language, there's no difficulty in understanding a Gotochan program, so you don't need comments to describe the code. However, comments can be useful for translating to another language.

goto heaven # 天国に行く

Interpreting

Gotochan code can be interpreted with 3 simple steps:

// Read source code
string Source = File.ReadAllText("gotogotchi.gotochan");

// Parse as instructions
ParseResult ParseResult = Parser.Parse(Source).Value;

// Interpret instructions
Actor.Shared.Interpret(ParseResult);

All code runs in an actor which has a lock, variables and gotos.

Compiling

Gotochan code can be compiled to C# code for better performance.

Parse it as normal and then compile it:

// Compile as C# code
CompileResult CompileResult = Compiler.Compile(ParseResult).Value;

Then create a file in your C# project and paste the resulting code.

Footnote

Brought to you by the Konekomi Castle Gotochan Committee.

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 is compatible.  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.

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
2.3.0 11 8/29/2025
2.2.0 144 6/24/2025
2.1.0 146 6/22/2025
2.0.0 147 6/22/2025