Skip to content

PhiNotPi/GolfLang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

GolfLang

language and name subject to change without warning

feature list:

  • input _
  • output, either implicit or the fancier `
  • nested array creation via [ and ]
  • multiplication*/addition+/division//subtraction-/exponentiation^
  • stringEquality=
  • splitToCharsc
  • foreach using :
  • reduce using |

Example:

3[4 5]][2 3]:*

This creates the arrays [3 [4 5]] and [2 3] and then does a foreach on the second one, multiplies them, giving a result of [[6 [8 10]][9 [12 15]]] which is implicitly printed as printed as 681091215

_c]_c=||+

Given two inputs, a string and a character, outputs the number of occurances of that character in the string;

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages