Skip to content

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.

License

Notifications You must be signed in to change notification settings

hyperioxx/goscript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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 
}

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages