Skip to content

Learning about interpreters by creating a rather polite scripting language

Notifications You must be signed in to change notification settings

vherus/politescript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scratch pad for the language design

Learning about interpreters while learning Go by creating a terribly polite scripting language that you should definitely not use in production.

wouldyoumind summing(int[] numbers) int {
  mayhap length(numbers) == 0 {
    apologies "the array seems to be empty" // throw an exception
  }
  ...
}

please {
  permit result = summing([1, 2, 3]) // mutable
  insist result = summing([]) // immutable
} pardon me (e Error) {
  farewell(1)
}

About

Learning about interpreters by creating a rather polite scripting language

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages