Skip to content

Go-based script interpreter, mainly used for learning purposes

Notifications You must be signed in to change notification settings

Molionr/Script-interpreter-for-learning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Script-interpreter-for-learning

Go-based script interpreter, mainly used for learning purposes

Features

It supports arithmetic expressions, variable bindings, functions and their applications, conditional statements, return statements, and even advanced concepts such as higher-order functions and closures. It also supports different data types: integers, Booleans, strings, arrays, and hash tables.

  • C-like syntax
  • Variable binding
  • Integer and Boolean
  • Arithmetic expressions
  • Built-in functions
  • First-class and higher-order functions
  • Closures
  • String data structures
  • Array data structures
  • hash data structures

Usage

go run main.go

Thanks

This project was inspired and guided by the book 《用Go语言自制解释器》 by Thorsten Ball. This book explains in detail how to write a script interpreter in Go, which helped me a lot in implementing this project. Thank you to 人民邮电出版社 for publishing this valuable book.

About

Go-based script interpreter, mainly used for learning purposes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages