https://github.com/hyperioxx/goscript
GoScript is a dynamically typed, interpreted language created out of curiosity to answer that question we ask as programmers: "How do you make a programming language from scratch?" So, I've given it a try.
https://github.com/hyperioxx/goscript
language-development learning-by-doing programming-language
Last synced: 9 months ago
JSON representation
GoScript is a dynamically typed, interpreted language created out of curiosity to answer that question we ask as programmers: "How do you make a programming language from scratch?" So, I've given it a try.
- Host: GitHub
- URL: https://github.com/hyperioxx/goscript
- Owner: hyperioxx
- License: gpl-3.0
- Created: 2023-11-18T14:47:49.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-07T09:56:39.000Z (over 1 year ago)
- Last Synced: 2025-02-05T08:26:37.844Z (11 months ago)
- Topics: language-development, learning-by-doing, programming-language
- Language: Go
- Homepage:
- Size: 147 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GoScript
GoScript is a dynamically typed, interpreted language created out of curiosity to answer that question we ask as programmers: "How do you make a programming language from scratch?" So, I've given it a try.
## Requirements:
- Go 1.21
## Install
```bash
go install github.com/hyperioxx/goscript/cmd/goscript@latest
```
Note: This is still a work in progress
Broken things:
- call stack not fully implemented
- scoping
- native goscript function calls
- native function arguments
Example syntax:
```
// variable declaration
myInt = 1
myString = "foo"
myFloat = 1.0
myArray = [1,2,3,4,"bar"]
// conditionals
if myInt > 1 {
print(x) // builtin function
}
```