GitHub - pandeykartikey/goto: Goto is an interpreted programmin…

Kartikey Pandey

0

Backend Engineer

Go

Golang

Overview Goto is a dynamically typed programming language built in Go, designed to meet various scripting needs. It provides core programming features including:
Data Types: Integer, Boolean, String
Data Structures: Lists
Operations: Arithmetic, Comparison, Logical
Control Flow: If-Else-If Statements, For Loops, Continue, Break, and Return Statements
Functionality: Scoping, Multiple Assignments, Operator Precedence, and Grouped Expressions
Goto also supports functions, built-in functions (such as append, print, and len), and error handling, making it a robust tool for scripting tasks. This project combines the simplicity of scripting with the performance of Go, providing a powerful REPL experience.
Installation Goto can be easily installed via Go or binary releases:
Source Installation: go get -u github.com/pandeykartikey/goto
Binary Installation: Available from the GitHub release page.
Key Features
Easy Scripting Syntax: Write scripts with minimal syntax using var declarations, easy function definitions, and flexible loops.
Dynamic Typing & Scoping: Enjoy dynamic typing, multiple assignments, and variable scoping to control visibility.
Data Structures: Leverage lists and indexing, making it easy to handle collections.
Error Handling & Control Flow: Implement robust error handling and control flows for cleaner code and easy debugging.
Example Code To define variables and execute basic arithmetic:
var a = 3; var b = 5; var result = a + b; print(result); // Output: 8

Usage

To execute a script, pass the script name to the interpreter:
$ goto sample.to
Alternatively, add a shebang to make scripts executable:
#!/usr/bin/env goto
Start the REPL by typing goto, and exit with exit or Ctrl + D.
Like this project
0

Posted Nov 3, 2024

Goto is an interpreted programming language written in go. - pandeykartikey/goto

Likes

0

Views

1

Tags

Backend Engineer

Go

Golang

pandeykartikey/Hierarchical-Attention-Network
pandeykartikey/Hierarchical-Attention-Network
Architect Guru
Architect Guru
AnimeBot: Interactive Anime Companion
AnimeBot: Interactive Anime Companion