Categorygithub.com/0xmukesh/interpreter
repository
0.0.0-20241214164655-c79679c65aab
Repository: https://github.com/0xmukesh/interpreter.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

brtlang

brtlang is a dynamically typed, toy, meme-inspired programming language which replaces the conventional programming keywords with meme references.

usage

the package is not yet published to https://pkg.go.dev so if you want to try it out, you have to build it from source

git clone https://github.com/0xmukesh/brtlang
cd brtlang
go build -o brtlang cmd/interpreter/main.go

create a new file ending with .brt (test.brt)

yap("hello, world");

execute the code via the following command

./brtlang run test.brt

language reference

keywords

brtlanggolang equivalent
rizzvar
edgingif
midelse if
amoguselse
bettrue
capfalse
nadanil
vibinwhile
chillinfor
skibidifunc
bussinreturn

built-in functions

  1. yap(msg string) - equivalent to fmt.Println
  2. vibeCheck() - equivalent to time.Now().Unix()

operators

  1. + - addition
  2. ++ - increment
  3. - - subtraction
  4. -- - decrement
  5. * - multiplication
  6. / - division
  7. % - modulo
  8. = - assignment
  9. < - less than
  10. <= - less than equal to
  11. > - greater than
  12. >= - greater than equal to
  13. == - equal
  14. != - not equal
  15. && - and
  16. || - or

examples

check out examples folder for examples