Skip to content

Latest commit

 

History

18 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

builds.sr.ht status

Monkey

An interpreter for the Monkey programming language.

Customizations

  • The lexer operates on buffered I/O instead of reading the entire input as a string. This saves on memory usage.
  • Tokens have spans associated with them, so in the case of unknown input, the interpreter can report line and column numbers. Spans mark the beginning and end of a token.
  • Added binary, octal, and hexadecimal integer literal support.
    • 0b0101
    • 0o1234
    • 0xffa4
  • _ support in number literals. Helps when visually parsing numbers.
    • 0b101_101
    • 20_000

About

An interpreter for the Monkey programming language (Mirror of https://git.sr.ht/~tristan957/monkey)

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages